{"id":17743093,"url":"https://github.com/julien-r44/socket.io-prometheus","last_synced_at":"2026-03-05T16:04:13.297Z","repository":{"id":57152679,"uuid":"331087327","full_name":"Julien-R44/socket.io-prometheus","owner":"Julien-R44","description":"📡 Exposes metrics endpoint for Prometheus to collect data about Socket.io.","archived":false,"fork":false,"pushed_at":"2022-04-23T07:42:11.000Z","size":352,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-02T21:49:26.631Z","etag":null,"topics":["grafana","metrics","monitoring","prometheus","socket-io"],"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/Julien-R44.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["Julien-R44"]}},"created_at":"2021-01-19T19:30:11.000Z","updated_at":"2024-06-11T08:26:22.000Z","dependencies_parsed_at":"2022-09-06T18:10:47.249Z","dependency_job_id":null,"html_url":"https://github.com/Julien-R44/socket.io-prometheus","commit_stats":null,"previous_names":["julien-r44/socket.io-prometheus-v3"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Julien-R44/socket.io-prometheus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Julien-R44%2Fsocket.io-prometheus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Julien-R44%2Fsocket.io-prometheus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Julien-R44%2Fsocket.io-prometheus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Julien-R44%2Fsocket.io-prometheus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Julien-R44","download_url":"https://codeload.github.com/Julien-R44/socket.io-prometheus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Julien-R44%2Fsocket.io-prometheus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30134588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T15:35:27.018Z","status":"ssl_error","status_checked_at":"2026-03-05T15:35:23.768Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["grafana","metrics","monitoring","prometheus","socket-io"],"created_at":"2024-10-26T05:42:35.844Z","updated_at":"2026-03-05T16:04:13.273Z","avatar_url":"https://github.com/Julien-R44.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Julien-R44"],"categories":[],"sub_categories":[],"readme":"# socket.io-prometheus-v3\n\nExposes metrics endpoints for prometheus to collect data about socket.io v3.\n\n## Installation\n```\n$ npm i socket.io-prometheus-v3\n```\n\n## Usage \n```\nconst { PrometheusSocketIo } = require('socket.io-prometheus-v3')\nconst prometheus = PrometheusSocketIo.init({ \n    io, // io.Server\n    collectDefaultMetrics: false // Collect some Node.js-specific metrics.\n})\n\n...\n\n// Serve your metrics with express or whatever http server\napp.get('/metrics', async (req, res) =\u003e {\n    res.send(await prometheus.getMetrics())\n}) \n```\n\n## Grafana\nYou can find a ready-to-use Grafana dashboard in \"dashboards\". \n\nFor it to be fully complete, you need to activate the collectDefaultMetrics property that retrieves the metrics from your Node.js application.\n\n![dashboard grafana](docs/dashboard.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulien-r44%2Fsocket.io-prometheus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulien-r44%2Fsocket.io-prometheus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulien-r44%2Fsocket.io-prometheus/lists"}