Ask questionsSupport timestamp option on prometheus import API

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

When I push metrics to /api/v1/import/prometheus, I want to specify a timestamp.

Describe the solution you'd like


Describe alternatives you've considered

add timestamps on prom file one by one

Additional context

our architecture:

IoT devices --> gateway --> pubsub --> worker --> VictoriaMetrics

IoT devices post prom formatted metrics (without timestamp) to gateway, and we push it to VictoriaMetrics through pubsub. Since there exist some latency on this path, I want to specify metrics timestamp by myself, instead of using current timestamp in VM import API layer.


Answer questions ledmonster

Thank you for quick implementation. I'll check the behavior hopefully on this weekend.


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