Influxdb reporter not honouring the metrics scope

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Influxdb reporter not honouring the metrics scope

Gaurav Singhania
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
Reply | Threaded
Open this post in threaded view
|

Re: Influxdb reporter not honouring the metrics scope

Yun Tang
Hi, Gaurav

InfluxDB metrics reporter has a fixed format of reporting metrics which cannot be controlled by the scope.

If you don't want some tags stored, you can try to use `metrics.reporter.<name>.scope.variables.excludes` which introduced in flink-1.10 [1], to exclude specific variables. However, there exists no good solution for Flink-1.9 currently.


Best
Yun Tang

From: Gaurav Singhania <[hidden email]>
Sent: Monday, January 20, 2020 13:04
To: [hidden email] <[hidden email]>
Subject: Influxdb reporter not honouring the metrics scope
 
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
Reply | Threaded
Open this post in threaded view
|

Re: Influxdb reporter not honouring the metrics scope

Chesnay Schepler
The solution for 1.9 and below is to create a customized version of the influx db reporter which excludes certain tags.

On 21/01/2020 19:27, Yun Tang wrote:
Hi, Gaurav

InfluxDB metrics reporter has a fixed format of reporting metrics which cannot be controlled by the scope.

If you don't want some tags stored, you can try to use `metrics.reporter.<name>.scope.variables.excludes` which introduced in flink-1.10 [1], to exclude specific variables. However, there exists no good solution for Flink-1.9 currently.


Best
Yun Tang

From: Gaurav Singhania [hidden email]
Sent: Monday, January 20, 2020 13:04
To: [hidden email] [hidden email]
Subject: Influxdb reporter not honouring the metrics scope
 
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


Reply | Threaded
Open this post in threaded view
|

Re: Influxdb reporter not honouring the metrics scope

Gaurav Singhania
Thanks for the response and the fix. 

On Wed, 22 Jan 2020 at 01:43, Chesnay Schepler <[hidden email]> wrote:
The solution for 1.9 and below is to create a customized version of the influx db reporter which excludes certain tags.

On 21/01/2020 19:27, Yun Tang wrote:
Hi, Gaurav

InfluxDB metrics reporter has a fixed format of reporting metrics which cannot be controlled by the scope.

If you don't want some tags stored, you can try to use `metrics.reporter.<name>.scope.variables.excludes` which introduced in flink-1.10 [1], to exclude specific variables. However, there exists no good solution for Flink-1.9 currently.


Best
Yun Tang

From: Gaurav Singhania [hidden email]
Sent: Monday, January 20, 2020 13:04
To: [hidden email] [hidden email]
Subject: Influxdb reporter not honouring the metrics scope
 
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


Reply | Threaded
Open this post in threaded view
|

Re: Influxdb reporter not honouring the metrics scope

David Anderson-2
In reply to this post by Gaurav Singhania
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 <[hidden email]> 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