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

Promethius config #620

Closed
SimonMcN opened this issue Nov 3, 2022 · 1 comment · Fixed by #622
Closed

Promethius config #620

SimonMcN opened this issue Nov 3, 2022 · 1 comment · Fixed by #622

Comments

@SimonMcN
Copy link

SimonMcN commented Nov 3, 2022

I think that the file ./volumes/prometheus/data/config/config.yml may be incorrect but I leave it to your judgement.

I think that cadvisor needs to be the name of the container, in this case prometheus-cadvisor. I have made the changes below and they all now show as UP in my local instance @ http://iotstack:9090/targets

scrape_configs:

  • job_name: "iotstack"
    static_configs:
    • targets:
      • localhost:9090
      • cadvisor:8080
      • nodeexporter:9100
      • prometheus-cadvisor:8080
      • prometheus-nodeexporter:9100
@Paraphraser
Copy link

I believe you are correct. I am going to submit some pull requests to deal with this. Thanks for reporting it.

Paraphraser added a commit to Paraphraser/IOTstack that referenced this issue Nov 8, 2022
Per issue SensorsIot#620, the default `config.yml` should reference:

	- `prometheus-cadvisor:8080` not `cadvisor:8080`
	- `prometheus-nodeexporter:9100` not `nodeexporter:9100`

Master branch doco updated to add migration tips.

Fixes SensorsIot#620

Signed-off-by: Phill Kelley <[email protected]>
Paraphraser added a commit to Paraphraser/IOTstack that referenced this issue Nov 8, 2022
Per issue SensorsIot#620, the default `config.yml` should reference:

	- `prometheus-cadvisor:8080` not `cadvisor:8080`
	- `prometheus-nodeexporter:9100` not `nodeexporter:9100`

Signed-off-by: Phill Kelley <[email protected]>
Paraphraser added a commit to Paraphraser/IOTstack that referenced this issue Nov 8, 2022
Per issue SensorsIot#620, the default `config.yml` should reference:

	- `prometheus-cadvisor:8080` not `cadvisor:8080`
	- `prometheus-nodeexporter:9100` not `nodeexporter:9100`

Signed-off-by: Phill Kelley <[email protected]>
@Slyke Slyke closed this as completed in #622 Dec 2, 2022
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

Successfully merging a pull request may close this issue.

1 participant