Hi
Julius Volz,
Thanks for the explanation got the clear picture of the working of Prometheus, It works fine in my local computer, when I host the Exporter to the AWS instance, I am getting only the 2 hours of data, unlikely in local it works for any number of hours(Getting the data uninterrupted when the Exporter server is up), I think I am missing something while handling the server on AWS Instance, Herby I am including the code for the server, Kindly help me out to resolve that.
Code:
import prometheus_client
class ABCD:
def function:
yield metric
if __name__ == '__main__':
start_http_server(int(sys.argv[1]))
REGISTRY.register(ABCD())
while True: time.sleep(1)
Best,
Dhanush Eswar G