Maybe someone can sanity check me on this - is blackbox_exporter
the only way to check if a specific local port is listening? I can’t seem to find the metrics I need in node_exporter
- basically I just want to make sure postgres (which runs in a docker container on the host) is running…
I’ve had to run blackbox_exporter
on the host to TCP probe itself on the appropriate port - I’m sure there’s a better way to do this…
metrics_path: /probe
params:
module: [tcp_connect]
static_configs:
- targets:
- '127.0.0.1:5432'
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: [<http://ip.of.my|ip.of.my>.server]:9115```