Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
269 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
date: 2016-11-21T15:04:24+01:00 | ||
title: HMC | ||
menu: | ||
main: | ||
parent: Getting started | ||
identifier: /getting-started/hmc | ||
weight: 40 | ||
--- | ||
|
||
# Enabling PCM data collection | ||
|
||
By default, PCM data are not collected. It's needed to enable it at the HMC level. | ||
|
||
{{< gallery image="hmc_pcm.png" >}} | ||
|
||
You can enable PCM data collection by managed system on enable it for all of them. | ||
|
||
{{< gallery image="hmc_pcm_settings.png" >}} | ||
|
||
# firewall settings | ||
|
||
To fetch PCM data from the HMC, you need to have the port **12443** allowed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
--- | ||
date: 2016-11-21T13:38:55+01:00 | ||
title: 2.0.0 version released | ||
type: "news" | ||
--- | ||
|
||
New version released adding import of HMC PCM(Performance and capacity Monitoring) data. | ||
Get a view of all your partitions and systems in a single panel. | ||
|
||
<!--more--> | ||
|
||
# HMC PCM data import | ||
|
||
It's possible to import PCM data from all systems where PCM data collection is set. | ||
|
||
{{< highlight batch >}} | ||
nmon2influxdb hmc import --hmc myhmc --hmcuser hscroot --hmcpass abc123 | ||
{{</highlight >}} | ||
|
||
# Dashboards | ||
|
||
Currently no new dashboards are hardcoded in nmon2influxdb. It's because the import functionality is still new and it's not fixed what is the best way to display this metrics in Grafana. So the dashboard will evolve a lot in the following weeks. It's easier to share the dashboards outside of the tool for now. | ||
|
||
With this release you have 2 dashboards available for download: | ||
|
||
* **hmc_partition.json** | ||
|
||
This dashboard use grafana templating to display partition informations. | ||
|
||
You can import the dashboard with **nmon2influxdb**: | ||
{{< highlight batch >}} | ||
nmon2influxdb dashboard hmc_partition.json | ||
{{</highlight >}} | ||
|
||
{{< gallery image="hmc_partition.png" >}} | ||
|
||
|
||
* **hmc_system.json** | ||
|
||
You can import the dashboard with **nmon2influxdb**: | ||
{{< highlight batch >}} | ||
nmon2influxdb dashboard hmc_partition.json | ||
{{</highlight >}} | ||
|
||
{{< gallery image="hmc_system.png" >}} | ||
|
||
### New configuration parameters | ||
|
||
{{< highlight toml >}} | ||
hmc_server="mylab" | ||
hmc_user="hscroot" | ||
hmc_password="abc123" | ||
hmc_managed_system="mysystem" | ||
hmc_database="nmon2influxdbHMC" | ||
hmc_data_retention="40d" | ||
{{< /highlight >}} | ||
|
||
**hmc_user** and **hmc_password** provides credentials to login on the HMC specified by **hmc_server**. | ||
|
||
**Note:** Connection is done on port **12443**. | ||
|
||
By default, another influxdb database is used to store HMC metrics, **hmc_database** allows to change the default value(**nmon2influxdbHMC**). | ||
|
||
No data retention is set by default but it's possible to make data expires with the parameter **hmc_data_retention**. | ||
|
||
# Example | ||
|
||
{{< highlight batch >}} | ||
nmon2influxdb hmc import | ||
############################### | ||
File /log/nmon/lpar02_151104_1204.nmon imported : 316320 points ! | ||
file not changed since last import: /log/nmon/lpar01_151104_1116.nmon | ||
file not changed since last import: /log/nmon/lpar01_151104_1200.nmon | ||
file not changed since last import: /log/nmon/lpar02_110415.nmon | ||
{{</highlight >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
date: 2016-11-21T11:24:01+01:00 | ||
title: HMC import | ||
menu: | ||
main: | ||
parent: Usage | ||
identifier: /usage/hmc_import | ||
weight: 15 | ||
--- | ||
|
||
{{< highlight batch >}} | ||
NAME: | ||
nmon2influxdb hmc import - import hmc PCM data | ||
|
||
USAGE: | ||
nmon2influxdb hmc import [command options] [arguments...] | ||
|
||
OPTIONS: | ||
--hmc "myhmc" hmc server | ||
--hmcuser "hscroot" hmc user | ||
--hmcpass "abc123" hmc password | ||
--managed_system, -m only import this managed system | ||
{{< /highlight >}} | ||
|
||
# Parameters | ||
|
||
* **hmc**: HMC to use to fetch PCM data | ||
* **hmcuser**: HMC user to use for connection | ||
* **hmcpass**: add per cpu metrics | ||
* **managed_system**: fetch HMC PCM data only for this managed system | ||
|
||
# Environment variables | ||
|
||
Environment variables can be specified to setup default parameter values. | ||
|
||
* **NMON2INFLUXDB_HMC_SERVER** | ||
* **NMON2INFLUXDB_HMC_USER** | ||
|
||
**Note:** HMC password cannot be set by environment variables. | ||
|
||
# Configuration file parameters | ||
|
||
|
||
{{< highlight toml >}} | ||
hmc_server="mylab" | ||
hmc_user="hscroot" | ||
hmc_password="abc123" | ||
hmc_managed_system="mysystem" | ||
hmc_database="nmon2influxdbHMC" | ||
hmc_data_retention="40d" | ||
{{< /highlight >}} | ||
|
||
It's possible to set all CLI parameters. It's also possible to change the InfluxDB database name with **hmc_database** and change the data retention with **hmc_data_retention**. | ||
|
||
# Examples | ||
|
||
Loading HMC metrics from HMC **myhmc**: | ||
|
||
{{< highlight batch >}} | ||
nmon2influxdb hmc import | ||
Getting list of managed systems | ||
MANAGED SYSTEM: p750A | ||
partition powerVC: 2940 points | ||
MANAGED SYSTEM: p720-NIM_RETIRED | ||
Error getting PCM data | ||
{{< /highlight >}} | ||
|
||
Note: parameters can also be set in the configuration file **~/.nmon2influxdb.cfg**. | ||
|
||
Loading HMC metrics from HMC **myhmc** for system **mysystem** only: | ||
|
||
{{< highlight batch >}} | ||
nmon2influxdb hmc import -m p750A | ||
Getting list of managed systems | ||
MANAGED SYSTEM: p750A | ||
partition powerVC: 2940 points | ||
Skipping system: p720-NIM_RETIRED | ||
{{< /highlight >}} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.