If you were using pure prometheus, this would be a simple bit of target 
relabelling:

  - job_name: bbexporter_dns
    static_configs:
      - targets:
        - ...
    metrics_path: /probe
    params:
      module: [dns_tcp]
    relabel_configs:
      - source_labels: [__address__]
        target_label: instance
      - source_labels: [__address__]
        target_label: __param_target
      - target_label: __address__
        replacement: bbexporter.monitoring.svc:9115  # Blackbox exporter

The "instance" label would then distinguish between the different probe 
targets.

However since you're using some third-party operator to write the 
prometheus config, I've no idea what you'd have to do to make it work 
sensibly.  Perhaps start by looking at the prometheus config which the 
operator has generated, then work backwards to see what you need to tweak?  
Otherwise, ask this question on the github repo of 
bitnami/prometheus-operator (since it's not part of prometheus).

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/f5b8d21a-0afb-426a-abb3-4c79b6aadd8cn%40googlegroups.com.

Reply via email to