-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow do define a 'responsible' string per bp that can be used in the… (
#5) * allow do define a 'responsible' string per bp that can be used in the trigger subcommand * allow to define a responsible string on each level (BP, KPI, SVC) and inherit from above if not defined * allow to print responsible on run via -r/--resp flag * updated doc to reflect 'responsible' string
- Loading branch information
Showing
4 changed files
with
52 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,11 @@ id: app_x | |
# the availabilities section from the global configuration...? This links | ||
# there. | ||
availability: 9to5 | ||
# You can also specify a 'responsible' string. This string can then be used in | ||
# the trigger template. This could be for example trigger a specific http | ||
# end point, pass some uri parameters, send an email to a specific address etc. | ||
# The 'responsible' string is inherited by its KPIs if not overwritten... | ||
responsible: [email protected] | ||
# Now the KPIs... | ||
kpis: | ||
- | ||
|
@@ -164,6 +169,9 @@ kpis: | |
# need to be 'OK' | ||
# * MINPERCENT x: As 'MIN', but in percent. | ||
operation: OR | ||
# Again, a 'responsible' string can be specified in order not to inherit | ||
# from the parent BP. | ||
responsible: [email protected] | ||
# And now the processes. Host and service relate to how you named those | ||
# things in your Icinga2 setup. | ||
services: | ||
|
@@ -173,7 +181,7 @@ kpis: | |
id: app_availability | ||
operation: MINPERCENT 50 | ||
services: | ||
- { host: app1.example.com, service: api_health } | ||
- { host: app1.example.com, service: api_health, responsible: [email protected] } | ||
- { host: app2.example.com, service: api_health } | ||
- { host: app3.example.com, service: api_health } | ||
- { host: app4.example.com, service: api_health } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters