We're going to do a few things here:
- Monitor a single website
- Create some proxy entities
- Monitor those proxy entities
Before we get started, if you want to change the websites monitored here, you can. They're listed at the following:
go/config/checks/check-http.yaml go/config/entities/proxy_entities.yaml
- Create the http check:
sensuctl create -f go/config/checks/check-http.yaml
- Check that the check was created
sensuctl check list
- Create some proxy entities
sensuctl create -f go/config/entities/proxy_entities.yaml
- Verify that our entities were created
sensuctl entity list
- Create a http proxy check:
sensuctl create -f go/config/checks/check-http-proxy.yaml
Boom! You've done it! You have created your own checks.
But thats super noisy. What about filters?
- Create the filter
sensuctl create -f go/config/filters/filter_interval_60_hourly.yml
- Update the handler to use the filter
Everything will be the same except for the filter list:
is_incident,not_silenced,filter_interval_60_hourly
We'll see this applied at the end of the demo.