This is a port of the InfluxDB Cloud Usage Dashboard to Grafana, adding in some cost calculations based on suggestions in Using the New Flux Usage API to Calculate Pricing for InfluxDB Cloud.
It uses the experimental/usage
package to help InfluxDB Cloud users monitor their organisations data usage, whilst providing estimations of billing costs incurred during the queried period.
Because it relies on experimental/usage
the template is only compatible with the cloud version of InfluxDB 2.
The dashboard visualises the following metrics
- Data in (and cost estimation)
- Data out (and cost estimation)
- Query count (and cost estimation)
- Storage hours (and cost estimation)
- Total cost estimation
- Applied rate limits (read, write and cardinality)
- Rate limit events
Add your InfluxDB Cloud organisation to Grafana as a Flux datasource.
The token used for this data-source must, at minimum, have the following privileges
- Read - All Buckets
- Read - All Orgs
The latter can be found under Other Resources
when creating a custom API token
Once you have an appropriate datasource, download influxcloud_usage.json from this repository.
Then
- Choose Dashboards
- Click
New
- Click
Import
- Click to upload JSON
- Select the downloaded file
- Choose the InfluxDB datasource detailed above
The dashboard exposes a number of variables used in the costing estimations
Data in $/MB
Query cost $/100 queries
Storage $/GB-hour
Data out $/GB
Up to date pricing can be found at https://www.influxdata.com/influxdb-pricing/.