nodiesorg / nodies_monitoring

6 stars 3 forks source link

Multiple exporter endpoints does not work #15

Closed nodiesBlade closed 2 years ago

nodiesBlade commented 2 years ago
scrape_configs:
- job_name: node
  scrape_interval: 5s
  static_configs:
  - targets:
    - host1,host2
YuppiePF commented 2 years ago

I am unable to reproduce this issue. Can you post how you are listing the multiple exporter_endpoints in settings.yml?

When I use

  exporter_endpoints:
    cadvisor: ["111.222.333.002:8080", "111.222.333.003:8080"]
    blockchain: ["111.222.333.002:9877", "111.222.333.003:9877"]
    node: ["111.222.333.002:9100", "111.222.333.003:9100"]

I am seeing below in prometheus.yml when running settings.yml from staging branch.

scrape_configs:
- job_name: node
  scrape_interval: 5s
  static_configs:
  - targets:
    - 111.222.333.002:9100
    - 111.222.333.003:9100
- job_name: blockchain
  scrape_interval: 5s
  static_configs:
  - targets:
    - 111.222.333.002:9877
    - 111.222.333.003:9877
- job_name: cadvisor
  scrape_interval: 5s
  static_configs:
  - targets:
    - 111.222.333.002:8080
    - 111.222.333.003:8080
nodiesBlade commented 2 years ago

I didn't supply the exporter endpoints in array format, woops. Thank you!