
This patch introduces the following changes. 1. Collectd exec plugins have been created to capture OVN DB tables rows count numbers from the controller host. 2. A Grafana panel has been created for OVN DB Tables Rows Count metrics. Change-Id: I274cc71d87ef79aefd381e690a13de6cb2c9b45e
9 lines
294 B
Bash
Executable File
9 lines
294 B
Bash
Executable File
#!/bin/sh
|
|
HOSTNAME="${COLLECTD_HOSTNAME:-`hostname -f`}"
|
|
INTERVAL="${COLLECTD_INTERVAL:-15}"
|
|
|
|
while sleep "$INTERVAL"; do
|
|
VALUE=$(sudo ovsdb-client dump unix:/var/lib/openvswitch/ovn/ovn$1_db.sock $2 | wc -l)
|
|
echo "PUTVAL \"$HOSTNAME/ovn-$2/gauge-ovn_$2\" interval=$INTERVAL N:$VALUE"
|
|
done
|