Gaurav, I haven't used it for a couple of years, so I don't know if it still works, but https://github.com/jgrier/flink-stuff/tree/master/flink-influx-reporter is an influxdb reporter (wrapped around https://github.com/davidB/metrics-influxdb/tree/master/src/main/java/metrics_influxdb) that uses scope formats.
Best, David On Mon, Jan 20, 2020 at 6:04 AM Gaurav Singhania <gaura...@gojek.com> wrote: > Hi, > We are using influxdb reporter for flink 1.9 to capture our metrics. We > want to override the scope of task metrics, however even after providing > the config in yaml file the metrics continues to have the tags we don't > want. > > The metric scope we want to change is : > *metrics.scope.task *with a default configuration of " > <host>.taskmanager.<tm_id>.<job_name>.<task_name>.<subtask_index>" > We tried following configuration and none of them worked > "<host>.taskmanager.<tm_id>.<job_name>.<subtask_index>" > "<host>.taskmanager.<tm_id>.<job_name>.constant_value.<subtask_index>" > > None of them worked and task_name continues to be part of the tags of the > measurement sent by influxdb reporter. > > Thanks, > Gaurav Singhania >