From d95350fb04d465eeb73b997482b667c05b615ed0 Mon Sep 17 00:00:00 2001 From: DogeRam1500 <82404846+DogeRam1500@users.noreply.github.com> Date: Fri, 17 May 2024 16:05:48 -0400 Subject: [PATCH] Correct prometheus.xml to prometheus.yml, correct dump978 port from 9274 to 9273 --- README-grafana.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README-grafana.md b/README-grafana.md index 9a27749..876d109 100644 --- a/README-grafana.md +++ b/README-grafana.md @@ -175,7 +175,7 @@ docker stop prometheus docker compose up -d ``` -This will add the following to the bottom of the `prometheus.xml` file: +This will add the following to the bottom of the `prometheus.yml` file: ```yaml - job_name: "ultrafeeder" @@ -190,17 +190,17 @@ This will add the following to the bottom of the `prometheus.xml` file: If you are using the `docker-dump978` container to receive UAT data (USA only!), you can add a Prometheus scraper for this also needs to be told where to look for the data from the ultrafeeder. We add a target to the prometheus configuration file to do this. Please copy and paste the following. Make sure to replace `ip_xxxxxxx` with the IP address or hostname of the machine where `dump978` is running: ```bash -docker exec -it prometheus sh -c "echo -e \" - job_name: 'dump978'\n static_configs:\n - targets: ['ip_xxxxxxx:9274']\" >> /etc/prometheus/prometheus.yml" +docker exec -it prometheus sh -c "echo -e \" - job_name: 'dump978'\n static_configs:\n - targets: ['ip_xxxxxxx:9273']\" >> /etc/prometheus/prometheus.yml" docker stop prometheus docker compose up -d ``` -This will add the following to the bottom of the `prometheus.xml` file: +This will add the following to the bottom of the `prometheus.yml` file: ```yaml - job_name: "dump978" static_configs: - - targets: ["ip_xxxxxxx:9274"] + - targets: ["ip_xxxxxxx:9273"] ``` (If you screw this up, **do NOT** re-run the command. Instead, try `sudo nano /opt/grafana/prometheus/config/prometheus.yml` and fix it that way.)