rmohr / ovirt-prometheus-bridge

oVirt Engine host autodiscovery service for Prometheus targets
GNU General Public License v3.0
5 stars 5 forks source link

Error Installing latest version #7

Open brsockel opened 6 years ago

brsockel commented 6 years ago

Hi,

I am trying to get the bridge to run on a new install of Centos after installing Docker and downloading your image.

When starting i attempt to start the containers, here is what i get

Creating ovirtprometheusbridge_grafana_1 ... error ERROR: for ovirtprometheusbridge_grafana_1 Cannot start service grafana: Cannot link to a non running container: /ovirtprometheusbridge_prometheus_1 AS /ovirtprometheusbridge_grafana_1/prometheus_1

ERROR: for grafana Cannot start service grafana: Cannot link to a non running container: /ovirtprometheusbridge_prometheus_1 AS /ovirtprometheusbridge_grafana_1/prometheus_1 ERROR: Encountered errors while bringing up the project.

Here is the log output

docker-compose logs Attaching to ovirtprometheusbridge_grafana_1, ovirtprometheusbridge_prometheus_1, ovirtprometheusbridge_ovirt-prometheus-bridge_1 prometheus_1 | level=info ts=2018-04-06T22:16:58.575340491Z caller=main.go:220 msg="Starting Prometheus" version="(version=2.2.1, branch=HEAD, revision=bc6058c81272a8d938c05e75607371284236aadc)" prometheus_1 | level=info ts=2018-04-06T22:16:58.575657916Z caller=main.go:221 build_context="(go=go1.10, user=root@149e5b3f0829, date=20180314-14:15:45)" prometheus_1 | level=info ts=2018-04-06T22:16:58.575730997Z caller=main.go:222 host_details="(Linux 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 daf8741ac186 (none))" prometheus_1 | level=info ts=2018-04-06T22:16:58.57579324Z caller=main.go:223 fd_limits="(soft=1048576, hard=1048576)" prometheus_1 | level=info ts=2018-04-06T22:16:58.592532725Z caller=web.go:382 component=web msg="Start listening for connections" address=0.0.0.0:9090 prometheus_1 | level=info ts=2018-04-06T22:16:58.592478135Z caller=main.go:504 msg="Starting TSDB ..." prometheus_1 | level=info ts=2018-04-06T22:16:58.621715307Z caller=main.go:514 msg="TSDB started" prometheus_1 | level=info ts=2018-04-06T22:16:58.621821488Z caller=main.go:588 msg="Loading configuration file" filename=/etc/prometheus/prometheus.yml prometheus_1 | level=info ts=2018-04-06T22:16:58.623795483Z caller=main.go:398 msg="Stopping scrape discovery manager..." prometheus_1 | level=info ts=2018-04-06T22:16:58.623884519Z caller=main.go:411 msg="Stopping notify discovery manager..." prometheus_1 | level=info ts=2018-04-06T22:16:58.62391709Z caller=main.go:432 msg="Stopping scrape manager..." prometheus_1 | level=info ts=2018-04-06T22:16:58.62396112Z caller=main.go:407 msg="Notify discovery manager stopped" ovirt-prometheus-bridge_1 | 2018/04/06 22:13:12 invalid character '<' looking for beginning of value ovirt-prometheus-bridge_1 | 2018/04/06 22:14:17 invalid character '<' looking for beginning of value ovirt-prometheus-bridge_1 | 2018/04/06 22:15:22 invalid character '<' looking for beginning of value ovirt-prometheus-bridge_1 | 2018/04/06 22:16:27 invalid character '<' looking for beginning of value prometheus_1 | level=info ts=2018-04-06T22:16:58.624026177Z caller=main.go:394 msg="Scrape discovery manager stopped" prometheus_1 | level=info ts=2018-04-06T22:16:58.624082433Z caller=main.go:426 msg="Scrape manager stopped" prometheus_1 | level=info ts=2018-04-06T22:16:58.624680596Z caller=manager.go:460 component="rule manager" msg="Stopping rule manager..." prometheus_1 | level=info ts=2018-04-06T22:16:58.624777273Z caller=manager.go:466 component="rule manager" msg="Rule manager stopped" prometheus_1 | level=info ts=2018-04-06T22:16:58.62487103Z caller=notifier.go:512 component=notifier msg="Stopping notification manager..." prometheus_1 | level=info ts=2018-04-06T22:16:58.624950994Z caller=main.go:573 msg="Notifier manager stopped" prometheus_1 | level=error ts=2018-04-06T22:16:58.625215056Z caller=main.go:582 err="Error loading config couldn't load configuration (--config.file=/etc/prometheus/prometheus.yml): parsing YAML file /etc/prometheus/prometheus.yml: unknown fields in scrape_config: target_groups" prometheus_1 | level=info ts=2018-04-06T22:16:58.633496565Z caller=main.go:584 msg="See you next time!"

rmohr commented 6 years ago

loading config couldn't load configuration (--config.file=/etc/prometheus/prometheus.yml): parsing YAML file /etc/prometheus/prometheus.yml: unknown fields in scrape_config: target_groups"

I think that target_groups got removed in recent prometheus versions and is now replaced with scrap_configs. So my example config seems to be outdated.