{"id":20357873,"url":"https://github.com/gandi/ctld_exporter","last_synced_at":"2025-04-12T03:15:02.069Z","repository":{"id":57572791,"uuid":"181473946","full_name":"Gandi/ctld_exporter","owner":"Gandi","description":"Prometheus exporter for FreeBSD CTL daemon","archived":false,"fork":false,"pushed_at":"2023-09-19T06:39:52.000Z","size":1407,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-12T03:14:56.651Z","etag":null,"topics":["freebsd","iscsi","prometheus"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gandi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-15T11:36:09.000Z","updated_at":"2024-01-23T08:33:49.000Z","dependencies_parsed_at":"2024-06-20T09:24:29.517Z","dependency_job_id":"d39a9853-c22d-4265-be49-53770ff8b7b9","html_url":"https://github.com/Gandi/ctld_exporter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gandi%2Fctld_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gandi%2Fctld_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gandi%2Fctld_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gandi%2Fctld_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gandi","download_url":"https://codeload.github.com/Gandi/ctld_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248510001,"owners_count":21116130,"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":["freebsd","iscsi","prometheus"],"created_at":"2024-11-14T23:24:18.441Z","updated_at":"2025-04-12T03:15:02.048Z","avatar_url":"https://github.com/Gandi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ctld Exporter\nPrometheus exporter for [ctld](https://www.freebsd.org/cgi/man.cgi?query=ctld\u0026sektion=8) (CAM Target Layer / iSCSI target daemon)\nThis exporter uses CGO to get the data (part of the C code is taken from [ctlstat](https://www.freebsd.org/cgi/man.cgi?query=ctlstat\u0026sektion=8) and [ctladm](https://www.freebsd.org/cgi/man.cgi?query=ctladm\u0026sektion=8)). It is planned to remove CGO use in future version.\n\nThe exported metrics are the data available using [ctlstat](https://www.freebsd.org/cgi/man.cgi?query=ctlstat\u0026sektion=8) and matched against\ntarget and LUN id within that target.\n\n## Installation\nYou can build the latest version using Go v1.11+ on FreeBSD via `go get`:\n```\ngo get -u github.com/Gandi/ctld_exporter\n```\n\n## Usage\n```\nusage: ctld_exporter [\u003cflags\u003e]\n\nFlags:\n  -h, --help              Show context-sensitive help (also try --help-long and --help-man).\n      --web.listen-address=\":9572\"\n                          Address on which to expose metrics and web interface.\n      --web.telemetry-path=\"/metrics\"\n                          Path under which to expose metrics.\n      --log.level=\"info\"  Only log messages with the given severity or above. Valid levels: [debug, info,\n                          warn, error, fatal]\n      --log.format=\"logger:stderr\"\n                          Set the log target and format. Example: \"logger:syslog?appname=bob\u0026local=7\" or\n                          \"logger:stdout?json=true\"\n      --version           Show application version.\n```\n\n## Caveats\nThis exporter NEEDS to be build on FreeBSD with access to core source (expected location is `/usr/src/`).\nThe exporter must have r/w access to `/dev/cam/ctl` thus needing root privileges.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgandi%2Fctld_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgandi%2Fctld_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgandi%2Fctld_exporter/lists"}