I am looking for a solution where we can create a much advance and complex exclusion list.
I was reading and Sideload seems to be of help.
Please consider this simplified used case (for brevity only 3 hosts but in production there are hundreds of hosts)
We got 3 Hosts:
3 Target process to exclude from alerting:
Exclude Process_31 on Host_1 from alerting.
Exclude Process_42 on Host_2 from alerting.
Host_3 would alert on both.
Example of a Sideload Directories:
How to handle this in the yml file:
I could think of the following but it does not work and alert on all processes.
Would love to hear if anyone has any idea.
I’m not sure. I’m passing this along to our Kapacitor experts.
Thank you @Anaisdg
Just out of curiosity, do you have any idea if this scenario can be handled in flux alerting?
I’m not sure I completely understand what it is that you’re trying to achieve. Can you please break it down for me a little bit more?
Sideload is similar to csv.from() in Flux though.
Sure let me break it down.
Our requirement was to create 1 alert per test which can also handle different condition/threshold for different host.
Assuming we have an Alert for CPU Consumption by .exe or Processes like python.exe chrome.exe etc
Client/Host A does not to alert on Chrome
Client/Host B wants to alert on Chrome but not on python
Now I was able to make use of the following document and created host based thresholds.
Next Level: Where we can either use the same sideload or flux csv feature to create much more complex condition as mentioned above.
Also it does not look like we can use .csv to our advantage for creating and using alert thresholds?
How do you mean? You can use csv.from() within your task and then use the information in the csv to craft your task for alerting.
First look it did not look like but i see what you are saying.
I will try it out.
Thanks a lot!
We got 2.0 setup.
I see there are tasks and alerts how can i write a script to do the following:
#1 Get data for a specific window of time
I do not see alert node, can i only use UI or we can write our own query/script for alerting?
You can either write tasks scripts through the UI or you can use the API.
Here is the Visual Studio Flux extension:
Here are some blogs relevant to you:
Here is the API documentation for:
Endpoints for alerts:
Here is blog post for creating custom Flux notification endpoints in case you’re interested in contributing one.
Contributing Third Party Flux Packages: A Discord Endpoint Flux Function
A great and useful topic for me, thanks!