ObserveNow
...
Integrations
Infrastructure

Jenkins

Jenkins supports OpenTelemetry and Prometheus metrics plugins that help collect metrics and traces from Jenkins.

Installation

The plugins can be installed via two methods:

  1. Using the "Plugin Manager" (Manage Jenkins > Plugins > Available Plugins )in the Jenkins web UI.
  2. Using the Jenkins CLI

Install both the OpenTelemetry and Prometheus metrics plugins.

Configuration

Once the plugins are installed, they need to be configured to send metrics to OpsVerse's ObserveNow stack. Navigate to Manage Jenkins > System and configure the plugins as following.

OpenTelemetry

For OpenTelemetry, configure the OTLP Endpoint and set the Exporter Timeout (ms) and Metrics Exporter Interval (ms) inside the Advanced tab as below.

text




Document image


Prometheus

The following annotations must be added in the Jenkins deployment file to enable scraping of metrics via Prometheus. For a bitnami helm chart based Jenkins deployment add the following snippet to the values.yaml file of the Jenkins deployment.

YAML


Make sure that the path inside Prometheus system values is set to prometheus(this is the default value for path).

Visualization

Once the required telemetry is enabled, the Jenkins Overview dashboard that is pre-packaged with your ObserveNow stack can be used to visualize incoming traffic.

Jenkins Dashboard