How can I monitor my python processes (say some script that gets triggered periodically by Cron daemon) using Prometheus?
Note that this is not a web application but a s
you can use pushgateway and prometheus_client
from prometheus_client import CollectorRegistry, Gauge, push_to_gateway
registry = CollectorRegistry()
g = Gauge('job_last_success_unixtime', 'Last time a job successfully finished', registry=registry)
g.set_to_current_time()
push_to_gateway('localhost:9091', job='job_a', registry=registry)