jenkinsci / opentelemetry-agent-metrics-plugin

Monitor Jenkins build agents using Opentelemetry Collector and Node exporter
https://plugins.jenkins.io/opentelemetry-agent-metrics/
MIT License
2 stars 0 forks source link

Dependency on OpenTelemetry plugin #7

Open christophe-kamphaus-jemmic opened 1 year ago

christophe-kamphaus-jemmic commented 1 year ago

What feature do you want to see added?

Currently opentelemetry-agent-metrics-plugin has a weak dependence on https://github.com/jenkinsci/opentelemetry-plugin to provide the necessary environment variables for sending metrics to an external Otel collector. These variables are defined by enabling the "Export OpenTelemetry configuration as environment variables" option of the Opentelemetry plugin.

This dependency is weak because it's possible to define these environment variables manually without the opentelemetry-plugin or overwrite the otelConfigTemplate used by opentelemetry-agent-metrics-plugin to specify a different receiver.

This should be documented.

Potential alternatives should also be listed.

If it's absolutely necessary to have OpenTelemetry installed, then it should be added as a dependency in the plugin manifest.

Upstream changes

No response