I am monitoring some metrics for AWS SES.
In periods where no mails are sent there are no datapoints present (showing as gaps on the graph).
To fill out the gaps, I am using the following:
aws_ses_send_sum or on() vector(0)
and I am receving the graph visible in the screenshot.
What I want to achieve now: I would like the values with '0' to be also labeled with aws_ses_send_sum{exported_job="aws_ses",instance="localhost:9000",job="aws"} instead of appearing as: {}.
I have checked several other questions:
Merge/join two metrics in Prometheus/PromQL
How to merge zero values (vector(0) with metric values in PromQL
How to execute multiple queries in one call in Prometheus
checked the querying section in the docs but I am unable to get it right.
sum() is delivering the graph that I need - but as a result the labels are being removed.
Could someone please help?