{"id":37871041,"url":"https://github.com/cloudwatt/tungsten-prometheus-exporter","last_synced_at":"2026-01-16T16:40:56.292Z","repository":{"id":62585520,"uuid":"182244194","full_name":"cloudwatt/tungsten-prometheus-exporter","owner":"cloudwatt","description":"Prometheus exporter for Opencontrail/TungstenFabric","archived":false,"fork":false,"pushed_at":"2019-08-01T07:35:36.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-04T17:34:49.363Z","etag":null,"topics":["contrail","opencontrail","prometheus","sdn","tungstenfabric"],"latest_commit_sha":null,"homepage":"","language":"Python","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/cloudwatt.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}},"created_at":"2019-04-19T10:00:06.000Z","updated_at":"2020-01-14T12:53:45.000Z","dependencies_parsed_at":"2022-11-03T22:07:33.563Z","dependency_job_id":null,"html_url":"https://github.com/cloudwatt/tungsten-prometheus-exporter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cloudwatt/tungsten-prometheus-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwatt%2Ftungsten-prometheus-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwatt%2Ftungsten-prometheus-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwatt%2Ftungsten-prometheus-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwatt%2Ftungsten-prometheus-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudwatt","download_url":"https://codeload.github.com/cloudwatt/tungsten-prometheus-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwatt%2Ftungsten-prometheus-exporter/sbom","scorecard":{"id":293359,"data":{"date":"2025-08-11","repo":{"name":"github.com/cloudwatt/tungsten-prometheus-exporter","commit":"590d0f5b83bd554423a1c41489bc638e1bbe5c56"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating registry.access.redhat.com/ubi7/python-36 to registry.access.redhat.com/ubi7/python-36@sha256:e7658aeaaf6c5897b602ad5a69f8c48761b494d47f27a2251036f363c4a0450f","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T18:52:42.295Z","repository_id":62585520,"created_at":"2025-08-17T18:52:42.295Z","updated_at":"2025-08-17T18:52:42.295Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["contrail","opencontrail","prometheus","sdn","tungstenfabric"],"created_at":"2026-01-16T16:40:56.197Z","updated_at":"2026-01-16T16:40:56.269Z","avatar_url":"https://github.com/cloudwatt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"tungsten-prometheus-exporter\n============================\n\nA simple prometheus exporter for OpenContrail/TungstenFabric.\n\nUsage\n-----\n\n```bash\n$ tungsten-prometheus-exporter --config /path/to/config.yml\nor\n$ TUNGSTEN_PROMETHEUS_EXPORTER=/path/to/config.yml tungsten-prometheus-exporter\n```\n\nMetrics are available on port `8080` by default.\n\nAuthentication\n--------------\n\nIf authentication is enabled on the analytics API you need to provide Openstack credentials.\n\nBy default no authentication is made. Use the `--os-auth-type` to choose the\ndesired authentication plugin (`v2password`, `v3password`).\n\nDepending on the selected auth plugin multiple options needs to be set on the\ncommand line or exported in environment variables (use `--help` to see them\nall). For example to use `v2password`:\n\n```bash\n$ tungsten-prometheus-exporter --config config.yaml --os-auth-type v2password --os-username admin --os-password development --os-auth-url http://localhost:35357/v2.0/ --os-tenant-name openstack\n```\n\nConfiguration\n-------------\n\nConfiguration is provided as a yaml file.\n\nYou should at least configure `analytics.host` and `metrics`.\n\nAnalytics host can be configured with the `--host` option or\n`TUNGSTEN_PROMETHEUS_EXPORTER_ANALYTICS_HOST` env variable.\n\nConfiguration file location can be configured with the `--config` option or\n`TUNGSTEN_PROMETHEUS_EXPORTER_CONFIG` env variable.\n\nOther configuration options are described below with default values for\nreference.\n\n\n### Section `analytics`\n\n```yaml\nanalytics:\n  host: http://ANALYTICS_API:8081\n  base_url: /analytics/uves\n```\n\n### Section `prometheus`\n\nDefine port of metrics endpoint and prefix for all metric names.\n\nDefault settings:\n\n```yaml\nprometheus:\n  port: 8080\n  metric_name_prefix: \"tungsten\"\n```\n\n### Section `logging`\n\nDefines the pyhon logging level of `tungsten-prometheus-exporter`.\n\nDefault settings:\n\n```yaml\nlogging:\n  level: INFO\n```\n\n### Section `scraper`\n\nSettings for scraper workers that will fetch data from analytics API.\n\nDefault settings:\n\n```yaml\nscraper:\n  max_retry: 3      # number of retries when an http call fails\n  timeout: 1        # http timeout in seconds\n  pool_size: 10     # maximum number of concurrent http calls\n  interval: 60      # wait time in seconds between scrapes\n```\n\n### Section `metrics`\n\nDescribes the list of metrics to export.\n\nA metric is described with the following attributes:\n\n * name: base name of the metric\n * type: prometheus metric type (eg: Gauge, Enum)\n * uve_type: uve type to fetch (eg: vrouter, bgp-peer...)\n * uve_module: uve module data to fetch (eg: NodeStatus...)\n * uve_instances: list of instances (default: `*`)\n * json_path: a JSON path expression to target the metric in the json\n * labels_from_path: add metric labels based on the attribute path\n * append_field_name: append the target attribute to the metric name (default: `true`)\n\nLook at `./examples` directory for metrics examples.\n\n#### Vrouters drop stats example\n\n```yaml\nmetrics:\n  - name: vrouter_drop_stats\n    type: Gauge\n    uve_type: vrouter\n    uve_module: VrouterStatsAgent\n    json_path: drop_stats.*\n```\n\nThis will scrape the url `http://ANALYTICS_IP:8081/analytics/uves/vrouter/*?flat\u0026cfilt=VrouterStatsAgent`.\n\nThe returned json will contain:\n\n```json\n{\n  \"VrouterStatsAgent\": {\n    \"drop_stats\": {\n      \"ds_rewrite_fail\": 0,\n      \"ds_mcast_df_bit\": 0,\n      \"ds_flow_no_memory\": 0,\n      \"ds_push\": 0,\n      ...\n    }\n  }\n}\n```\n\nBecause of `json_path` for every attribute in the `drop_stats` object a\nprometheus gauge will be created:\n\n  * vrouter_drop_stats_ds_rewrite_fail\n  * vrouter_drop_stats_ds_mcast_df_bit\n  * ...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwatt%2Ftungsten-prometheus-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudwatt%2Ftungsten-prometheus-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwatt%2Ftungsten-prometheus-exporter/lists"}