добавить хост в prometheus

Fox

Участник
Добрый день! Решил поиграться с prometheus и поставил его на тестовую VM SLES. Никак не могу понять как туда добавлять хосты / сервисы которые надо мониторить. Полез за мануалом и попробовал добавить хост как написано в руководстве, прометей перестал запускаться. Ошибка такая:
░░ The job identifier is 4422.
Feb 15 11:12:22 prometheus prometheus[22659]: level=error ts=2022-02-15T08:12:22.448Z caller=main.go:355 msg="Error loading config (--config.file=/etc/prometheus/prometheus.yml)" err="parsing YAML file /etc/prometheus/prometheus.yml: yaml: line 25: did not find expected key"
Feb 15 11:12:22 prometheus systemd[1]: prometheus.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit prometheus.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 2.
Feb 15 11:12:22 prometheus systemd[1]: prometheus.service: Failed with result 'exit-code'.
Подскажите кто чем может:unsure:
 
Назад
Верх Низ