claws / aioprometheus

A Prometheus Python client library for asyncio-based applications
175 stars 21 forks source link

Pusher hardcodes path to /metrics is incompatible with VictoriaMetrics #50

Closed jbunce12 closed 3 years ago

jbunce12 commented 3 years ago

The code in pusher.py hardcodes the path to be PATH = "/metrics" this is incompatible with VictoriaMetrics which uses the path /api/v1/import/prometheus but uses the same export format.

I suggest adding path: str = "/metrics" to the constructor of the pusher class this default value can be overwritten for VictoriaMetrics.

jbunce12 commented 3 years ago

Fixed in 390f52fa0d7c6e154c62fb27e52edabc6e0e925c