{"id":19900077,"url":"https://github.com/m-lab/disco","last_synced_at":"2025-08-05T18:06:16.190Z","repository":{"id":43702968,"uuid":"272523424","full_name":"m-lab/disco","owner":"m-lab","description":"DIScard COllector. Collects metrics from switches, writes them to disk and exports them.","archived":false,"fork":false,"pushed_at":"2025-04-07T09:06:37.000Z","size":57,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-07-27T06:36:26.780Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-lab.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,"zenodo":null}},"created_at":"2020-06-15T19:14:31.000Z","updated_at":"2022-01-10T23:07:25.000Z","dependencies_parsed_at":"2024-11-06T16:38:39.772Z","dependency_job_id":"0dd4f5b5-5cc5-4c96-8f1c-c5b6c78a0612","html_url":"https://github.com/m-lab/disco","commit_stats":{"total_commits":21,"total_committers":4,"mean_commits":5.25,"dds":0.1428571428571429,"last_synced_commit":"99c8f200faa9fa3a0f2c8f477b084b269dd6a497"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/m-lab/disco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fdisco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fdisco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fdisco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fdisco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-lab","download_url":"https://codeload.github.com/m-lab/disco/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fdisco/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268840301,"owners_count":24315476,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-12T20:11:05.013Z","updated_at":"2025-08-05T18:06:16.130Z","avatar_url":"https://github.com/m-lab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Coverage Status](https://coveralls.io/repos/github/m-lab/disco/badge.svg?branch=master)](https://coveralls.io/github/m-lab/disco?branch=master)\n\n# DISCOv2\n\nDISCOv2 is a reimplementation of the DISCO parts of\n[collectd-mlab](https://github.com/m-lab/collectd-mlab), written in Go. It\ndiffers a bit from DISCO, but fundamentally they are the same in that they\nboth probe a switch for various traffic metrics every 10s and then\nperiodically write the results to a file in JSON format. Pusher will upload\nthose files to GCS where they will be processed and parsed into BigQuery.\n\nDISCOv2 supports the following flags:\n\n* `--prometheusx.listen-address`: the IP and TCP port to listen to for\n   Prometheus metricis requests.\n* `--metrics-file`: the path to a YAML-formatted file defining which metrics to\n   scrape. See file metrics.yaml in this repo for an example.\n* `--write-interval`: the interval at which collected metrics are converted to\n   JSON and written to disk.\n* `--target`: the name or IP of the switch to collect metrics from.\n\nDISCOv2 requires that an environment variable named `DISCO_COMMUNITY` is set\nand contains the SNMP community sting to use when polling the switch.\n\nUnlike DISCO, in addition to collecting switch metrics every 10s and writing\nout data files, DISCOv2 includes a Prometheus exporter which will expose the\nmetrics it has collected. This makes DISCOv2 something like the\n[snmp_exporter](https://github.com/prometheus/snmp_exporter), but far less\ngeneral purpose.\n\n# Configuration\n\nThe file metrics.yaml.sample is, as the name implies, nothing more than a sample\nof how the configuration file should be formatted. The [actual configuration\nfile for\nDISCOv2](https://github.com/m-lab/k8s-support/blob/master/config/disco/metrics.yaml)\n(as it runs in the M-Lab kubernetes platform cluster) can be found in the\nk8s-support repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lab%2Fdisco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-lab%2Fdisco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lab%2Fdisco/lists"}