Skip to content

Retrieve timeseries data from external sources such as Garmin Connect and sync them to Prometheus

Notifications You must be signed in to change notification settings

najork/health-sync-server

Repository files navigation

health-sync-server

The health-sync-server retrieves timeseries data from external sources such as Garmin Connect and syncs them to Prometheus. Part of the health timesteries platform.

Usage

Start the server.

./health-sync-server server

Export the metrics from an activity.

curl -XPOST -k https://localhost:8443/health-sync/api/collect -H 'Content-Type: application/json' -d '{"id":$activity_id,"maxPoints":50}'

Import the metrics into Prometheus. See the documentation for more information.

promtool tsdb create-blocks-from openmetrics metrics.out

After creating the blocks, move them to the data directory of Prometheus and restart the process.

About

Retrieve timeseries data from external sources such as Garmin Connect and sync them to Prometheus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published