我正在尝试使用使用 tcp_connect 模块的黑盒导出器来探测我的 LDAP 服务器。来源是我的k8s集群。在我的集群中,我绝对可以访问 ldap 服务器
debug@debug:~$ telnet global.ldap 636
Trying 10.27.20.7...
Connected to global.ldap.
Escape character is '^]'.
^]
我的普罗米修斯配置看起来像
- job_name: 'ldap_check'
scrape_interval: 5m
metrics_path: /probe
params:
module: [tcp_connect]
static_configs:
- targets:
- 'ldaps://global.ldap:636' # Also tried 'global.ldap:636' without the 'ldaps://'
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: monitoring-prometheus-blackbox-exporter:9115
但我的 Prometheus/targets
页面显示“服务器返回 HTTP 状态 400 错误请求”我错过了什么吗?