elastic / elastic/apm-agent-java

Add a "enable_metrics" or "include_metrics" option

Open
#3,234 2 comments 0 reactions 0 assignees View on GitHub
agent-java community enhancement
Dominant language
Java
Stars
594
Forks
338
Avg merge
1d 13h
Merged PRs (30d)
25

Description

## Is your feature request related to a problem?
Currently, I'm able to define which metrics are disabled, but on the contrary, I can't define which metrics are enabled/included. So with a library like micrometers, lots of metrics are by default included, that is too much.

## Describe the solution you'd like
I would like a new option that allows to define which metrics are enabled/disabled. It could be called "enable_metrics" or "include_metrics", and it would be complementary with "disable_metrics". First "enable_metrics" define a first list of collected metrics, then "disable_metrics" remove some metrics from this list.

## Describe alternatives you've considered
I don't see an alternative

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.