Prometheus custom timestamp for historic data

I have historic data(y axis volume ,x axis historic time stamp) to add on Prometheus and grafana .I made my custome exporter to do that …how to add custome timestamp on x axis ?is there anyway to do that?

I tried doing
t=historic time
Add_metrices(value,timestamp=t.timestamp())

but it’s not working

Also I tried
t=now-timedelta(minutes=60)
Add_metrices(value,timestamp=t.timestamp())

By doing this I am only able to reach max 1 hour back …even after increasing minutes and using hour=n

what does the prometheus endpoint look like for your exporter? I think that the timestamps for prometheus are usually associated with when the DB scrapes the endpoint.

maybe some more info would help the community here.

Add_metrices(value,timestamp=t.timestamp())

where are you writing this function?