From e655b86c59bb3e94dc3174938a4c9b05509f4b0a Mon Sep 17 00:00:00 2001 From: Stefan Chiripuci Date: Thu, 18 Mar 2021 17:23:10 +0200 Subject: Telemetry getting started documentation Default User and Pass for Grafana Incorrect instruction for unpacking telemetry kit, add brief note on installing docker. Change-Id: I7aecd5e4fab790513d22289c72821d131552e332 --- .../doc/grafana.xml | 103 ++++++++++++++++++--- 1 file changed, 92 insertions(+), 11 deletions(-) (limited to 'doc') diff --git a/doc/book-enea-nfv-access-getting-started/doc/grafana.xml b/doc/book-enea-nfv-access-getting-started/doc/grafana.xml index 91e38f3..8278261 100644 --- a/doc/book-enea-nfv-access-getting-started/doc/grafana.xml +++ b/doc/book-enea-nfv-access-getting-started/doc/grafana.xml @@ -28,16 +28,56 @@ - Docker for CentOS 7 installed on the machine and set to - autostart as a service. + Internet connection for installing the Docker tool. - Superuser rights on the CentOS 7 machine. + Root rights on the CentOS 7 machine. +
+ Setting up Docker for Grafana and InfluxDB + + In order to use the Grafana and InfluxDB containers, the Docker + tool that runs and manages containers needs to be available on + the server. + + To install Docker on a CentOS 7 server open a terminal, log + into a bash shell with the root account and run the following commands: + + + + yum check-update + + + + yum install -y yum-utils device-mapper-persistent-data lvm2 + + + + yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo + + + + yum install docker + + + + In order to deploy the Grafana and InfluxDB images, the Docker + service needs to be started. To start the Docker service, log into + a bash shell with the root account and run the following command: + systemctl start docker. + + By default, the Docker service is not configured to start at boot. + In order to configure it to autostart, log into a bash shell + with the root account and run the following command: + systemctl enable docker. The Grafana and InfluxDB + images are configured to autostart when the Docker service starts. +
+ +
Deploying Grafana and InfluxDB @@ -63,10 +103,19 @@ - When prompted, select what images you want to deploy. - - If an image is already deployed, you will be prompted to - replace it. + When prompted, select what images you want to deploy. + Select Both unless you wish for the Grafana + and InfluxDB images to be on separate servers. + + + If an image is already deployed, you will be prompted + to replace it. + + By default, Grafana is configured for deployment on the + same server as InfluxDB. Please read the Grafana documentation + on how to configure it if you wish to deploy the images + on separate servers. + @@ -86,14 +135,46 @@ present and have the status Up. + + + The provided Grafana instance by default uses the + Username: admin and + Password: admin. + +
+ +
+ Firewall settings for Grafana and InfluxDB + + If a firewall is running on the machines where Grafana and InfluxDB are + deployed, this firewall needs to be configured so the required ports are + enabled. + + To enable the ports, log into a bash shell with the root account and + perform the following: + + + + + For InfluxDB, run the following command: + + firewall-cmd --permanent --add-port=25826/tcp + + + + For Grafana, run the following command: + + firewall-cmd --permanent --add-port=3000/tcp + +
Setting Grafana and InfluxDB parameters - Customizing InfluxDB and Grafana parameters can be done by selecting - System, then the Customizing InfluxDB and Grafana parameters can be done in the Enea uCPE Manager + GUI by selecting System, then the Configuration menu, accessing the Properties tab, and clicking on the Telemetry tab. The settings that can be changed are @@ -121,7 +202,7 @@ Grafana Hostname or IP Address - The hostname or IP address where the Grafana instance is + The public hostname or IP address where the Grafana instance is installed. no default @@ -147,7 +228,7 @@ InfluxDB Hostname or IP Address - The hostname or IP address where the InfluxDB database is + The public hostname or IP address where the InfluxDB database is installed. no default -- cgit v1.2.3-54-g00ecf