This repository contains the prometheus-ovn-exporter snap package of the OVN Exporter for Prometheus.
sudo snap install prometheus-ovn-exporter
The snap requires privileged access to a number of system resources including the PID and unix sockets for the various OVN & OpenVSwitch processes which cannot be granted auto-connection access.
The following commands are required to connect access to these various interfaces:
snap connect prometheus-ovn-exporter:kernel-module-observe
snap connect prometheus-ovn-exporter:log-observe
snap connect prometheus-ovn-exporter:netlink-audit
snap connect prometheus-ovn-exporter:network-observe
snap connect prometheus-ovn-exporter:openvswitch
snap connect prometheus-ovn-exporter:run-openvswitch
snap connect prometheus-ovn-exporter:run-ovn
snap connect prometheus-ovn-exporter:system-observe
The upstream OVN Exporter currently assumes openvswitch (including ovs-vswitchd and ovsdb-server) will always be present on OVN nodes, however this is not true on the ovn-central units as part of a charmed deployment of OVN or OpenStack.
As a result, in such environments you will get errors about opening the openvswitch PID and database sockets. These can be ignored.
The ovn_up metric will also always report 0 (Down) because these are not running.
Upstream Bug: greenpau/ovn_exporter#9
The prometheus-ovn-exporter snap provides the following configuration variables that
can be set via the snap set command:
- web.listenaddress - the IP:port to listen on, defaults to
:9476
The ovn-central charm v22.09+ will automatically install and configure this snap.
v22.03 users can manually install it and configure the prometheus static-targets configuration option.
This project is licensed under the terms of the Apache License 2.0. See the LICENSE file for details.