Hello, I'm trying to connect Prometheus to Flink m...
# troubleshooting
r
Hello, I'm trying to connect Prometheus to Flink metrics endpoint, but Prometheus can`t connect to port, seems like port is not opening:
Copy code
destinations-processor-jobmanager    ClusterIP   10.100.199.42    <none>        6123/TCP,6124/TCP,8788/TCP,9250/TCP   20h
I`m using flink version 1.17 and flink kubernetes operator version 1.5.0. Metrics reporter has enabled and flink kubernetes operator has param metrics.port = 9250
Copy code
metrics.reporter.prom.class: "org.apache.flink.metrics.prometheus.PrometheusReporter"
    metrics.reporter.prom.port: "9250"
    kubernetes.operator.metrics.reporter.prom.factory.class: "org.apache.flink.metrics.prometheus.PrometheusReporterFactory"
    kubernetes.operator.metrics.reporter.prom.port: "9250"
As you can see i`m trying both solutions, connection to service and to kubernetes operator, but no one is working.
Copy code
Get "<http://11.0.31.192:9250/metrics>": dial tcp 11.0.31.192:9250: connect: connection refused
Can you please give a suggestion, what can be wrong?
y
Facing same issue here. Seems like Flink just don't open any port here?
r
adding a reporter factory helped
Copy code
metrics.reporter.prom.factory.class: "org.apache.flink.metrics.prometheus.PrometheusReporterFactory"
✅ 1