Open source

AWS Authentication

Support for connecting to AWS API is available from version 1.3.0

Steps to connect to AWS APIs

  1. Create a new service account in AWS console. ( AWS Console -> IAM -> Access Management -> Users -> Add users)
    1. Select Access key - Programmatic access as AWS Credentials type
    2. Set required permissions ( preferably CloudWatch ReadOnly Permission )
    3. Copy the access key and secret key
  2. Install the infinity plugin in Grafana and add data source for the same
  3. Expand Authentication section and select “AWS”
  4. Select region. Example us-east-1
  5. Select service. Example monitoring. You can find the appropriate service name here.
  6. Enter the access key and secret key you copied in step 1
  7. Enter as allowed URL. (replace the service name and region as necessary )
  8. Click “Save and Test”
  9. Click the Explore button
  10. Enter the URL
  11. Select “JSON” as Query type
  12. Optionally, Select “Backend” / “UQL” as parser.
  13. Enter the Root Selector ListMetricsResponse.ListMetricsResult.Metrics
  14. Click Run Query and you will see the results

Config Editor


Query with Backend parser


Query with UQL parser


sample uql query is given below

| scope "ListMetricsResponse.ListMetricsResult.Metrics"
| mv-expand "dimension"="Dimensions"
| project "Namespace", "MeasureName", "Dimension Name"="dimension.Name", "Dimension Value"="dimension.Value"

Query with Default/Frontend parser