You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-14 01:02:26 +03:00
Improve support code quality.
This commit is contained in:
@@ -7,10 +7,9 @@
|
||||
|
||||
for raw_prom in $(echo .*.prom) ; do
|
||||
# Strip, sort and deduplicate the label names
|
||||
cat $raw_prom | grep -v '#' | \
|
||||
grep -v '#' "$raw_prom" | \
|
||||
rev | cut -d' ' -f2- | \
|
||||
rev | cut -d'{' -f1 | \
|
||||
sort | \
|
||||
uniq > ${raw_prom}.unique
|
||||
|
||||
uniq > "${raw_prom}.unique"
|
||||
done
|
||||
|
Reference in New Issue
Block a user