Cloudwatch / AWS API Usage / Cost

I’m using Grafana to integrate a few data sources as a single dashboard. One of them is AWS/cloudwatch API. I’ve gotten everything integrated well. My big question is cost (or calculating how much it will run us)

Using my example of 3 graphs, with 10 metrics each in a single dashboard Datasource is running in proxied mode.

  1. That’s 30 API call per dashboard load/refresh ?
  2. Does the APIs make calls when no one is has the dashboard loaded ?
  3. Is the API calls cached vs fast refreshing on a browser ?
  4. Is the API calls cached for multiple users viewing the same dashboard ? (We’re looking to deploy this across many locations)
  5. Any hints on reducing API calls to control cost ?

Thanks in advance !

That’s 30 API call per dashboard load/refresh ?

yes.

Does the APIs make calls when no one is has the dashboard loaded ?

No, Grafana will only make calls if you have a dashboard open in a visible tab.

Is the API calls cached vs fast refreshing on a browser ?

No caching is done for metric queries.

Is the API calls cached for multiple users viewing the same dashboard ? (We’re looking to deploy this across many locations)

No caching is done, each request for each panel in a dashboard is sent to AWS Cloudwatch.

Any hints on reducing API calls to control cost ?

No hints that I can think of, reduce refresh rate on dashboards.

1 Like

Hey, Could you help me in guiding how to integrate Cost Explorer API and generate dashboards on Grafana. I am new to Grafana and added datasource CloudWatch. Do I need to add any IAM roles/policies in AWS ?
Thanks