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

but it’s not working

Also I tried

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.


where are you writing this function?