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
-
Below docs are with reference to Feature
qos_latency
metric in Prometheus. If this metric exists, it indicates that the QoS templates are indeed enabled.filter
feature will be included in the 24.02 release.Prerequisite: ssh to NABox via root
Step 1: Create
custom_my_workload.yaml
Navigate to the
zapiperf
directory:cd /opt/harvest2-conf/conf/zapiperf
Create custom_my_workload.yaml:
Update the file with the following content:
Step 2: Create
custom_workload_volume.yaml
Navigate to the
cdot/9.8.0
directory:cd /opt/harvest2-conf/conf/zapiperf/cdot/9.8.0
Create
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.yaml
Navigate to the
zapiperf
directory:cd /opt/harvest2-conf/conf/zapiperf/cdot/9.8.0
Create 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/prometheus
Create a backup of the
prometheus.yml
file:Open
prometheus.yml
in 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:WorkloadVolumeCritical
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:WorkloadVolumeCritical
within that file.In the screenshot below, you can see that the poller
umeng-aff300-01-02
's collection interval forZapiPerf:WorkloadVolumeCritical
is 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