Update documentation.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mark Nellemann 2023-03-08 10:02:43 +01:00
parent e30d290f07
commit 55e7fe2b90
5 changed files with 48 additions and 9 deletions

View file

@ -40,7 +40,6 @@ systemctl enable grafana-server
systemctl start grafana-server systemctl start grafana-server
``` ```
When logged in to Grafana (port 3000, admin/admin) create a datasource that points to the local InfluxDB. Now import the provided dashboards.
## Download and Install HMCi ## Download and Install HMCi
@ -56,4 +55,10 @@ systemctl daemon-reload
systemctl enable hmci systemctl enable hmci
``` ```
Now modify **/etc/hmci.toml** (edit URL and credentials to your HMCs) and test the setup by running ```/opt/hmci/bin/hmci -d``` in the foreground/terminal and look for any errors. Press CTRL+C to stop and then start as a background service with ```systemctl start hmci```. You can see the log/output by running ```journalctl -f -u hmci```. ## Configure HMCi
Now modify **/etc/hmci.toml** (edit URL and credentials to your HMCs) and test the setup by running ```/opt/hmci/bin/hmci -d``` in the foreground/terminal and look for any errors.
Press CTRL+C to stop and then start as a background service with ```systemctl start hmci```.
You can see the log/output by running ```journalctl -f -u hmci```.

View file

@ -1,5 +1,7 @@
# Grafana Setup # Grafana Setup
When installed Grafana listens on [http://localhost:3000](http://localhost:3000) and you can login as user *admin* with password *admin*. Once logged in you are asked to change the default password.
## Datasource ## Datasource
- Configure Grafana to use InfluxDB as a new datasource - Configure Grafana to use InfluxDB as a new datasource
@ -13,3 +15,25 @@
Import all or some of the example dashboards from [dashboards/*.json](dashboards/) into Grafana as a starting point and get creative making your own cool dashboards - please share anything useful :) Import all or some of the example dashboards from [dashboards/*.json](dashboards/) into Grafana as a starting point and get creative making your own cool dashboards - please share anything useful :)
- When importing a dashboard, select the **hmci** datasource you have created. - When importing a dashboard, select the **hmci** datasource you have created.
## Security and Proxy
The easiest way to secure Grafana with https is to put it behind a proxy server such as nginx.
If you want to serve /grafana as shown below, you also need to edit */etc/grafana/grafana.ini* and change the *root_url*:
```
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/
```
Nginx snippet:
```nginx
location /grafana/ {
proxy_pass http://localhost:3000/;
proxy_set_header Host $host;
}
```

View file

@ -1,4 +1,4 @@
# HMC Preparations # IBM Power HMC Preparations
Ensure you have **correct date/time** and NTPd running to keep it accurate! Ensure you have **correct date/time** and NTPd running to keep it accurate!

View file

@ -45,8 +45,6 @@ systemctl start grafana-server
If you are running Linux on Power, you can find ppc64le Grafana packages on the [Power DevOps](https://www.power-devops.com/grafana) site. If you are running Linux on Power, you can find ppc64le Grafana packages on the [Power DevOps](https://www.power-devops.com/grafana) site.
When logged in to Grafana (port 3000, admin/admin) create a datasource that points to the local InfluxDB. Now import the provided dashboards.
## Download and Install HMCi ## Download and Install HMCi
@ -62,4 +60,10 @@ systemctl enable hmci
systemctl start hmci systemctl start hmci
``` ```
Now modify **/etc/hmci.toml** (edit URL and credentials to your HMCs) and test the setup by running ```/opt/hmci/bin/hmci -d``` in the foreground/terminal and look for any errors. Press CTRL+C to stop and then start as a background service with ```systemctl start hmci```. You can see the log/output by running ```journalctl -f -u hmci```. ## Configure HMCi
Now modify **/etc/hmci.toml** (edit URL and credentials to your HMCs) and test the setup by running ```/opt/hmci/bin/hmci -d``` in the foreground/terminal and look for any errors.
Press CTRL+C to stop and then start as a background service with ```systemctl start hmci```.
You can see the log/output by running ```journalctl -f -u hmci```.

View file

@ -44,8 +44,6 @@ systemctl start grafana-server
If you are running Linux on Power, you can find ppc64le Grafana packages on the [Power DevOps](https://www.power-devops.com/grafana) site. If you are running Linux on Power, you can find ppc64le Grafana packages on the [Power DevOps](https://www.power-devops.com/grafana) site.
When logged in to Grafana (port 3000, admin/admin) create a datasource that points to the local InfluxDB. Now import the provided dashboards.
## Download and Install HMCi ## Download and Install HMCi
@ -60,4 +58,12 @@ systemctl daemon-reload
systemctl enable hmci systemctl enable hmci
``` ```
Now modify **/etc/hmci.toml** (edit URL and credentials to your HMCs) and test the setup by running ```/opt/hmci/bin/hmci -d``` in the foreground/terminal and look for any errors. Press CTRL+C to stop and then start as a background service with ```systemctl start hmci```. You can see the log/output by running ```journalctl -f -u hmci```. ## Configure HMCi
Now modify **/etc/hmci.toml** (edit URL and credentials to your HMCs) and test the setup by running ```/opt/hmci/bin/hmci -d``` in the foreground/terminal and look for any errors.
Press CTRL+C to stop and then start as a background service with ```systemctl start hmci```.
You can see the log/output by running ```journalctl -f -u hmci```.