Skip to content

Commit

Permalink
Exempt udp_queues from prom "best practices" scolding.
Browse files Browse the repository at this point in the history
We want to maintain the names as the kernel has them.

Signed-off-by: Chris Cleeland <[email protected]>
  • Loading branch information
cleeland committed Jan 6, 2025
1 parent 146d5e8 commit e7b372f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkmetrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ ( -z "$1" ) || ( -z "$2" ) ]]; then
fi

# Ignore known issues in auto-generated and network specific collectors.
lint=$($1 check metrics < "$2" 2>&1 | grep -v -E "^node_(entropy|memory|netstat|wifi_station)_")
lint=$($1 check metrics < "$2" 2>&1 | grep -v -E "^node_(entropy|memory|netstat|wifi_station|udp_queues)_")

if [[ -n $lint ]]; then
echo -e "Some Prometheus metrics do not follow best practices:\n"
Expand Down

0 comments on commit e7b372f

Please sign in to comment.