Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to push prometheus metrics directly to VictoriaMetrics?

I'm using python prometheus client and have troubles pushing metrics to VictoriaMetrics (VM).

There is a function called push_to_gateway and I tried to replace prometheus URL with VM: http://prometheus:9091 -> http://vm:8428/api/v1/write. But VM responded with 400 status code.

like image 340
aiven Avatar asked Oct 19 '25 14:10

aiven


1 Answers

It possible to use push_to_gateway method with VictoriaMetrics, check examples at gist https://gist.github.com/f41gh7/85b2eb895bb63b93ce46ef73448c62d0

like image 149
f41gh7 Avatar answered Oct 22 '25 03:10

f41gh7



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!