Add a new REST Snapshot template #2970
cgrinds
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.
-
Note: These steps are for native install.
Step 1: Create
custom_snapshot.yamlLet's assume Harvest is installed in
/opt/harvestdirectory. Adjust paths as needed.Navigate to the
restdirectory:cd /opt/harvest/conf/restCreate custom_snapshot.yaml:
Update the file with the following content:
Step 2: Create
snapshot.yamlNavigate to the
9.12.0directory:cd /opt/harvest/conf/rest/9.12.0Create
snapshot.yaml:Update the file with the following content:
Step 3: Restart Harvest pollers
Step 4: Validate Snapshot collection in Harvest
Wait for at least 1 minute. To ensure that the
Rest:Snapshotmetrics are being collected, run the following command:Substitute the name of your poller for
$pollerIn the screenshot below, you can see that the poller
saris collectingRest:Snapshotinstances.Step 5: Verify Snapshot metrics are in Prometheus
Confirm that the Snapshot metrics are being scraped by Prometheus by running the following query from Prometheus:
Beta Was this translation helpful? Give feedback.
All reactions