1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-21 21:30:11 +00:00

Correct typos (#89)

Corrected prometheus.xml to prometheus.yml, corrected dump978 port from
9274 to 9273
This commit is contained in:
Fred Clausen 2024-05-17 14:37:47 -06:00 committed by GitHub
commit 006599817b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -175,7 +175,7 @@ docker stop prometheus
docker compose up -d 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 ```yaml
- job_name: "ultrafeeder" - 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: 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 ```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 stop prometheus
docker compose up -d 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 ```yaml
- job_name: "dump978" - job_name: "dump978"
static_configs: 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.) (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.)