profile
viewpoint

Ask questionsSupport additional labels on prometheus import API

Is your feature request related to a problem? Please describe.

When I try to substitute VictoriaMetrics for Prometheus+Pushgateway, lack of additional labels feature on prometheus import API (/api/v1/import/prometheus) makes work harder. Pushgateway does support additional labels on API, and I want to use it in the import API, too.

Describe the solution you'd like

One idea is to support same API as Pushgateway.

/api/v1/import/prometheus{/<LABEL_NAME>/<LABEL_VALUE>}

or some query strings (e.g. labels) may also work.

/api/v1/import/prometheus?labels={<LABEL_NAME>%3D<LABEL_VALUE>,}

Describe alternatives you've considered

Now I'm using remote_write API instead. I parse Prometheus exposition format to WriteRequest and post it to the API with following code.

  • https://gist.github.com/ledmonster/7d0de61a788b164a510c0359465a41f4
VictoriaMetrics/VictoriaMetrics

Answer questions ledmonster

@valyala I'll try it later, thank you!!

useful!

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
source:https://uonfu.com/
Github User Rank List