How do I disable http_in_count for a path?

14 views
Skip to first unread message

Marton Szucs

unread,
Jul 24, 2021, 3:00:15 PM7/24/21
to inspectIT
I am getting thousands of individual metrics for `http_in_count` because our API is using the path as an argument.

Can I disable the path using regex? Or just disable all http_in_count entries.

It looks like this.
```
http_in_count{environment="production",http_method="DELETE",http_path="/foo.bar/arg1,...}
http_in_count{environment="production",http_method="DELETE",http_path="/foo.bar/arg2,...}
http_in_count{environment="production",http_method="DELETE",http_path="/foo.bar/arg3,...}
... thousands of lines!
http_in_count{environment="production",http_method="DELETE",http_path="/foo.bar/argN,...}
```

I am using the prometheus exporter
jmx_prometheus_javaagent 0.14.0

// Márton

Márton Szűcs

unread,
Aug 2, 2021, 7:10:48 AM8/2/21
to inspectIT
Edit. I wrote the wrong version number for the agent.

I am getting thousands of individual metrics for `http_in_count` because our API is using the path as an argument.

Can I disable the path using regex?
Can I disable all `http_*_count` entries?

It looks like this.
```
http_in_count{environment="production",http_method="DELETE",http_path="/foo.bar/arg1,...}
http_in_count{environment="production",http_method="DELETE",http_path="/foo.bar/arg2,...}
http_in_count{environment="production",http_method="DELETE",http_path="/foo.bar/arg3,...}
... thousands of lines
http_in_count{environment="production",http_method="DELETE",http_path="/foo.bar/argN,...}
```

I am using the prometheus exporter
jmx_prometheus_javaagent 1.11.1


Reply all
Reply to author
Forward
0 new messages