Installing a Grafana Dashboard for Nexus
Overview
This installation process is for creating and installing a Nexus dashboard within Grafana for monitoring purposes.
Prerequisites
-
Set Up Nexus Repository Manager Monitoring
-
Ensure Nexus Repository Manager is configured to expose metrics for Prometheus.
-
Edit the
nexus.properties
file, typically located in theetc/
directory within your Nexus installation:sudo nano ./apps/nexus/nexus-data/etc/nexus.properties
Add the following property to enable Prometheus metrics:
nexus.prometheus.enabled=true
-
Restart Nexus for the changes to take effect:
docker compose down && docker compose up -d
-
-
Set Up Prometheus
-
Add Nexus as a target in the Prometheus configuration (
prometheus.yml
) by specifying its host and port:scrape_configs:
- job_name: "nexus"
static_configs:
- targets: ["<nexus_host>:<nexus_port>"]Replace
<nexus_host>
with your Nexus server's hostname or IP address and<nexus_port>
with the port where Nexus is running (default is 8081). -
Start or restart Prometheus to begin collecting Nexus metrics.
-