Zachary Piazza
04/20/2023, 8:46 PMflinkConfiguration:
collect-sink.batch-size.max: "8388608"
taskmanager.numberOfTaskSlots: "2"
metrics.reporters: prom
metrics.reporter.prom.factory.class: org.apache.flink.metrics.prometheus.PrometheusReporter
metrics.reporter.prom.port: "9999"
Do I need to use the podTemplate attribute of the FlinkDeployment spec to add the additional port mapping?
EDIT I figured it out. The config properties mentioned in the docs were incorrect. And I added an additional container port using the podTemplate param in the spec.Gyula F贸ra
04/21/2023, 5:06 AMZachary Piazza
04/21/2023, 4:08 PMmetrics.reporter.prom.factory.classRICHARD JOY
04/23/2023, 10:17 AMZachary Piazza
04/24/2023, 8:25 PM---
apiVersion: <http://flink.apache.org/v1beta1|flink.apache.org/v1beta1>
kind: FlinkDeployment
metadata:
namespace: cdc
name: cdc
spec:
flinkVersion: v1_17
flinkConfiguration:
metrics.reporter.prom.factory.class: org.apache.flink.metrics.prometheus.PrometheusReporterFactory
metrics.reporter.prom.factory.port: "9249"
metrics.reporters: prom
podTemplate:
spec:
containers:
- name: flink-main-container
ports:
- name: prometheus
containerPort: 9249
...Cheguri Vinay Goud
06/26/2023, 2:45 PMGAURAV MIGLANI
09/07/2023, 9:12 AMkubernetes.operator
on this configs: https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/metric_reporters/#prometheuspushgateway