1
0
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:
Will Rouesnel
2018-11-11 15:07:07 +11:00
parent 456ac72430
commit 43072ddaa7
5 changed files with 29 additions and 147 deletions

View File

@@ -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