{"id":47717865,"url":"https://github.com/raylas/scopepro-exporter","last_synced_at":"2026-04-05T22:00:45.307Z","repository":{"id":348105357,"uuid":"1196515541","full_name":"raylas/scopepro-exporter","owner":"raylas","description":"Prometheus exporter for the Transcend ScopePro CLI","archived":false,"fork":false,"pushed_at":"2026-03-30T21:33:16.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T21:43:04.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/raylas.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-30T19:19:56.000Z","updated_at":"2026-04-01T13:09:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/raylas/scopepro-exporter","commit_stats":null,"previous_names":["raylas/scopepro-exporter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/raylas/scopepro-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raylas%2Fscopepro-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raylas%2Fscopepro-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raylas%2Fscopepro-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raylas%2Fscopepro-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raylas","download_url":"https://codeload.github.com/raylas/scopepro-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raylas%2Fscopepro-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31451446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"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":[],"created_at":"2026-04-02T19:06:45.675Z","updated_at":"2026-04-05T22:00:44.840Z","avatar_url":"https://github.com/raylas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scopepro-exporter\n\nPrometheus exporter for [Transcend ScopePro CLI](https://us.transcend-info.com/manual/ScopeProCLI/EN/) metrics — exposes S.M.A.R.T attributes, health percentage, and drive identification for Transcend embedded SSDs and SD cards.\n\n## Usage\n\n```\nscopepro-exporter -devices /dev/sda,/dev/nvme0n1\n```\n\nThe exporter requires `scopepro` to be installed and accessible. It must run with sufficient privileges (typically root) to execute `scopepro`.\n\n## Flags\n\n| Flag | Default | Description |\n|------|---------|-------------|\n| `-addr` | `:9993` | Server bind address |\n| `-devices` | *(required)* | Comma-separated device paths to monitor |\n| `-log-level` | `info` | Log level (debug, info, warn, error) |\n| `-namespace` | `scopepro` | Metric namespace prefix |\n| `-scopepro-path` | `scopepro` | Path to the scopepro binary |\n\n## Metrics\n\n| Metric | Type | Description |\n|--------|------|-------------|\n| `scopepro_drive_info` | gauge | Drive identity (labels: device, type, model, firmware, serial, interface, manufacturer, product, revision) |\n| `scopepro_health_percentage` | gauge | Drive health percentage |\n| `scopepro_smart_*` | gauge | S.M.A.R.T attributes (one metric per attribute, label: device) |\n| `scopepro_scrape_errors_total` | counter | Scrape errors per device |\n| `scopepro_build_info` | gauge | Build information (label: version) |\n\n## Prometheus Scrape Config\n\n```yaml\nscrape_configs:\n  - job_name: scopepro\n    static_configs:\n      - targets: ['localhost:9993']\n```\n\n## Building\n\n```\nnix build\n```\n\nThe binary is output to `result/bin/scopepro-exporter`.\n\n### Docker image (Linux only)\n\n```\nnix build .#image\ndocker load \u003c result\n```\n\n### Without Nix\n\n```\ngo build -o scopepro-exporter ./cmd/scopepro-exporter\n```\n\n## Docker Deployment\n\nThe Nix-built image contains only the exporter binary. Since the exporter shells out to `scopepro`, you'll need an image that includes the [ScopePro CLI](https://us.transcend-info.com/manual/ScopeProCLI/EN/). Here's a sample `Dockerfile` that combines the exporter from ghcr.io with the CLI from Transcend's Ubuntu PPA:\n\n```dockerfile\nFROM ghcr.io/raylas/scopepro-exporter:latest AS exporter\n\nFROM ubuntu:22.04\nRUN apt-get update \\\n    \u0026\u0026 apt-get install -y --no-install-recommends software-properties-common \\\n    \u0026\u0026 add-apt-repository ppa:transcend-rd/scopepro-cli \\\n    \u0026\u0026 apt-get update \\\n    \u0026\u0026 apt-get install -y --no-install-recommends scopepro-cli \\\n    \u0026\u0026 apt-get purge -y software-properties-common \\\n    \u0026\u0026 apt-get autoremove -y \\\n    \u0026\u0026 rm -rf /var/lib/apt/lists/*\nCOPY --from=exporter /bin/scopepro-exporter /usr/local/bin/scopepro-exporter\nENTRYPOINT [\"scopepro-exporter\"]\n```\n\nBuild and run with device access:\n\n```\ndocker build -t scopepro-exporter-full .\ndocker run --privileged -p 9993:9993 scopepro-exporter-full -devices /dev/sda\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraylas%2Fscopepro-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraylas%2Fscopepro-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraylas%2Fscopepro-exporter/lists"}