Hey all, I've been stuck on this for a few days now. I need a bit of help.

I'm trying to create a configuration for the CloudWatch Exporter to 
automatically discover RDS instances with a specific tag.

This is part of the configuration I'm using:

  - aws_dimensions:
    - DBInstanceIdentifier
    aws_metric_name: FreeLocalStorage
    aws_namespace: AWS/RDS
    aws_statistics:
    - Average
    aws_tag_select:
    resource_id_dimension: DBInstanceRole
    resource_type_selection: rds:dbinstance
    tag_selections:
        my-custom-tag:
        - 'true'
    period_seconds: 60

Once I apply this config, I start getting the expected results from the 
CloudWatch Exporter:

# HELP aws_rds_free_local_storage_average CloudWatch metric AWS/RDS 
FreeLocalStorage Dimensions: [DBInstanceIdentifier] Statistic: Average Unit: 
Bytes
# TYPE aws_rds_free_local_storage_average gauge
aws_rds_free_local_storage_average{job="aws_rds",instance="",dbinstance_identifier="redacted-1",}
 2.549407744E10 1592797980000


But, unfortunatelly no results are returned in the `aws_resource_info` 
timeseries. I was expecting that all resources discovered by tags would 
generate entries in that timeseries.

Even looking at the Java code, apparently this was suppose to happen. See: 
https://github.com/prometheus/cloudwatch_exporter/blob/master/src/main/java/io/prometheus/cloudwatch/CloudWatchCollector.java#L657

Can anyone point what am I doing wrong here?

Cheers!

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/7b26f816-d572-4f9d-9f0a-ad78f14fc008o%40googlegroups.com.

Reply via email to