szkiba / xk6-prometheus

Prometheus HTTP exporter for k6
MIT License
49 stars 22 forks source link

collecting the metrics #5

Open ranyhb opened 2 years ago

ranyhb commented 2 years ago

hi,

is it possiable to change the code so the image can push the metrics into the pushgetaway of the prometheus instead of the waiting to the prometheus to collect the metrics. the reason of this change is when you use this image with the k6-operator, the prometheus isn't fast enough to collect the metrics, meaning, when the job is completed, the prometheus woudn't be able to collect to metrics.

zibul444 commented 1 year ago

You can use the registration service when starting and stopping tests https://prometheus.io/docs/prometheus/latest/http_sd/ We did just that