A word from our sponsors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sw:grafana:intro [2020/05/10 14:50] Frank Fegertsw:grafana:intro [2023/01/06 08:25] (current) Frank Fegert
Line 18: Line 18:
 [[https://grafana.com/]]\\ [[https://grafana.com/]]\\
 [[https://github.com/grafana/grafana|Grafana GiHub repository]]\\ [[https://github.com/grafana/grafana|Grafana GiHub repository]]\\
 +
 +===== Dashboards =====
 +
 +[[https://grafana.com/grafana/dashboards/17781-loki-metrics-dashboard/|A Grafana metrics dashboard for the metrics provided by Grafana Loki.]] See also [[https://github.com/frank-fegert/grafana-dashboards/blob/main/Loki_Metrics_Dashboard.json|This Grafana dashboard in the Github Repository.]]\\
  
 ====== Docs ====== ====== Docs ======
Line 91: Line 95:
   - You will be prompted to change the password for the ''admin'' user. Choose a reasonable strong password. <   - You will be prompted to change the password for the ''admin'' user. Choose a reasonable strong password. <
  
-FIXME+===== Adding Prometheus to Grafana ===== 
 + 
 +  - Navigate to [[http://your-grafana-host:3000/]] in a Web browser. < 
 +  - Log into //Grafana// with the default credentials. User ''admin'' and password ''admin''. < 
 +  - Click on the "cogwheel" icon in the sidebar to open the Configuration menu. < 
 +  - Click on "Data Sources". < 
 +  - Click on "Add data source". < 
 +  - Select "Prometheus" as the type. < 
 +  - Set the appropriate Prometheus server URL (for example, ''http://localhost:9090/'') < 
 +  - Adjust other data source settings as desired (for example, choosing the right Access method). < 
 +  - Click "Save & Test" to save the new data source. <
  
 ====== Usage ====== ====== Usage ======
Line 102: Line 116:
  
 <cli> <cli>
-root@host:~$ systemctl enable grafana-server +root@host:~$ systemctl enable grafana-server.service 
-root@host:~$ systemctl start grafana-server+root@host:~$ systemctl start grafana-server.service
 </cli> </cli>
  
Line 111: Line 125:
  
 <cli> <cli>
-root@host:~$ systemctl stop grafana-server+root@host:~$ systemctl stop grafana-server.service
 </cli> </cli>
  
Line 119: Line 133:
  
 <cli> <cli>
-root@host:~$ systemctl status grafana-server+root@host:~$ systemctl status grafana-server.service
 </cli> </cli>