How can we add our own timestamp in Prometheus metric series?

25 views
Skip to first unread message

akshay sharma

unread,
Jan 7, 2021, 9:23:26 AM1/7/21
to Prometheus Users

I'm trying to add my own timestamp instead of Prometheus's timestamp.

for ex:

node_value{endpoint="https",instance="xx.xx.xx.xx",job="prometheus,node="node1"}

489846 @1610014796.199

489933 @1610014826.199

Requirement: node_value(above) is a metric with two values and timestamp(Scrape timestamp added by prometheus), Instead of scrape timestamp I want to add my own timestamp which I'm fetching from third-party. Do we have the provision for that?

How can I send my own timestamp with metric?


Note: I'm using a golang prometheus client.

Reply all
Reply to author
Forward
0 new messages