Grafana Integration

Grafana is an open source platform for data visualization, monitoring and analysis. You may integrate this software with the Monitoring as a Service for more convenient use.

  1. Go to the API reference

  2. Install grafana

  3. Generate the first token

  4. curl -uusername:password https://api.ionos.com/auth/v1/tokens/generate or -n if you use netrc

  5. It is also possible to query the metrics using curl:

curl -H "Authorization: Bearer ${TOKEN}" https://api.ionos.com/telemetry/api/v1/query?query=instance_cpu_utilization_average

Add data source to Grafana

  • Login to Grafana

  • Configuration (on the left side)

  • Data source

Data source

URL: https://api.ionos.com/telemetry/

Custom HTTP Headers

Header: Authorization Value: Bearer eyJ0eXAiOiJK....

HTTP Method: POST

Save & Test

  • Go to Explore (on the left side)

  • Choose the new Data source

  • In the Metrics Browser, write instance

  • Choose one of the metrics

  • Run query

You can query on these metrics now:

series whitelist:

- instance_cpu_utilization_average

- instance_network_in_packets

- instance_network_out_bytes

- instance_network_in_bytes

- instance_network_out_packets

- instance_volumes_read_bytes

- instance_volumes_write_bytes

- instance_volumes_read_ops

- instance_volumes_write_ops

Last updated