remove prometheus-legacy format

This commit is contained in:
Stéphane Lesimple
2026-04-08 20:53:19 +02:00
parent b9c203120b
commit 9e617a4363
4 changed files with 4 additions and 23 deletions

View File

@@ -120,7 +120,7 @@ while [ -n "${1:-}" ]; do
opt_no_color=1
shift
case "$1" in
text | short | nrpe | json | json-terse | prometheus | prometheus-legacy)
text | short | nrpe | json | json-terse | prometheus)
opt_batch_format="$1"
shift
;;
@@ -128,7 +128,7 @@ while [ -n "${1:-}" ]; do
'') ;; # allow nothing at all
*)
echo "$0: error: unknown batch format '$1'" >&2
echo "$0: error: --batch expects a format from: text, short, nrpe, json, json-terse, prometheus, prometheus-legacy" >&2
echo "$0: error: --batch expects a format from: text, short, nrpe, json, json-terse, prometheus" >&2
exit 255
;;
esac