{"id":15941459,"url":"https://github.com/markmur/express-prometheus-metrics","last_synced_at":"2026-03-04T23:03:18.872Z","repository":{"id":34904188,"uuid":"188563957","full_name":"markmur/express-prometheus-metrics","owner":"markmur","description":"Express middleware for collecting metrics with Prometheus","archived":false,"fork":false,"pushed_at":"2023-01-03T22:39:00.000Z","size":2452,"stargazers_count":3,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T23:27:56.598Z","etag":null,"topics":["express","grafana","middleware","prometheus"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/markmur.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":"2019-05-25T12:32:34.000Z","updated_at":"2023-09-01T12:55:33.000Z","dependencies_parsed_at":"2023-01-15T10:15:33.384Z","dependency_job_id":null,"html_url":"https://github.com/markmur/express-prometheus-metrics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markmur/express-prometheus-metrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmur%2Fexpress-prometheus-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmur%2Fexpress-prometheus-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmur%2Fexpress-prometheus-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmur%2Fexpress-prometheus-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markmur","download_url":"https://codeload.github.com/markmur/express-prometheus-metrics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmur%2Fexpress-prometheus-metrics/sbom","scorecard":{"id":620248,"data":{"date":"2025-08-11","repo":{"name":"github.com/markmur/express-prometheus-metrics","commit":"def118386e81882e3b495ff6f368d4dfebe4a2c2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"51 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-86wf-436m-h424","Warn: Project is vulnerable to: GHSA-8w57-jfpm-945m","Warn: Project is vulnerable to: GHSA-8g7p-74h8-hg48","Warn: Project is vulnerable to: GHSA-pc5p-h8pf-mvwp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-6fw4-hr69-g3rv","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-3f95-r44v-8mrg","Warn: Project is vulnerable to: GHSA-28xr-mwxg-3qc8","Warn: Project is vulnerable to: GHSA-9p95-fxvg-qgq2","Warn: Project is vulnerable to: GHSA-9w5j-4mwv-2wj8","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-29xr-v42j-r956","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T05:03:03.957Z","repository_id":34904188,"created_at":"2025-08-21T05:03:03.957Z","updated_at":"2025-08-21T05:03:03.957Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30098106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T22:49:54.894Z","status":"ssl_error","status_checked_at":"2026-03-04T22:49:48.883Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["express","grafana","middleware","prometheus"],"created_at":"2024-10-07T07:04:28.334Z","updated_at":"2026-03-04T23:03:18.852Z","avatar_url":"https://github.com/markmur.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-prometheus-metrics\n\nExpress middleware for collecting metrics with Prometheus\n\n## Install\n\n```sh\nyarn add express-prometheus-metrics\n```\n\n## Usage\n\n```js\nconst express = require('express')\nconst metrics = require('express-prometheus-metrics')\n\nconst app = express()\n\napp.use(\n  metrics({\n    // The route to expose the metrics on\n    metricsPath: '/metrics',\n\n    // How often prometheus should collect the metrics\n    interval: 60 * 1000,\n\n    // Any routes that should be ignored\n    excludeRoutes: [],\n\n    // Percentiles for request duration summary\n    requestDurationBuckets: [0.5, 0.9, 0.95, 0.99],\n\n    // Time buckets for request duration histogram\n    requestDurationHistogramBuckets: [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10],\n\n    // Size buckets for request\n    requestSizeBuckets: [5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000],\n\n    // Size buckets for response\n    responseSizeBuckets: [5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000],\n  }),\n)\n\napp.listen(process.env.PORT, error =\u003e {\n  if (error) throw error\n\n  console.log(`Listening on http://localhost:${process.env.PORT}`)\n  console.log(\n    `Metrics available at http://localhost:${process.env.PORT}/metrics`,\n  )\n})\n```\n\n## Metrics Example\n\n\u003cdetails\u003e\n  \u003csummary\u003eView Metrics Example\u003c/summary\u003e\n\n  ```\n  # HELP process_cpu_user_seconds_total Total user CPU time spent in seconds.\n# TYPE process_cpu_user_seconds_total counter\nprocess_cpu_user_seconds_total 0.705806 1558806366238\n\n# HELP process_cpu_system_seconds_total Total system CPU time spent in seconds.\n# TYPE process_cpu_system_seconds_total counter\nprocess_cpu_system_seconds_total 0.058946 1558806366238\n\n# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.\n# TYPE process_cpu_seconds_total counter\nprocess_cpu_seconds_total 0.764752 1558806366238\n\n# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.\n# TYPE process_start_time_seconds gauge\nprocess_start_time_seconds 1558806355\n\n# HELP process_resident_memory_bytes Resident memory size in bytes.\n# TYPE process_resident_memory_bytes gauge\nprocess_resident_memory_bytes 58933248 1558806366238\n\n# HELP nodejs_eventloop_lag_seconds Lag of event loop in seconds.\n# TYPE nodejs_eventloop_lag_seconds gauge\nnodejs_eventloop_lag_seconds 0.000792479 1558806366239\n\n# HELP nodejs_active_handles_total Number of active handles.\n# TYPE nodejs_active_handles_total gauge\nnodejs_active_handles_total 8 1558806366238\n\n# HELP nodejs_active_requests_total Number of active requests.\n# TYPE nodejs_active_requests_total gauge\nnodejs_active_requests_total 0 1558806366238\n\n# HELP nodejs_heap_size_total_bytes Process heap size from node.js in bytes.\n# TYPE nodejs_heap_size_total_bytes gauge\nnodejs_heap_size_total_bytes 40144896 1558806366238\n\n# HELP nodejs_heap_size_used_bytes Process heap size used from node.js in bytes.\n# TYPE nodejs_heap_size_used_bytes gauge\nnodejs_heap_size_used_bytes 31756904 1558806366238\n\n# HELP nodejs_external_memory_bytes Nodejs external memory size in bytes.\n# TYPE nodejs_external_memory_bytes gauge\nnodejs_external_memory_bytes 83838 1558806366238\n\n# HELP nodejs_heap_space_size_total_bytes Process heap space size total from node.js in bytes.\n# TYPE nodejs_heap_space_size_total_bytes gauge\nnodejs_heap_space_size_total_bytes{space=\"read_only\"} 524288 1558806366238\nnodejs_heap_space_size_total_bytes{space=\"new\"} 1048576 1558806366238\nnodejs_heap_space_size_total_bytes{space=\"old\"} 32215040 1558806366238\nnodejs_heap_space_size_total_bytes{space=\"code\"} 1572864 1558806366238\nnodejs_heap_space_size_total_bytes{space=\"map\"} 2109440 1558806366238\nnodejs_heap_space_size_total_bytes{space=\"large_object\"} 2674688 1558806366238\n\n# HELP nodejs_heap_space_size_used_bytes Process heap space size used from node.js in bytes.\n# TYPE nodejs_heap_space_size_used_bytes gauge\nnodejs_heap_space_size_used_bytes{space=\"read_only\"} 35200 1558806366238\nnodejs_heap_space_size_used_bytes{space=\"new\"} 8792 1558806366238\nnodejs_heap_space_size_used_bytes{space=\"old\"} 28045920 1558806366238\nnodejs_heap_space_size_used_bytes{space=\"code\"} 1054912 1558806366238\nnodejs_heap_space_size_used_bytes{space=\"map\"} 1289464 1558806366238\nnodejs_heap_space_size_used_bytes{space=\"large_object\"} 1327648 1558806366238\n\n# HELP nodejs_heap_space_size_available_bytes Process heap space size available from node.js in bytes.\n# TYPE nodejs_heap_space_size_available_bytes gauge\nnodejs_heap_space_size_available_bytes{space=\"read_only\"} 480384 1558806366238\nnodejs_heap_space_size_available_bytes{space=\"new\"} 1022376 1558806366238\nnodejs_heap_space_size_available_bytes{space=\"old\"} 3388192 1558806366238\nnodejs_heap_space_size_available_bytes{space=\"code\"} 456512 1558806366238\nnodejs_heap_space_size_available_bytes{space=\"map\"} 776104 1558806366238\nnodejs_heap_space_size_available_bytes{space=\"large_object\"} 1486573056 1558806366238\n\n# HELP nodejs_version_info Node.js version info.\n# TYPE nodejs_version_info gauge\nnodejs_version_info{version=\"v10.14.1\",major=\"10\",minor=\"14\",patch=\"1\"} 1\n\n# HELP app_version Application version from the package.json file as string\n# TYPE app_version gauge\napp_version{version=\"0.2.5\"} 1\n\n# HELP http_request_duration_histogram_seconds Duration of HTTP requests in seconds\n# TYPE http_request_duration_histogram_seconds histogram\nhttp_request_duration_histogram_seconds_bucket{le=\"0.005\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0\nhttp_request_duration_histogram_seconds_bucket{le=\"0.01\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0\nhttp_request_duration_histogram_seconds_bucket{le=\"0.025\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0\nhttp_request_duration_histogram_seconds_bucket{le=\"0.05\",route=\"/graphql\",method=\"POST\",code=\"200\"} 1\nhttp_request_duration_histogram_seconds_bucket{le=\"0.1\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_duration_histogram_seconds_bucket{le=\"0.25\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_duration_histogram_seconds_bucket{le=\"0.5\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_duration_histogram_seconds_bucket{le=\"1\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_duration_histogram_seconds_bucket{le=\"2.5\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_duration_histogram_seconds_bucket{le=\"5\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_duration_histogram_seconds_bucket{le=\"10\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_duration_histogram_seconds_bucket{le=\"+Inf\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_duration_histogram_seconds_sum{route=\"/graphql\",method=\"POST\",code=\"200\"} 0.118276569\nhttp_request_duration_histogram_seconds_count{route=\"/graphql\",method=\"POST\",code=\"200\"} 2\n\n# HELP http_request_duration_summary_seconds Summary of request durations in seconds\n# TYPE http_request_duration_summary_seconds summary\nhttp_request_duration_summary_seconds{quantile=\"0.5\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0.058377634\nhttp_request_duration_summary_seconds{quantile=\"0.9\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0.0838918\nhttp_request_duration_summary_seconds{quantile=\"0.95\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0.0838918\nhttp_request_duration_summary_seconds{quantile=\"0.99\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0.0838918\nhttp_request_duration_summary_seconds_sum{route=\"/graphql\",method=\"POST\",code=\"200\"} 0.116755268\nhttp_request_duration_summary_seconds_count{route=\"/graphql\",method=\"POST\",code=\"200\"} 2\n\n# HELP http_request_size_bytes Size of HTTP request in bytes\n# TYPE http_request_size_bytes histogram\nhttp_request_size_bytes_bucket{le=\"5\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0\nhttp_request_size_bytes_bucket{le=\"10\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0\nhttp_request_size_bytes_bucket{le=\"25\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0\nhttp_request_size_bytes_bucket{le=\"50\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0\nhttp_request_size_bytes_bucket{le=\"100\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0\nhttp_request_size_bytes_bucket{le=\"250\",route=\"/graphql\",method=\"POST\",code=\"200\"} 0\nhttp_request_size_bytes_bucket{le=\"500\",route=\"/graphql\",method=\"POST\",code=\"200\"} 1\nhttp_request_size_bytes_bucket{le=\"1000\",route=\"/graphql\",method=\"POST\",code=\"200\"} 1\nhttp_request_size_bytes_bucket{le=\"2500\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_size_bytes_bucket{le=\"5000\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_size_bytes_bucket{le=\"10000\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_size_bytes_bucket{le=\"+Inf\",route=\"/graphql\",method=\"POST\",code=\"200\"} 2\nhttp_request_size_bytes_sum{route=\"/graphql\",method=\"POST\",code=\"200\"} 2110\nhttp_request_size_bytes_count{route=\"/graphql\",method=\"POST\",code=\"200\"} 2\n\n# HELP http_response_size_bytes Size of HTTP response in bytes\n# TYPE http_response_size_bytes histogram\nhttp_response_size_bytes_bucket{le=\"5\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"10\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"25\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"50\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"100\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"250\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"500\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"1000\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"2500\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"5000\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"10000\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_bucket{le=\"+Inf\",method=\"POST\",route=\"/graphql\",code=\"200\"} 2\nhttp_response_size_bytes_sum{method=\"POST\",route=\"/graphql\",code=\"200\"} 0\nhttp_response_size_bytes_count{method=\"POST\",route=\"/graphql\",code=\"200\"} 2\n\n# HELP http_requests_total Counter for total requests received\n# TYPE http_requests_total counter\nhttp_requests_total{route=\"/graphql\",method=\"POST\",code=\"200\"} 2\n  ```\n\u003c/details\u003e\n\n## Running Prometheus \u0026 Grafana\n\n\u003e This step assumes you have `docker` and `docker-compose` set up. If not, [install docker here](https://docs.docker.com/install/) and [install docker-compose-here](https://docs.docker.com/compose/install/)\n\nThe easiest way to run both Prometheus and Grafana is to create a `docker-compose.yaml` file and add the following:\n\n```yaml\nversion: '3'\nservices:\n  prometheus:\n    image: \"prom/prometheus\"\n    ports:\n     - \"9090:9090\"\n    volumes:\n     - data:/prometheus-data\n  grafana:\n    image: \"grafana/grafana\"\n    depends_on:\n      - prometheus\n    ports:\n     - \"3000:3000\"\n\nvolumes:\n  data:\n```\n\nNow run both images using:\n\n```sh\ndocker-compose up\n```\n\nIf you want to run both images as a background process, using the `-d` flag with `docker-compose up`.\n\nThis will pull the `prometheus` and `grafana` images from their respective registries and expose them on port `9090` and `3000` respectively.\n\n\n## Debugging\n\nThis package uses `debug` for debug logs with the `express-prometheus-metrics` key.\n\nRun your app with the following environment variable to output the debug logs:\n\n```sh\nDEBUG=express-prometheus-metrics node index.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmur%2Fexpress-prometheus-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkmur%2Fexpress-prometheus-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmur%2Fexpress-prometheus-metrics/lists"}