From cad8bec17df390d6f1e709dcfa60e3421d800f1c Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:19:18 +0100 Subject: [PATCH 01/18] Update README.md --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6df8733..5ce5288 100644 --- a/README.md +++ b/README.md @@ -20,19 +20,19 @@ Here is an example of thos the graphs look like: ## How to deploy. 1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso): - - Basic installation, only select OpenSSH from the package list, create a user. + * Basic installation, only select OpenSSH from the package list, create a user. 2. Install Prometheus: - - create required user: - ``` - sudo useradd -M -s /bin/fals prometheus - ``` - -create required folders: - ``` - sudo mkdir /etc/prometheus - sudo mkdir /var/lib/prometheus - sudo chown prometheus:prometheus /etc/prometheus - sudo chown prometheus:prometheus /var/lib/prometheus - ``` + * create required user: +``` + sudo useradd -M -s /bin/fals prometheus +``` + * create required folders: +``` + sudo mkdir /etc/prometheus + sudo mkdir /var/lib/prometheus + sudo chown prometheus:prometheus /etc/prometheus + sudo chown prometheus:prometheus /var/lib/prometheus +``` - download and extract: ``` curl -LO https://github.com/prometheus/prometheus/releases/download/v2.6.1/prometheus-2.6.1.linux-amd64.tar.gz @@ -71,7 +71,7 @@ scrape_configs: service_name: hx_read_write_stats ``` - - try to start prometheus: + - try to start prometheus: sudo -u prometheus /usr/local/bin/prometheus --config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries From c99db1b7bd060030650380dc0ff2a130ce9912e2 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:26:56 +0100 Subject: [PATCH 02/18] Update README.md --- README.md | 99 +++++++++++++++++++++++++++---------------------------- 1 file changed, 48 insertions(+), 51 deletions(-) diff --git a/README.md b/README.md index 5ce5288..9cfd34b 100644 --- a/README.md +++ b/README.md @@ -32,28 +32,28 @@ Here is an example of thos the graphs look like: sudo mkdir /var/lib/prometheus sudo chown prometheus:prometheus /etc/prometheus sudo chown prometheus:prometheus /var/lib/prometheus -``` - - download and extract: - ``` - curl -LO https://github.com/prometheus/prometheus/releases/download/v2.6.1/prometheus-2.6.1.linux-amd64.tar.gz - tar xvf prometheus-2.6.1.linux-amd64.tar.gz - ``` - - copy files and change premissions: - ``` - sudo cp prometheus-2.6.1.linux-amd64/prometheus /usr/local/bin/ - sudo cp prometheus-2.6.1.linux-amd64/promtool /usr/local/bin/ - sudo chown prometheus:prometheus /usr/local/bin/prometheus - sudo chown prometheus:prometheus /usr/local/bin/promtool - sudo cp -r prometheus-2.6.1.linux-amd64/consoles /etc/prometheus - sudo cp -r prometheus-2.6.1.linux-amd64/console_libraries /etc/prometheus - sudo chown -R prometheus:prometheus /etc/prometheus/consoles - sudo chown -R prometheus:prometheus /etc/prometheus/console_libraries - ``` - - configure prometheus: - ``` - sudo vim /etc/prometheus/prometheus.yml - ``` - **Note:** watch out for formatting this is YAML, no TABs allowed, use two spaces instead. +``` + * download and extract: +``` + curl -LO https://github.com/prometheus/prometheus/releases/download/v2.6.1/prometheus-2.6.1.linux-amd64.tar.gz + tar xvf prometheus-2.6.1.linux-amd64.tar.gz +``` + * copy files and change premissions: +``` + sudo cp prometheus-2.6.1.linux-amd64/prometheus /usr/local/bin/ + sudo cp prometheus-2.6.1.linux-amd64/promtool /usr/local/bin/ + sudo chown prometheus:prometheus /usr/local/bin/prometheus + sudo chown prometheus:prometheus /usr/local/bin/promtool + sudo cp -r prometheus-2.6.1.linux-amd64/consoles /etc/prometheus + sudo cp -r prometheus-2.6.1.linux-amd64/console_libraries /etc/prometheus + sudo chown -R prometheus:prometheus /etc/prometheus/consoles + sudo chown -R prometheus:prometheus /etc/prometheus/console_libraries +``` + * configure prometheus: +``` + sudo vim /etc/prometheus/prometheus.yml +``` + **Note:** watch out for formatting this is YAML, no TABs allowed, use two spaces instead. ```yaml global: @@ -70,25 +70,23 @@ scrape_configs: labels: service_name: hx_read_write_stats ``` - - - try to start prometheus: - - sudo -u prometheus /usr/local/bin/prometheus --config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries - - - - verfiy if it works: - - http://localhost:9090/status - - - if all good stop it: - - CTRL+C - - - create prometheus service: + * try to start prometheus: ``` - sudo vim /etc/systemd/system/prometheus.service + sudo -u prometheus /usr/local/bin/prometheus --config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries ``` - File should looks like this: + * verfiy if it works: + + http://localhost:9090/status + + * if all good stop it: + + CTRL+C + + * create prometheus service: +``` + sudo vim /etc/systemd/system/prometheus.service +``` + File should looks like this: ``` [Unit] Description=Prometheus @@ -106,24 +104,23 @@ ExecStart=/usr/local/bin/prometheus \ --web.console.libraries=/etc/prometheus/console_libraries [Install] WantedBy=multi-user.target -``` - - - reload services: ``` - sudo systemctl daemon-reload + * reload services: ``` - - start Prometheus using the following command: + sudo systemctl daemon-reload ``` - sudo systemctl start prometheus + * start Prometheus using the following command: ``` - - check if Prometheus is running, check the service.s status. -``` - sudo systemctl status prometheus + sudo systemctl start prometheus +``` + * check if Prometheus is running, check the service.s status. +``` + sudo systemctl status prometheus +``` + * enable service: ``` - - enable service: -``` sudo systemctl enable prometheus -``` +``` Keywords: Cisco Hyperflex, API, python. From 42ff5f729df399601c0733480637c6df1c446411 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:34:58 +0100 Subject: [PATCH 03/18] Update README.md --- README.md | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9cfd34b..dd811a7 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ WantedBy=multi-user.target ``` sudo systemctl start prometheus ``` - * check if Prometheus is running, check the service.s status. + * check if Prometheus is running, check the service status. ``` sudo systemctl status prometheus ``` @@ -121,6 +121,49 @@ WantedBy=multi-user.target ``` sudo systemctl enable prometheus ``` +3. Install Grafana + * Add grafana sources to apt +``` + sudo vim /etc/apt/sources.list.d/grafana.list +``` + deb https://packages.grafana.com/oss/deb stable main + * Add apt key: +``` + curl https://packages.grafana.com/gpg.key | sudo apt-key add - +``` + * + update apt: +``` + sudo apt-get update +``` + * Verify what is the install candiate: +``` + apt-cache policy grafana +``` + * Install grafana: +``` + sudo apt-get install grafana +``` + * Configure grafana to start automatically using systemd +``` + sudo /bin/systemctl daemon-reload + sudo /bin/systemctl enable grafana-server +``` + * Start grafana-server by executing +``` + sudo /bin/systemctl start grafana-server +``` + * Verify if it's running: +``` + sudo systemctl status grafana-server +``` + * Login to gui via: + http://:3000/login (user your , default port is 3000, username: admin password: admin) + + * Add prometheus as source: + Got to source and select, prometheus, http://localhost:9090, hit save and test + + * import dashboard from file : HX-monitor-Grafana_normal.json Keywords: Cisco Hyperflex, API, python. From 85368cd2dc2c938b97d9b02bf9206b94ac2c7151 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:40:53 +0100 Subject: [PATCH 04/18] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dd811a7..9dccfec 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,8 @@ Here is an example of thos the graphs look like: ## How to deploy. -1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso): - * Basic installation, only select OpenSSH from the package list, create a user. +1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso) + * Basic installation, only select OpenSSH from the package list, create a user . 2. Install Prometheus: * create required user: ``` From 296b0f610a21f3386fff882bfa86be8c9d54640f Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:42:54 +0100 Subject: [PATCH 05/18] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9dccfec..17c1637 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,12 @@ Here is an example of thos the graphs look like: ## How to deploy. -1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso) - * Basic installation, only select OpenSSH from the package list, create a user . +1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso) + * Basic installation, only select OpenSSH from the package list, create a user. 2. Install Prometheus: - * create required user: + * create required user: ``` - sudo useradd -M -s /bin/fals prometheus +sudo useradd -M -s /bin/fals prometheus ``` * create required folders: ``` From 688d503315bacf65eecb3ea72a698beaacc1cb02 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:44:53 +0100 Subject: [PATCH 06/18] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 17c1637..7f7c4ae 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ Here is an example of thos the graphs look like: ## How to deploy. 1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso) - * Basic installation, only select OpenSSH from the package list, create a user. + * Basic installation, only select OpenSSH from the package list, create a user. 2. Install Prometheus: - * create required user: + * create required user: ``` sudo useradd -M -s /bin/fals prometheus ``` From 28356a49f8b2bc5674dcb3edcac85a3fff7658c6 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:48:05 +0100 Subject: [PATCH 07/18] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7f7c4ae..612b314 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,10 @@ Here is an example of thos the graphs look like: ## How to deploy. 1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso) + * Basic installation, only select OpenSSH from the package list, create a user. 2. Install Prometheus: + * create required user: ``` sudo useradd -M -s /bin/fals prometheus From 711ff3c4bf8114a708ff8a57870036188e79b0f5 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:50:29 +0100 Subject: [PATCH 08/18] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 612b314..d2daa18 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,10 @@ Here is an example of thos the graphs look like: 1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso) - * Basic installation, only select OpenSSH from the package list, create a user. + * Basic installation, only select OpenSSH from the package list, create a user. 2. Install Prometheus: - * create required user: + * create required user: ``` sudo useradd -M -s /bin/fals prometheus ``` From eccd89eda393bb70a1b4a4008684883afbc99dfb Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:52:23 +0100 Subject: [PATCH 09/18] Update README.md --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d2daa18..afadf55 100644 --- a/README.md +++ b/README.md @@ -25,17 +25,20 @@ Here is an example of thos the graphs look like: 2. Install Prometheus: * create required user: + ``` -sudo useradd -M -s /bin/fals prometheus + sudo useradd -M -s /bin/fals prometheus ``` - * create required folders: + * create required folders: + ``` - sudo mkdir /etc/prometheus - sudo mkdir /var/lib/prometheus - sudo chown prometheus:prometheus /etc/prometheus - sudo chown prometheus:prometheus /var/lib/prometheus + sudo mkdir /etc/prometheus + sudo mkdir /var/lib/prometheus + sudo chown prometheus:prometheus /etc/prometheus + sudo chown prometheus:prometheus /var/lib/prometheus ``` * download and extract: + ``` curl -LO https://github.com/prometheus/prometheus/releases/download/v2.6.1/prometheus-2.6.1.linux-amd64.tar.gz tar xvf prometheus-2.6.1.linux-amd64.tar.gz From fc3f34885e6d82a4ab68002e7f519f5bb4c46bca Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:53:19 +0100 Subject: [PATCH 10/18] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index afadf55..f4ff8c6 100644 --- a/README.md +++ b/README.md @@ -21,15 +21,15 @@ Here is an example of thos the graphs look like: 1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso) - * Basic installation, only select OpenSSH from the package list, create a user. + * Basic installation, only select OpenSSH from the package list, create a user. 2. Install Prometheus: - * create required user: + * create required user: ``` sudo useradd -M -s /bin/fals prometheus ``` - * create required folders: + * create required folders: ``` sudo mkdir /etc/prometheus From 49052e0f3ebb1d9a2741bc84d91dbdab51906d98 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 16:53:53 +0100 Subject: [PATCH 11/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f4ff8c6..009e729 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Here is an example of thos the graphs look like: * create required user: ``` - sudo useradd -M -s /bin/fals prometheus + sudo useradd -M -s /bin/fals prometheus ``` * create required folders: From ac6886a7504bba47c7aa5337ab43a073624b5795 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 20:41:27 +0100 Subject: [PATCH 12/18] Update README.md --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 009e729..3a80359 100644 --- a/README.md +++ b/README.md @@ -20,15 +20,12 @@ Here is an example of thos the graphs look like: ## How to deploy. 1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso) - - * Basic installation, only select OpenSSH from the package list, create a user. + * Basic installation, only select OpenSSH from the package list, create a user. 2. Install Prometheus: - * create required user: - -``` + ``` sudo useradd -M -s /bin/fals prometheus -``` + ``` * create required folders: ``` From 369a6d0279e38c5b18dd8d241f79e13ce76e8961 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 20:43:13 +0100 Subject: [PATCH 13/18] Update README.md --- README.md | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 3a80359..ff0ae0a 100644 --- a/README.md +++ b/README.md @@ -27,21 +27,19 @@ Here is an example of thos the graphs look like: sudo useradd -M -s /bin/fals prometheus ``` * create required folders: - -``` - sudo mkdir /etc/prometheus - sudo mkdir /var/lib/prometheus - sudo chown prometheus:prometheus /etc/prometheus - sudo chown prometheus:prometheus /var/lib/prometheus -``` + ``` + sudo mkdir /etc/prometheus + sudo mkdir /var/lib/prometheus + sudo chown prometheus:prometheus /etc/prometheus + sudo chown prometheus:prometheus /var/lib/prometheus + ``` * download and extract: - -``` + ``` curl -LO https://github.com/prometheus/prometheus/releases/download/v2.6.1/prometheus-2.6.1.linux-amd64.tar.gz tar xvf prometheus-2.6.1.linux-amd64.tar.gz -``` + ``` * copy files and change premissions: -``` + ``` sudo cp prometheus-2.6.1.linux-amd64/prometheus /usr/local/bin/ sudo cp prometheus-2.6.1.linux-amd64/promtool /usr/local/bin/ sudo chown prometheus:prometheus /usr/local/bin/prometheus @@ -50,14 +48,14 @@ Here is an example of thos the graphs look like: sudo cp -r prometheus-2.6.1.linux-amd64/console_libraries /etc/prometheus sudo chown -R prometheus:prometheus /etc/prometheus/consoles sudo chown -R prometheus:prometheus /etc/prometheus/console_libraries -``` + ``` * configure prometheus: -``` + ``` sudo vim /etc/prometheus/prometheus.yml -``` + ``` **Note:** watch out for formatting this is YAML, no TABs allowed, use two spaces instead. -```yaml + ```yaml global: scrape_interval: 15s scrape_configs: @@ -71,9 +69,9 @@ scrape_configs: - targets: ['localhost:8082'] labels: service_name: hx_read_write_stats -``` + ``` * try to start prometheus: -``` + ``` sudo -u prometheus /usr/local/bin/prometheus --config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries ``` * verfiy if it works: From 83e73995e4a296ccd8451320e938e088a00dd139 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 20:46:51 +0100 Subject: [PATCH 14/18] Update README.md --- README.md | 80 +++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index ff0ae0a..4d4bb96 100644 --- a/README.md +++ b/README.md @@ -56,24 +56,24 @@ Here is an example of thos the graphs look like: **Note:** watch out for formatting this is YAML, no TABs allowed, use two spaces instead. ```yaml -global: - scrape_interval: 15s -scrape_configs: - - job_name: 'prometheus' - scrape_interval: 5s - static_configs: - - targets: ['localhost:9090'] - - job_name: 'hx_metrics' - scrape_interval: 1m - static_configs: - - targets: ['localhost:8082'] - labels: - service_name: hx_read_write_stats + global: + scrape_interval: 15s + scrape_configs: + - job_name: 'prometheus' + scrape_interval: 5s + static_configs: + - targets: ['localhost:9090'] + - job_name: 'hx_metrics' + scrape_interval: 1m + static_configs: + - targets: ['localhost:8082'] + labels: + service_name: hx_read_write_stats ``` * try to start prometheus: ``` sudo -u prometheus /usr/local/bin/prometheus --config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries -``` + ``` * verfiy if it works: http://localhost:9090/status @@ -83,9 +83,9 @@ scrape_configs: CTRL+C * create prometheus service: -``` + ``` sudo vim /etc/systemd/system/prometheus.service -``` + ``` File should looks like this: ``` [Unit] @@ -106,58 +106,58 @@ ExecStart=/usr/local/bin/prometheus \ WantedBy=multi-user.target ``` * reload services: -``` + ``` sudo systemctl daemon-reload -``` + ``` * start Prometheus using the following command: -``` + ``` sudo systemctl start prometheus -``` + ``` * check if Prometheus is running, check the service status. -``` + ``` sudo systemctl status prometheus -``` + ``` * enable service: -``` + ``` sudo systemctl enable prometheus -``` + ``` 3. Install Grafana * Add grafana sources to apt -``` + ``` sudo vim /etc/apt/sources.list.d/grafana.list -``` + ``` deb https://packages.grafana.com/oss/deb stable main * Add apt key: -``` + ``` curl https://packages.grafana.com/gpg.key | sudo apt-key add - -``` + ``` * update apt: -``` + ``` sudo apt-get update -``` + ``` * Verify what is the install candiate: -``` + ``` apt-cache policy grafana -``` + ``` * Install grafana: -``` + ``` sudo apt-get install grafana -``` + ``` * Configure grafana to start automatically using systemd -``` + ``` sudo /bin/systemctl daemon-reload sudo /bin/systemctl enable grafana-server -``` + ``` * Start grafana-server by executing -``` + ``` sudo /bin/systemctl start grafana-server -``` + ``` * Verify if it's running: -``` + ``` sudo systemctl status grafana-server -``` + ``` * Login to gui via: http://:3000/login (user your , default port is 3000, username: admin password: admin) From e5c221a98ee7ad3fba93f60c4c2360160d99a957 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 20:49:44 +0100 Subject: [PATCH 15/18] Update README.md --- README.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 4d4bb96..8dfbb33 100644 --- a/README.md +++ b/README.md @@ -87,24 +87,24 @@ Here is an example of thos the graphs look like: sudo vim /etc/systemd/system/prometheus.service ``` File should looks like this: -``` -[Unit] -Description=Prometheus -Wants=network-online.target -After=network-online.target + ``` + [Unit] + Description=Prometheus + Wants=network-online.target + After=network-online.target -[Service] -User=prometheus -Group=prometheus -Type=simple -ExecStart=/usr/local/bin/prometheus \ - --config.file /etc/prometheus/prometheus.yml \ - --storage.tsdb.path /var/lib/prometheus \ - --web.console.templates=/etc/prometheus/consoles \ - --web.console.libraries=/etc/prometheus/console_libraries -[Install] -WantedBy=multi-user.target -``` + [Service] + User=prometheus + Group=prometheus + Type=simple + ExecStart=/usr/local/bin/prometheus \ + --config.file /etc/prometheus/prometheus.yml \ + --storage.tsdb.path /var/lib/prometheus \ + --web.console.templates=/etc/prometheus/consoles \ + --web.console.libraries=/etc/prometheus/console_libraries + [Install] + WantedBy=multi-user.target + ``` * reload services: ``` sudo systemctl daemon-reload From cd4073601ed79a7a0d8a91a082353cde5159e7e4 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 20:51:47 +0100 Subject: [PATCH 16/18] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8dfbb33..80e5099 100644 --- a/README.md +++ b/README.md @@ -126,8 +126,9 @@ Here is an example of thos the graphs look like: ``` sudo vim /etc/apt/sources.list.d/grafana.list ``` + ``` deb https://packages.grafana.com/oss/deb stable main - + ``` * Add apt key: ``` curl https://packages.grafana.com/gpg.key | sudo apt-key add - @@ -159,11 +160,15 @@ Here is an example of thos the graphs look like: sudo systemctl status grafana-server ``` * Login to gui via: + http://:3000/login (user your , default port is 3000, username: admin password: admin) * Add prometheus as source: + Got to source and select, prometheus, http://localhost:9090, hit save and test - * import dashboard from file : HX-monitor-Grafana_normal.json + * import dashboard from file : + + HX-monitor-Grafana_normal.json Keywords: Cisco Hyperflex, API, python. From ba304b700f3d022af9ec78e8cce6c20de9f4e791 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 20:53:35 +0100 Subject: [PATCH 17/18] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 80e5099..b7c6644 100644 --- a/README.md +++ b/README.md @@ -133,8 +133,7 @@ Here is an example of thos the graphs look like: ``` curl https://packages.grafana.com/gpg.key | sudo apt-key add - ``` - * - update apt: + * update apt: ``` sudo apt-get update ``` From 6566ccc24c56bff8b826dd48c1914ec73fdded12 Mon Sep 17 00:00:00 2001 From: Kris Sekula Date: Wed, 23 Jan 2019 21:00:31 +0100 Subject: [PATCH 18/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b7c6644..a641865 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ Here is an example of thos the graphs look like: ``` * Login to gui via: - http://:3000/login (user your , default port is 3000, username: admin password: admin) + `http://:3000/login` (use your ``, default port is 3000, username: admin password: admin) * Add prometheus as source: