I’m working on a Grafana dashboard and I would like to create a panel that displays the overall status of my application, specifically the number of gigabytes transmitted in the last 24 hours and the past 7 days. I’m using Prometheus as a data source with the metric container_network_transmit_bytes_total.
However, I am experiencing a problem with data consistency when I try to configure my PromQL query. Here is my current query for the last 24 hours:
sum(rate(container_network_transmit_bytes_total[24h]) * 86400)
This query does not seem to return the expected results, and I think I am not managing the aggregation or the time interval correctly.
Could you help me adjust my query to correctly display the data for 24-hour and 7-day periods? What would be the best way to structure this PromQL query to accurately reflect this data?
Thank you very much for your help!
Arthur REANT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.