[NABox] Modify Collection Interval for ZapiPerf Volume Performance Template #2556
rahulguptajss
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note: Below steps are applicable for NABox
Prerequisite: ssh to NABox via root
Step 1: Create
custom_mycustom_conf.yaml
Navigate to the
zapiperf
directory:cd /opt/harvest2-conf/conf/zapiperf
Create custom_mycustom_conf.yaml:
Update the file with the following content:
Step 2: Create
custom_volume.yaml
Navigate to the
cdot/9.8.0
directory:cd /opt/harvest2-conf/conf/zapiperf/cdot/9.8.0
Create
custom_volume.yaml
:Update the file with the following content:
Step 3: Change Prometheus Collection Interval for Prometheus Volume Metrics
Note: NABox upgrade will overwrite this file.
Navigate to the Prometheus directory:
cd /usr/local/nabox/files/prometheus
Backup
prometheus.yml
:Open
prometheus.yml
in a text editor:Update the file with the following content:
Step 4: Restart NABox containers
Step 5: Validate Volume Performance Collection in Harvest
Wait for atleast 5 minutes. To ensure that the
ZapiPerf:Volume
metrics are being collected every 5 seconds. You can validate this by using the following commands:These commands will redirect the logs from the
nabox-harvest2
Docker container to a file namedlogs.txt
, and then search for the termZapiPerf:Volume
within that file.In the screenshot below, you can see that for the poller
A250-41-42-43
, the collection interval forZapiPerf:volume
is now 5 seconds.Step 6: Verify Volume Performance Metrics in Prometheus
Confirm that the volume performance metrics are being scraped 12 times per minute by prometheus. This would mean that the scrape interval has been reduced to 5 seconds by Prometheus.
To verify this, run the following query:
You can run this query on the following page:
https://NABox/prometheus
.Beta Was this translation helpful? Give feedback.
All reactions