{"id":37088741,"url":"https://github.com/vinted/sonic-exporter","last_synced_at":"2026-01-14T10:53:50.594Z","repository":{"id":193221619,"uuid":"681662604","full_name":"vinted/sonic-exporter","owner":"vinted","description":"sonic-exporter is prometheus exporter for network switches running sonic NOS.","archived":false,"fork":false,"pushed_at":"2025-11-24T14:29:38.000Z","size":403,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-11-28T03:29:05.721Z","etag":null,"topics":["metrics","network","networking","prometheus","prometheus-exporter","sonic","telemetry"],"latest_commit_sha":null,"homepage":"","language":"Go","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/vinted.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}},"created_at":"2023-08-22T13:43:23.000Z","updated_at":"2025-11-24T14:28:30.000Z","dependencies_parsed_at":"2023-11-21T09:26:35.548Z","dependency_job_id":null,"html_url":"https://github.com/vinted/sonic-exporter","commit_stats":{"total_commits":39,"total_committers":2,"mean_commits":19.5,"dds":0.02564102564102566,"last_synced_commit":"9ea6e6eec1a21686a5a904da0d80426396bbcf1e"},"previous_names":["vinted/sonic-exporter"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/vinted/sonic-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinted%2Fsonic-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinted%2Fsonic-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinted%2Fsonic-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinted%2Fsonic-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinted","download_url":"https://codeload.github.com/vinted/sonic-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinted%2Fsonic-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":["metrics","network","networking","prometheus","prometheus-exporter","sonic","telemetry"],"created_at":"2026-01-14T10:53:49.965Z","updated_at":"2026-01-14T10:53:50.587Z","avatar_url":"https://github.com/vinted.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sonic-exporter\n\nPrometheus exporter for [SONiC](https://github.com/sonic-net/SONiC) NOS.\n\nCurrently supported collectors:\n- [HW collector](internal/collector/hw_collector.go): collects metrics about PSU and Fan operation\n- [Interface collector](internal/collector/interface_collector.go): collect metrics about interface operation and performance.\n- [CRM collector](internal/collector/hw_collector.go): collects Critial Resource Monitoring metrics.\n- [Queue collector](internal/collector/queue_collector.go): collects metrics about queues.\n\n# Usage\n\n1. Run binary \n```bash\n$ ./sonic-exporter\n```\n\n2. You can verify that exporter is running by cURLing the `/metrics` endpoint. \n```bash\n$ curl localhost:9101/metrics\n```\n\n# Configuration\n\nEnvironment variables:\n\n- `REDIS_ADDRESS` - redis connection string, if using unix socket set `REDIS_NETWORK` to `unix`. Default: `localhost:6379`.\n- `REDIS_PASSWORD` - password used when connecting to redis.\n- `REDIS_NETWORK` - redis network type, either tcp or unix. Default: `tcp`.\n\n# Development\n\n1. Development environment is based on docker-compose. To start it run:\n```bash\n$ docker-compose up --build -d\n```\n\n2. To verify that development environment is ready try cURLing the `/metrics` endpoint, you should see exported metrics.:\n```bash\n$ curl localhost:9101/metrics\n```\n\n3. After making code changes rebuild docker container:\n```bash\n$ docker-compose down\n$ docker-compose up --build -d\n```\n\nIn case you need to add additional keys to redis database don't forget to run `SAVE` in redis after doing so:\n```bash\n$ redis-cli\n$ 127.0.0.1:6379\u003e SAVE\n```\n\n## Test\n\nCurrently, tests are using mockredis database which is populated from [fixture files](fixtures/test/).\nTo run tests manually simply execute:\n```bash\n$ go test -v ./... \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinted%2Fsonic-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinted%2Fsonic-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinted%2Fsonic-exporter/lists"}