Apple Health to InfluxDB (Self-Hosted): The Honest Path
HealthSave Pro syncs your Apple Health data to a database on a server you run. If your stack is specifically InfluxDB, this guide is honest about the path: the database on your server is what you get with Observatory, and you forward into InfluxDB from there with the REST API or Telegraf.
The honest answer first
Most people searching for "Apple Health to InfluxDB" don't actually need InfluxDB specifically, they want their Apple Health data in a self-hosted time-series database they control, so they can chart it in Grafana and keep a long record. HealthSave gives you exactly that, as a database on the server you run. If that's you, you're done after Step 1. If you have an existing InfluxDB you genuinely want to feed, keep reading, it's a short forward.
The pipeline
iPhone (Apple Health)
└─ HealthSave Pro ──(background sync, ~1–5 min)──▶ Observatory (the dashboard you run)
├─▶ Grafana (SQL) — done for most people
└─▶ forwarder ──▶ InfluxDB (if you need it)
Step 1, Get Apple Health onto your own server
Stand up HealthSave Observatory, the self-hosted dashboard you run on your own server. The code is on GitHub under the Elastic License 2.0. Buy HealthSave Pro, and set Settings → Server Sync → Server URL to your server, then enable background sync. Within a few minutes your HealthKit samples are in the database on that server. This is the hard part, and it's now solved.
Step 2, Decide if you really need InfluxDB
You now own a database on your server, and Grafana can chart it. If your only goal was "Apple Health in a database with Grafana," InfluxDB adds a second system for no benefit. Add it only if it's already part of your stack.
Step 3, Forward into InfluxDB (if you want it)
Two clean options:
- A small forwarder. Read recent samples from the Observatory's REST API and write them as InfluxDB line protocol, one measurement per metric, tags for source and unit, on a cron or a loop.
- Telegraf. Read from the Observatory REST API, or query the database on your server, and use Telegraf's InfluxDB output to mirror the data continuously.
Step 4, Point your dashboards at it
Configure Grafana's InfluxDB data source and confirm the measurements arrive. You can keep both, the database on your server as the record and InfluxDB for any panels that expect it.
Your database vs InfluxDB for health data
| The database on your server | InfluxDB (forward to it) | |
|---|---|---|
| Query language | SQL (joins, window functions) | Flux / InfluxQL |
| Grafana support | Native | Native |
| Second system to run | No | Yes |
| Best when | You want one store and SQL | InfluxDB is already in your stack |
What's free vs Pro
| Capability | Tier |
|---|---|
| On-device dashboard, CSV/JSON export | Free |
| Background sync to your server | Pro |
| REST API (for the InfluxDB forwarder) | Pro |
Pro is a one-time $24.99 (US price, varies by region), Family Sharing included, no subscription.
Honest limits
- No native InfluxDB output. The forward is your code (a script or Telegraf); HealthSave delivers to the database on your server.
- You run it all, the database, the forwarder, and InfluxDB. No hosted option.
- Best-effort ~1–5 min sync, this is history and trends, not real-time monitoring.
- iOS only; reads Apple Health, so data must already be in HealthKit.
- Accuracy is your wearable's.
Related
- Store Apple Health in your own database, keeping the history on hardware you run.
- Apple Health to Grafana, dashboards over your history.
- Build a custom REST API over your Apple Health data, the read side your forwarder uses.
- Apple Health data in your homelab.
FAQ
Does HealthSave write to InfluxDB directly?
No. HealthSave delivers to the database on the server you run. To land data in InfluxDB specifically, you forward it from the Observatory's REST API or that database, for example with a small script or Telegraf.
Then why use HealthSave for an InfluxDB setup?
HealthSave solves the hard part, getting HealthKit off the iPhone and onto a server you own, reliably and in the background. Forwarding rows from there into InfluxDB is a few lines; getting Apple Health out of the phone is not.
Is the database on my server a fine alternative to InfluxDB here?
For personal health history, usually yes. The database on your server gives you queries and Grafana support without a second database. Many people searching for "Apple Health to InfluxDB" really just want a self-hosted store, which you already have.
Can Grafana read both?
Yes. Grafana can read the database on your server and InfluxDB, so your dashboards work either way.
Is there a hosted version?
No. You run the Observatory, the database, and any forwarder yourself. There is no hosted backend.
HealthSave is not a medical device. It is for informational purposes only and does not diagnose, treat, cure, or prevent any disease or condition. The accuracy of any health data depends on your wearable device and its sensors. Privacy claims of zero data collection apply to the iOS app; self-host sync sends your data to your own server.
Get HealthSave
Download free, try the export, then unlock background sync to your own server with a one-time Pro purchase, and forward to InfluxDB from there if your stack needs it.
Download HealthSave on the App Store