{"id":28578301,"url":"https://github.com/digitalocean/openvswitch_exporter","last_synced_at":"2025-06-11T01:09:31.284Z","repository":{"id":49019498,"uuid":"132508515","full_name":"digitalocean/openvswitch_exporter","owner":"digitalocean","description":"Command openvswitch_exporter implements a Prometheus exporter for Open vSwitch.","archived":false,"fork":false,"pushed_at":"2023-10-11T21:09:28.000Z","size":2222,"stargazers_count":33,"open_issues_count":5,"forks_count":9,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-01-15T00:19:53.858Z","etag":null,"topics":["golang","linux","openvswitch","prometheus","prometheus-exporter"],"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/digitalocean.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS"}},"created_at":"2018-05-07T19:42:35.000Z","updated_at":"2024-10-27T08:15:16.000Z","dependencies_parsed_at":"2024-01-14T01:16:57.179Z","dependency_job_id":null,"html_url":"https://github.com/digitalocean/openvswitch_exporter","commit_stats":{"total_commits":16,"total_committers":4,"mean_commits":4.0,"dds":0.4375,"last_synced_commit":"3dddb681a8c0026c909227a485ca939cd2c0effe"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fopenvswitch_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fopenvswitch_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fopenvswitch_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fopenvswitch_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalocean","download_url":"https://codeload.github.com/digitalocean/openvswitch_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalocean%2Fopenvswitch_exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259178542,"owners_count":22817388,"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":["golang","linux","openvswitch","prometheus","prometheus-exporter"],"created_at":"2025-06-11T01:09:30.360Z","updated_at":"2025-06-11T01:09:31.235Z","avatar_url":"https://github.com/digitalocean.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"openvswitch_exporter [![Build Status](https://travis-ci.org/digitalocean/openvswitch_exporter.svg?branch=master)](https://travis-ci.org/digitalocean/openvswitch_exporter) [![Go Report Card](https://goreportcard.com/badge/github.com/digitalocean/openvswitch_exporter)](https://goreportcard.com/report/github.com/digitalocean/openvswitch_exporter)\n====================\n\nCommand `openvswitch_exporter` implements a Prometheus exporter for Open\nvSwitch. Apache 2.0 licensed.\n\nUsage\n-----\n\nAvailable flags for `openvswitch_exporter` include:\n\n```none\n$ ./openvswitch_exporter -h\nUsage of ./openvswitch_exporter:\n  -metrics.addr string\n        address for Open vSwitch exporter (default \":9310\")\n  -metrics.path string\n        URL path for surfacing collected metrics (default \"/metrics\")\n```\n\nOverview\n--------\n\n`openvswitch_exporter` currently exposes a variety of metrics related to the\nLinux kernel Open vSwitch datapath, using the generic netlink `ovs_datapath`\nfamily.\n\nThe exported metrics are similar to those found in `ovs-dpctl show`:\n\n```none\nhypervisor $ ovs-dpctl show | head -n 4\nsystem@ovs-system:\n        lookups: hit:111615762 missed:1312004 lost:0\n        flows: 12\n        masks: hit:151608278 total:8 hit/pkt:1.34\n```\n\nTo see the metrics that are currently available, use `curl`:\n\n```none\nhypervisor $ curl -s http://localhost:9310/metrics | grep openvswitch\n# HELP openvswitch_datapath_megaflow_stats_mask_hits_total Number of megaflow masks used for flow lookups.\n# TYPE openvswitch_datapath_megaflow_stats_mask_hits_total counter\nopenvswitch_datapath_megaflow_stats_mask_hits_total{datapath=\"ovs-system\"} 1.51606216e+08\n# HELP openvswitch_datapath_megaflow_stats_masks Number of megaflow masks present.\n# TYPE openvswitch_datapath_megaflow_stats_masks counter\nopenvswitch_datapath_megaflow_stats_masks{datapath=\"ovs-system\"} 9\n# HELP openvswitch_datapath_stats_flows Number of flows present.\n# TYPE openvswitch_datapath_stats_flows gauge\nopenvswitch_datapath_stats_flows{datapath=\"ovs-system\"} 21\n# HELP openvswitch_datapath_stats_hits_total Number of flow table matches.\n# TYPE openvswitch_datapath_stats_hits_total counter\nopenvswitch_datapath_stats_hits_total{datapath=\"ovs-system\"} 1.11614549e+08\n# HELP openvswitch_datapath_stats_lost_total Number of flow table misses not sent to userspace.\n# TYPE openvswitch_datapath_stats_lost_total counter\nopenvswitch_datapath_stats_lost_total{datapath=\"ovs-system\"} 0\n# HELP openvswitch_datapath_stats_misses_total Number of flow table misses.\n# TYPE openvswitch_datapath_stats_misses_total counter\nopenvswitch_datapath_stats_misses_total{datapath=\"ovs-system\"} 1.311983e+06\n```\n\nTo calculate the \"hit/pkt\" metric from `ovs-dpctl show` (average number of masks\nvisited per packet), you can use the following PromQL query:\n\n```none\nopenvswitch_datapath_megaflow_stats_mask_hits_total / (openvswitch_datapath_stats_hits_total + openvswitch_datapath_stats_misses_total)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalocean%2Fopenvswitch_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalocean%2Fopenvswitch_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalocean%2Fopenvswitch_exporter/lists"}