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 https://monitoring.us-east-1.amazonaws.com 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 https://monitoring.us-east-1.amazonaws.com?Action=ListMetrics
  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#

image

Query with Backend parser#

image

Query with UQL parser#

image

sample uql query is given below

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

Query with Default/Frontend parser#

image