Hi, I have 0 to many crawlers running at a given time, where each crawler is a docker container. I have a lot of metrics related to crawling, but lets stick to downloaded bytes.
Metrics are sent just before shutting down the process.
I want to use prometheus + grafana to build dashboards and alerts for this metric. I thought that pushgateway was perfect for my use case here, since it acts as a proxy to aggregate and expose metrics from short-lived process.
However, I noticed that once the job finishes, the value of the downloaded bytes for that crawler in that job never goes down, it keeps the value as a line, instead keeping it as a single data point.
I came across an issue on pushgateway concluding that this behavior is by design, and will not change:
https://github.com/prometheus/pushgateway/issues/19So, for my specific use case, what should I use to aggregate metrics from these different jobs, in a way that data points are generated only while the job is aline, and not forever?