Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 848 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 848 Bytes

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.