Modify Collection Interval and apply filter for ZapiPerf WorkloadVolume Performance Template #2580
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.
-
Below docs are with reference to Feature
qos_latencymetric in Prometheus. If this metric exists, it indicates that the QoS templates are indeed enabled.filterfeature will be included in the 24.02 release.Prerequisite: ssh to NABox via root
Step 1: Create
custom_my_workload.yamlNavigate to the
zapiperfdirectory:cd /opt/harvest2-conf/conf/zapiperfCreate custom_my_workload.yaml:
Update the file with the following content:
Step 2: Create
custom_workload_volume.yamlNavigate to the
cdot/9.8.0directory:cd /opt/harvest2-conf/conf/zapiperf/cdot/9.8.0Create
custom_workload_volume.yaml:Update the file with the following content.
For more details, refer to the workload filter templates.
Step 3: Create
custom_workload_volume_critical.yamlNavigate to the
zapiperfdirectory:cd /opt/harvest2-conf/conf/zapiperf/cdot/9.8.0Create custom_workload_volume_critical.yaml:
Update the file with the following content:
Step 4: Modify Prometheus Collection Interval for WorkloadVolume Metrics
Navigate to the Prometheus directory:
cd /usr/local/nabox/files/prometheusCreate a backup of the
prometheus.ymlfile:Open
prometheus.ymlin a text editor:Make the following changes:
Remove these lines:
Add the following lines:
Step 5: Restart NABox containers
Step 5: Validate WorkloadVolumeCritical Performance Collection in Harvest
Wait for at least ~5 minutes to ensure that the
ZapiPerf:WorkloadVolumeCriticalmetrics 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:WorkloadVolumeCriticalwithin that file.In the screenshot below, you can see that the poller
umeng-aff300-01-02's collection interval forZapiPerf:WorkloadVolumeCriticalis now 5 seconds and exporting 4 instance as a result of filter expression.Step 6: Verify WorkloadVolumeCritical Performance Metrics in Prometheus
Confirm that the WorkloadVolumeCritical 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