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.


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


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.


Answer questions ledmonster

I think it would be great adding labels={<LABEL_NAME>:<LABEL_VALUE>,...} query arg to all the supported data ingestion protocols that work over http.

That's great!!

I'm also using relabeling feature, 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