1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/AliyunContainerService-node_exporter

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
checkmetrics.sh 492 Байты
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Matt Layher Отправлено 13.02.2018 20:04 dcb3167
#!/usr/bin/env bash
if [[ ( -z "$1" ) || ( -z "$2" ) ]]; then
echo "usage: ./checkmetrics.sh /usr/bin/promtool e2e-output.txt"
exit 1
fi
# Only check node_exporter's metrics, as the Prometheus Go client currently
# exposes a metric with a unit of microseconds. Once that is fixed, remove
# this filter.
lint=$($1 check metrics < $2 2>&1 | grep "node_")
if [[ ! -z $lint ]]; then
echo -e "Some Prometheus metrics do not follow best practices:\n"
echo "$lint"
exit 1
fi

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/AliyunContainerService-node_exporter.git
git@api.gitlife.ru:oschina-mirror/AliyunContainerService-node_exporter.git
oschina-mirror
AliyunContainerService-node_exporter
AliyunContainerService-node_exporter
master