add labels and conntrack stats to prometheus output
This commit is contained in:
1 parent
5c5a309934
commit
7082eeeda7
2 files changed
+76
-29
No files matched your search
@@ -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}"
|
||||
|
||||
Reference in new issue
Block a user