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

Prometheus native DNS SRV approach not supported #126

Open
laurivosandi opened this issue Nov 14, 2021 · 0 comments
Open

Prometheus native DNS SRV approach not supported #126

laurivosandi opened this issue Nov 14, 2021 · 0 comments

Comments

@laurivosandi
Copy link

laurivosandi commented Nov 14, 2021

Prometheus already includes DNS SRV target discovery via config snippet like this:

      - job_name: 'mikrotik-exporter'
        dns_sd_configs:
        - names:
          - '_mikrotik._tcp.example.com'
        relabel_configs:
          - source_labels: [ __address__ ]
            target_label: __param_target
          - source_labels: [ __param_target ]
            target_label: instance
          - target_label: __address__
            replacement: mikrotik-exporter:1234

Authentication can be handled via Prometheus bearer token.

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

1 participant