Ask questionsIs it possible for VictoriaMetrics to substitue Prometheus+Pushgateway?

Im currently using Prometheus with a pushgateway where I have some batch jobs and other scripts that push stats/data to push gateway, which gets propagated to prometheus (prometheus pulls data from here). Im exploring VictoriaMetrics as it provides additional promQL operations that pure prometheus doesn't and my setup is following: script/batchjob -> pushgateway <- prometheus -> VictoriaMetrics

Im wondering if its possible to just get rid of both pushgateway and prometheus and have my batchjob/script directly interface with VictoriaMetrics?


Answer questions ledmonster

@hagen1778 Hi!! I was not aware that pushgateway protocol is defined as prometheus text-based format.

In my case, my services can reach VM directly, so I adopted direct access approach. I succeeded to convert text protocol to remote_write one. Also, I added additional labels ("instance" and "job"), because I want to make data pushgateway compatible. It would be nice if /api/v1/import/prometheus supports additional labels. Thank you!!


Related questions

Failure to deploy with `helm template` in ArgoCD hot 2
Remote write for Prometheus not working hot 1
Graph missing some points hot 1
How to write data to VictoriaMetrics individually in batches? hot 1
Add data deduplication from HA Prometheus pair based on `--query.replica-label` arg similar to Thanos Query hot 1
Can't start VictoriaMetrics use docker-compose and volume mapping on Windows hot 1
Downsampling data - VictoriaMetrics hot 1
While under heavy load getting error panic hot 1
While under heavy load getting error panic hot 1
While under heavy load getting error panic hot 1
Windows build hot 1
Increase default value for -search.maxPointsPerTimeseries hot 1
changing precisionBits doesn't result in change in precision of stored value hot 1
Drop-in replacement prometheus not work with promxy (Prometheus HA) hot 1
Github User Rank List