[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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Note: Below steps are applicable for NABox
Prerequisite: ssh to NABox via root
Step 1: Create
custom_mycustom_conf.yamlNavigate to the
zapiperfdirectory:cd /opt/harvest2-conf/conf/zapiperfCreate custom_mycustom_conf.yaml:
Update the file with the following content:
Step 2: Create
custom_volume.yamlNavigate to the
cdot/9.8.0directory:cd /opt/harvest2-conf/conf/zapiperf/cdot/9.8.0Create
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/prometheusBackup
prometheus.yml:Open
prometheus.ymlin 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:Volumemetrics are being collected every 5 seconds. You can validate this by using the following commands:These commands will redirect the logs from the
nabox-harvest2Docker container to a file namedlogs.txt, and then search for the termZapiPerf:Volumewithin that file.In the screenshot below, you can see that for the poller
A250-41-42-43, the collection interval forZapiPerf:volumeis 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