Hi,
I'm using pushGateway to scrape some parts of my application that can't be scraped by Prometheus.
It is kind of a process that in the end I have a time series that I send to pushGateway.
From what I read in the documentation, despite sending the value of a metric in the push, I can't set the timestamp that I want it to be shown in Grafana(the timestamp of my time series), it is used the timestamp of when the push was sent.
How can i set a timestamp for each value?
#part of my code
registry = CollectorRegistry()
date = datetime.strptime('2021-11-04 10:45:32.259398', '%Y-%m-%d %H:%M:%S.%f')
g = Gauge('test_job_1', 'test_1', ['test','instance'], registry=registry)
g.labels('code_a','test').set(20)
g.set_time(date )#something like this, to set the date i want
push_to_gateway('localhost:9091', job='pushgateway', registry=registry)
Is there any way I can do this?