{"id":18918662,"url":"https://github.com/sparkmeter/quart-prometheus-logger","last_synced_at":"2025-09-21T18:05:22.797Z","repository":{"id":56553601,"uuid":"303531034","full_name":"sparkmeter/quart-prometheus-logger","owner":"sparkmeter","description":"A Prometheus logger extension for Quart","archived":false,"fork":false,"pushed_at":"2020-12-29T15:29:51.000Z","size":20,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-31T15:52:58.877Z","etag":null,"topics":["hacktoberfest","prometheus","quart"],"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/sparkmeter.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":"2020-10-12T22:49:57.000Z","updated_at":"2024-11-21T01:01:46.000Z","dependencies_parsed_at":"2022-08-15T20:50:31.320Z","dependency_job_id":null,"html_url":"https://github.com/sparkmeter/quart-prometheus-logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkmeter%2Fquart-prometheus-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkmeter%2Fquart-prometheus-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkmeter%2Fquart-prometheus-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkmeter%2Fquart-prometheus-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparkmeter","download_url":"https://codeload.github.com/sparkmeter/quart-prometheus-logger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239914928,"owners_count":19717760,"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","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":["hacktoberfest","prometheus","quart"],"created_at":"2024-11-08T10:33:01.950Z","updated_at":"2025-09-21T18:05:17.708Z","avatar_url":"https://github.com/sparkmeter.png","language":"Python","readme":"# quart-prometheus-logger\n\nA Prometheus logger extension for Quart.\n\nThis extension collects key request metrics for every endpoint registered in a Quart application. Namely:\n* `http_requests`, the number of http requests fulfilled by the application since it started up\n* `http_requests_errors`, the number of http error responses returned by the application since it started up\n* `http_request_duration_seconds`, the amount of time spent handling http requests\n* `http_request_size_bytes`, the size of http requests fulfilled by the application\n* `http_response_size_bytes`, the size of http responses returned by the application\n\n### Usage\n\nInitialize the extension with the application\n\n```py\nfrom quart import Quart\n\napp = Quart(__name__)\nprometheus_registry = PrometheusRegistry(app=app, metrics_endpoint='internal')\n```\nOr you can use the factory pattern\n\n```py\nprometheus_registry = PrometheusRegistry(metrics_endpoint='internal')\ndef create_app()\n    app = Quart(__name__)\n    prometheus_registry.init_app(app)\n    return app\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkmeter%2Fquart-prometheus-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparkmeter%2Fquart-prometheus-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkmeter%2Fquart-prometheus-logger/lists"}