9.2. Mise en place d'un serveur grafana
Grafana génère des graphiques accessibles depuis un navigateur. Le site grafana-server est un serveur dorsal pour le tableau de bord Grafana. Il écoute, par défaut, toutes les interfaces et fournit des services web accessibles via le navigateur web. Le plugin grafana-pcp interagit avec le protocole pmproxy dans le backend.
Cette procédure décrit comment configurer un site grafana-server.
Conditions préalables
- PCP est configuré. Pour plus d'informations, voir Configuration de PCP avec pcp-zeroconf.
Procédure
Install the following packages:
dnf install grafana grafana-pcp
# dnf install grafana grafana-pcpCopy to Clipboard Copied! Toggle word wrap Toggle overflow Redémarrez et activez le service suivant :
systemctl restart grafana-server systemctl enable grafana-server
# systemctl restart grafana-server # systemctl enable grafana-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow Ouvrez le pare-feu du serveur pour le trafic réseau vers le service Grafana.
firewall-cmd --permanent --add-service=grafana firewall-cmd --reload
# firewall-cmd --permanent --add-service=grafana success # firewall-cmd --reload successCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification steps
S'assurer que le site
grafana-serverest à l'écoute et répond aux demandes :ss -ntlp | grep 3000
# ss -ntlp | grep 3000 LISTEN 0 128 *:3000 *:* users:(("grafana-server",pid=19522,fd=7))Copy to Clipboard Copied! Toggle word wrap Toggle overflow Assurez-vous que le plugin
grafana-pcpest installé :grafana-cli plugins ls | grep performancecopilot-pcp-app
# grafana-cli plugins ls | grep performancecopilot-pcp-app performancecopilot-pcp-app @ 3.1.0Copy to Clipboard Copied! Toggle word wrap Toggle overflow