{"id":18303136,"url":"https://github.com/monzo/drbd9_exporter","last_synced_at":"2025-06-12T14:09:38.230Z","repository":{"id":78418217,"uuid":"220255786","full_name":"monzo/drbd9_exporter","owner":"monzo","description":"Exports status and metrics of DRBD 9.0 volumes","archived":false,"fork":false,"pushed_at":"2020-06-29T05:36:40.000Z","size":14,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-05T14:35:34.551Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monzo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-07T14:29:26.000Z","updated_at":"2025-02-21T08:11:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"98cdf490-077f-4ce4-bb94-03c9668d682b","html_url":"https://github.com/monzo/drbd9_exporter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/monzo/drbd9_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monzo%2Fdrbd9_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monzo%2Fdrbd9_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monzo%2Fdrbd9_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monzo%2Fdrbd9_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monzo","download_url":"https://codeload.github.com/monzo/drbd9_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monzo%2Fdrbd9_exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259479618,"owners_count":22864364,"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":[],"created_at":"2024-11-05T15:24:19.055Z","updated_at":"2025-06-12T14:09:38.222Z","avatar_url":"https://github.com/monzo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drdb9\\_exporter\n\nThis is a Prometheus exporter that, when running on a node, checks the status\nof that node's DRBD volumes.\n\n## Installation\n\nTo build the deb file:\n\n```\ndebuild -b -uc -us\n```\n\nTo build the binary:\n\n```bash\nmake\n```\n\n```bash\nCGO_ENABLED=0 go build\n```\n\nTo build the Docker container:\n\n```bash\nCGO_ENABLED=0 make GOLDFLAGS=\"-w -linkmode external -extldflags -static\" \u0026\u0026 docker build .\n```\n\n## Usage\n\nCommand-line options:\n\n```plain\nUsage of drbd9_exporter:\n  -web.listen-address string\n    \tAddress on which to expose metrics and web interface (default \":9481\")\n  -web.telemetry-path string\n    \tPath under which to expose metrics. (default \"/metrics\")\n```\n\n## Assumptions\n\nThis exporter assummes that you are running DRBD 9.0 and have the \ndebugfs mounted, most distros do, but if you don't then you can \nmanually mount the debugfs by doing:\n\n```bash\nmount -t debugfs nodev /sys/kernel/debug\n```\n\n## Example export\n\n```plain\n# HELP drbd_activitylog_writes Number of updates of the activity log area of the meta data.\n# TYPE drbd_activitylog_writes gauge\ndrbd_activitylog_writes{connection=\"n2\",id=\"0\",resource=\"r0\"} 0\ndrbd_activitylog_writes{connection=\"n3\",id=\"0\",resource=\"r0\"} 0\n# HELP drbd_bitmap_writes Number of updates of the bitmap area of the meta data.\n# TYPE drbd_bitmap_writes gauge\ndrbd_bitmap_writes{connection=\"n2\",id=\"0\",resource=\"r0\"} 0\ndrbd_bitmap_writes{connection=\"n3\",id=\"0\",resource=\"r0\"} 0\n# HELP drbd_connection_established a\n# TYPE drbd_connection_established gauge\ndrbd_connection_established{connection=\"n2\",id=\"0\",resource=\"r0\"} 1\ndrbd_connection_established{connection=\"n3\",id=\"0\",resource=\"r0\"} 1\n# HELP drbd_connection_unhealthy a\n# TYPE drbd_connection_unhealthy gauge\ndrbd_connection_unhealthy{connection=\"n2\",id=\"0\",resource=\"r0\"} 0\ndrbd_connection_unhealthy{connection=\"n3\",id=\"0\",resource=\"r0\"} 0\n# HELP drbd_disk_read_bytes Net data read from local hard disk.\n# TYPE drbd_disk_read_bytes gauge\ndrbd_disk_read_bytes{connection=\"n2\",id=\"0\",resource=\"r0\"} 262056\ndrbd_disk_read_bytes{connection=\"n3\",id=\"0\",resource=\"r0\"} 262056\n# HELP drbd_disk_written_bytes Net data written on local hard disk.\n# TYPE drbd_disk_written_bytes gauge\ndrbd_disk_written_bytes{connection=\"n2\",id=\"0\",resource=\"r0\"} 0\ndrbd_disk_written_bytes{connection=\"n3\",id=\"0\",resource=\"r0\"} 0\n# HELP drbd_epochs Number of Epochs currently on the fly.\n# TYPE drbd_epochs gauge\ndrbd_epochs{connection=\"n2\",id=\"0\",resource=\"r0\"} 1\ndrbd_epochs{connection=\"n3\",id=\"0\",resource=\"r0\"} 1\n# HELP drbd_local_disk_up_to_date a\n# TYPE drbd_local_disk_up_to_date gauge\ndrbd_local_disk_up_to_date{connection=\"n2\",id=\"0\",resource=\"r0\"} 1\ndrbd_local_disk_up_to_date{connection=\"n3\",id=\"0\",resource=\"r0\"} 1\n# HELP drbd_local_pending Number of open requests to the local I/O sub-system.\n# TYPE drbd_local_pending gauge\ndrbd_local_pending{connection=\"n2\",id=\"0\",resource=\"r0\"} 0\ndrbd_local_pending{connection=\"n3\",id=\"0\",resource=\"r0\"} 0\n# HELP drbd_network_received_bytes Volume of net data received by the partner via the network connection.\n# TYPE drbd_network_received_bytes gauge\ndrbd_network_received_bytes{connection=\"n2\",id=\"0\",resource=\"r0\"} 0\ndrbd_network_received_bytes{connection=\"n3\",id=\"0\",resource=\"r0\"} 0\n# HELP drbd_network_sent_bytes Volume of net data sent to the partner via the network connection.\n# TYPE drbd_network_sent_bytes gauge\ndrbd_network_sent_bytes{connection=\"n2\",id=\"0\",resource=\"r0\"} 131028\ndrbd_network_sent_bytes{connection=\"n3\",id=\"0\",resource=\"r0\"} 131028\n# HELP drbd_out_of_sync_bytes Amount of data known to be out of sync.\n# TYPE drbd_out_of_sync_bytes gauge\ndrbd_out_of_sync_bytes{connection=\"n2\",id=\"0\",resource=\"r0\"} 0\ndrbd_out_of_sync_bytes{connection=\"n3\",id=\"0\",resource=\"r0\"} 0\n# HELP drbd_remote_unacknowledged Number of requests received by the partner via the network connection, but that have not yet been answered.\n# TYPE drbd_remote_unacknowledged gauge\ndrbd_remote_unacknowledged{connection=\"n2\",id=\"0\",resource=\"r0\"} 0\ndrbd_remote_unacknowledged{connection=\"n3\",id=\"0\",resource=\"r0\"} 0\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonzo%2Fdrbd9_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonzo%2Fdrbd9_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonzo%2Fdrbd9_exporter/lists"}