Hello ,
I am exporting the custom cloudwatch metrics to prometheus using cloudwatch exporter .
custom metric on cloudwatch is of "INFO" filter pattern . (just like you wanna search 404 error pattern from logs ) .
Below is the exported metrics on exporter-->
# HELP aws_resource_info AWS information available for resource
# TYPE aws_resource_info gauge
# HELP cloudwatch_exporter_scrape_duration_seconds Time this CloudWatch scrape took, in seconds.
# TYPE cloudwatch_exporter_scrape_duration_seconds gauge
cloudwatch_exporter_scrape_duration_seconds 0.009079045
# HELP cloudwatch_exporter_scrape_error Non-zero if this scrape failed.
# TYPE cloudwatch_exporter_scrape_error gauge
cloudwatch_exporter_scrape_error 0.0
# HELP tagging_api_requests_total API requests made to the Resource Groups Tagging API
# TYPE tagging_api_requests_total counter
# HELP cloudwatch_requests_total API requests made to CloudWatch
# TYPE cloudwatch_requests_total counter
cloudwatch_requests_total{action="getMetricStatistics",namespace="infoFilterMetric",} 12.0
# HELP cloudwatch_requests_created API requests made to CloudWatch
# TYPE cloudwatch_requests_created gauge
cloudwatch_requests_created{action="getMetricStatistics",namespace="infoFilterMetric",} 1.614029695926E9
I want to understand how i could check in prometheus using PROMql that if INFO pattern exists or not .
Whats should i use so that i could setup rules on the basis of my custom metrics .