DNS-SD to get JSON input


(Archimedes Trajano) #1

In Prometheus there’s a way of doing something like

  - job_name: "cadvisor"
    dns_sd_configs:
      - names:
          - "tasks.cadvisor"
        type: "A"
        port: 8080

  - job_name: "node-exporter"
    dns_sd_configs:
      - names:
          - "tasks.node-exporter"
        type: "A"
        port: 9100

Which allows me to connect to a service that is registered via DNS. Specifically I want to use it so it can pull data from node-exporter because the current HTTP inputs plugin will choose one at round robin between the nodes rather getting for each node.


(Jan Doberstein) #2

you need to write your own input plugin - I do not know any plugin that can do this.


(system) closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.