[
https://issues.apache.org/jira/browse/FLINK-39347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071941#comment-18071941
]
Paras Negi commented on FLINK-39347:
------------------------------------
I was able to reproduce this issue locally. Here's my setup:
Environment:
- *Minikube* (single-node k8s cluster)
- *Flink* {*}apache/flink{*}: latest image with flink-metrics-otel JAR from
source (branch master, version 2.3-SNAPSHOT) - *OTel*
*Collector* (otel/opentelemetry-collector-contrib:latest) with debug exporter
to verify incoming metrics
Steps to reproduce:
1. Deployed OTel collector with OTLP gRPC receiver on port 4317
2. Deployed Flink JobManager + TaskManager with OTel reporter configured
(exporter.endpoint: http://otel-collector:4317, interval: 10s)
3. Verified metrics flow successfully without any filter — collector receives
metrics like flink.jobmanager.taskSlotsTotal, flink.taskmanager.Status.JVM.*,
etc.
4. Added metrics.reporter.otel.filter.includes:
flink.jobmanager.taskSlots.total — metrics drop to zero
> Flink otel reporter doesnt report any metrics
> ---------------------------------------------
>
> Key: FLINK-39347
> URL: https://issues.apache.org/jira/browse/FLINK-39347
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Metrics
> Affects Versions: 2.2.0
> Reporter: Sujit Joshi
> Priority: Major
>
> Hi,
> Im running Flink 2.2.0 in a Docker Compose setup. We'd like to include only
> certain metrics exported to our otel collector. For this we are using
> `metrics.reporter.otel.filter.includes` in our yaml file. But no matter what
> format I use to export, the included metrics are never exported.
> We have tried following formats:
> {code:java}
> metrics.reporter.otel.filter.includes: flink.jobmanager.taskSlots.total {code}
> {code:java}
> metrics.reporter.otel.filter.includes: >
> flink.jobmanager.taskSlots.total {code}
> {code:java}
> metrics.reporter.otel.filter.includes:
> - 'flink.jobmanager.taskSlots.total' {code}
> {code:java}
> metrics.reporter.otel.filter.includes: >
> *.jobmanager.* {code}
>
> After enabling debug mode, I always see this log:
> 2026-03-27T20:25:19.608364491Z 2026-03-27 20:25:19,608 DEBUG
> org.apache.flink.metrics.otel.OpenTelemetryMetricReporter [] - *Exported 0
> metrics using io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter*
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)