add labels and conntrack stats to prometheus output

This commit is contained in:
ac107458 committed 2023-11-15 17:40:58 +01:00
1 parent 5c5a309934
commit 7082eeeda7
2 files changed
+76 -29

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ fi
targetname="/var/lib/prometheus/node-exporter/capport-${instance}.prom"
tmpname="${targetname}.$$"
if ./stats.sh "${ifname}" > "${tmpname}"; then
if ./stats.sh --instance "${instance}" --interface "${ifname}" > "${tmpname}"; then
mv "${tmpname}" "${targetname}"
else
rm "${tmpname}"