Introduction
This tutorial covers How to Install Prometheus and Grafana on SLES 12 on SLES 12. SLES 12 (SUSE Linux Enterprise Server 16) is SUSE’s enterprise-grade Linux distribution. It uses the zypper package manager, AppArmor for mandatory access control, and systemctl for service management.
Step 1 — Install Prometheus
zypper install -y golang-github-prometheus-prometheus
Step 2 — Start Prometheus
systemctl enable --now prometheus
Step 3 — Install Grafana
zypper addrepo -f https://packages.grafana.com/oss/rpm grafana
zypper install -y grafana
Step 4 — Start Grafana
systemctl enable --now grafana-server
AppArmor Considerations
Note: SLES 12 uses AppArmor for mandatory access control. Check AppArmor status with aa-status and enforce profiles with aa-enforce /etc/apparmor.d/<profile>.
Conclusion
You have successfully completed: How to Install Prometheus and Grafana on SLES 12. For more SLES 12 tutorials, see our full SLES 12 series.