Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Prometheus config edit #120

Closed
paulwakeford opened this issue Sep 4, 2023 · 0 comments
Closed

Issue with Prometheus config edit #120

paulwakeford opened this issue Sep 4, 2023 · 0 comments

Comments

@paulwakeford
Copy link

Hi,

After following the instructions at https://sdr-enthusiasts.gitbook.io/ads-b/useful-extras/alternative-graphing-with-prometheus-grafana in section Deploying, my Prometheus container was starting then immediately stopping citing an error in the config file. The 'docker exec -it' command listed produces a prometheus.yml file that ends like this:

scrape_configs:

The job name is added as a label job=<job_name> to any timeseries scraped from this config.

  • job_name: "prometheus"

    metrics_path defaults to '/metrics'

    scheme defaults to 'http'.

    static_configs:

    • targets: ["localhost:9090"]
  • job_name: 'ultrafeeder'
    static_configs:

  • targets: ['ultrafeeder:9273']

I don't know if it's the spacing or the quote marks (and now I have it working I don't want to break it again just to check ;) ) but when I changed it to match the existing format like this:

scrape_configs:

The job name is added as a label job=<job_name> to any timeseries scraped from this config.

  • job_name: "prometheus"

    metrics_path defaults to '/metrics'

    scheme defaults to 'http'.

    static_configs:

    • targets: ["localhost:9090"]
  • job_name: "ultrafeeder"
    static_configs:

    • targets: ["ultrafeeder:9273"]

.. it worked.

@kx1t kx1t closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants