Skip to content

declarative config: support for jmx metrics #14916

@SylvainJuge

Description

@SylvainJuge

The JMX metrics are captured with the JMX Insights component in instrumentation,
the metrics are defined in a YAML format.

Users can extend the provided metrics definitions by providing their own YAML files through the otel.jmx.config configuration option.

Those extra YAML configuration files are provided and managed by the end-user.

With the declarative configuration, we can configure the path to this custom metrics definitions.

However, it could also be interesting to nest the metrics definitions directly into the declarative configuration, hence allowing to configure everything with a single (but large) YAML file.

Doing so could help with the following use-cases:

  • configure everything with a single file
  • alternative to fetch the metrics definitions from a central remote location (config would be "pushed" instead of "pulled"), see #12775

There are however a few technical challenges:

  • the current implementation relies on parsing directly the yaml file (but with the same parser library).
  • we need to have an API/SPI that allows to delegate the parsing of declarative config to the JMX Insights component

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions