Mismatch on http_req_failed... count on prometheus

Hi Team,

I’m using k6 with Prometheus. And recently i noticed Grafana stars to show multiple records (20 records) for a single failure.

When i try to troubleshoot, looks like the single failures insert multiple records on the measurement table k6_http_req_failed_rate with same time interval (15s scrape interval).

And any idea how to fix this.

Hi @gerardlj

Just to double-check, do you use the Prometheus remote write | Grafana k6 documentation output?

Does this duplication presented each time when failure occurs?

Yes, I’m using the prometheus remote write. Also the duplication observed as of now on http_req_failed metrics only, other metrics i didn’t investigate.

Observed when a valid failure happens it show multiple records on the Grafana.

Apologies for the delayed response, but it sounds like a bug. Could you please open an issue GitHub · Where software is built and provide as many details as possible.

Thanks!