I used a `CustomReporter` that implements the `Abs...
# troubleshooting
t
I used a
CustomReporter
that implements the
AbstractReporter
that was working with the older versions of flink, i.e.,
1.15.3
On upgrading to the latest stable flink version
1.17.1
my metrics seem to be missing from my dashboard owing to this FLINK-24235 ticket. Are there any tips of reusing the same or examples of creating custom reporters as well?
Copy code
2023-10-10 19:45:38,907 WARN  org.apache.flink.runtime.metrics.ReporterSetup               [] - The reporter factory (com.abc.monitor.ReporterFactory) could not be found for reporter custom. Available factories: [org.apache.flink.metrics.datadog.DatadogHttpReporterFactory, org.apache.flink.metrics.slf4j.Slf4jReporterFactory, org.apache.flink.metrics.graphite.GraphiteReporterFactory, org.apache.flink.metrics.prometheus.PrometheusPushGatewayReporterFactory, org.apache.flink.metrics.statsd.StatsDReporterFactory, org.apache.flink.metrics.prometheus.PrometheusReporterFactory, org.apache.flink.metrics.jmx.JMXReporterFactory, org.apache.flink.metrics.influxdb.InfluxdbReporterFactory].
m
Have you taken a look at some of these
MetricReporterFactory
implementations that exist in Flink itself, like the one for Datadog, Graphite, Prometheus? I would expect that these should be sufficient inspiration to refactor your implementation to one that implements a
MetricReporterFactory
?