{"id":31842832,"url":"https://github.com/amitsaha/python-prometheus-demo","last_synced_at":"2025-10-12T06:55:51.422Z","repository":{"id":52860145,"uuid":"89038056","full_name":"amitsaha/python-prometheus-demo","owner":"amitsaha","description":"Demo of using Prometheus for monitoring Python web applications","archived":false,"fork":false,"pushed_at":"2025-08-01T00:55:45.000Z","size":59,"stargazers_count":109,"open_issues_count":6,"forks_count":44,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-12T01:49:22.129Z","etag":null,"topics":["metrics","prometheus","python","statsd","webapplication"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amitsaha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-22T02:12:42.000Z","updated_at":"2025-08-01T00:55:49.000Z","dependencies_parsed_at":"2022-08-23T11:00:18.723Z","dependency_job_id":null,"html_url":"https://github.com/amitsaha/python-prometheus-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amitsaha/python-prometheus-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitsaha%2Fpython-prometheus-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitsaha%2Fpython-prometheus-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitsaha%2Fpython-prometheus-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitsaha%2Fpython-prometheus-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amitsaha","download_url":"https://codeload.github.com/amitsaha/python-prometheus-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitsaha%2Fpython-prometheus-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010543,"owners_count":26084758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["metrics","prometheus","python","statsd","webapplication"],"created_at":"2025-10-12T06:55:39.762Z","updated_at":"2025-10-12T06:55:51.417Z","avatar_url":"https://github.com/amitsaha.png","language":"Python","readme":"# Python + Prometheus Demo\n\n## Demos based on codeship blog posts\n\nThe following two applications are discussed in the [first blog post](https://www.cloudbees.com/blog/monitoring-your-synchronous-python-web-applications-using-prometheus?utm_content=58060028\u0026utm_medium=social\u0026utm_source=twitter):\n\n### [flask_app_prometheus](https://github.com/amitsaha/python-prometheus-demo/tree/master/flask_app_prometheus)\n\nA Flask application using the native Prometheus Python client to expose metrics via the `/metrics` endpoint\n\n### [flask_app_statsd_prometheus](https://github.com/amitsaha/python-prometheus-demo/tree/master/flask_app_statsd_prometheus)\n\nA Flask application which pushes the metrics to a `statsd` bridge which converts `DogStatsd` metrics to `Prometheus` compatible metrics.\n\nThe [second blog post](https://www.cloudbees.com/blog/monitoring-your-asynchronous-python-web-applications-using-prometheus?utm_content=58777682\u0026utm_medium=social\u0026utm_source=twitter) refers to the next application:\n\n### [aiohttp_app_prometheus](https://github.com/amitsaha/python-prometheus-demo/tree/master/aiohttp_app_prometheus)\n\nAn aiohttp application with prometheus integeration.\n\n## Django web application + statsd -\u003e Prometheus\n\n### [django_app_statsd_prometheus](./django_app_statsd_prometheus)\n\nThis demo demonstrates how we can push HTTP metrics from a Django application into statsd exporter\nwhich is then scraped by prometheus.\n\n### [django_app_gunicorn_statsd_prometheus](./django_app_gunicorn_statsd_prometheus)\n\nThis demo demonstrates howe can push statsd metrics from gunicorn running a django application.\nI learned about this approach from this [blog post](https://medium.com/@damianmyerscough/monitoring-gunicorn-with-prometheus-789954150069).\n\n\n## Attempts to get native prometheus export working\n\nSee [blog post](http://echorand.me/your-options-for-monitoring-multi-process-python-applications-with-prometheus.html)\n\n### [flask_app_prometheus_worker_id](https://github.com/amitsaha/python-prometheus-demo/tree/master/flask_app_prometheus_worker_id)\n\n### [flask_app_prometheus_multiprocessing](https://github.com/amitsaha/python-prometheus-demo/tree/master/flask_app_prometheus_multiprocessing)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitsaha%2Fpython-prometheus-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famitsaha%2Fpython-prometheus-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitsaha%2Fpython-prometheus-demo/lists"}