Repository navigation
document test stack #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
martialblog
merged 1 commit into
NETWAYS:main
from
UiP9AV6Y:feature/docker-compose-host-check
Oct 19, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| # Prometheus Alertmanager / Icinga Bridge | ||
|
|
||
| Test stack of components required to bring Prometheus Alertmanager alerts into | ||
| Icinga2. This particular setup uses Prometheus as alert source | ||
|
|
||
| ## Components | ||
|
|
||
| The alerting landscape consists of user facing- and support services. | ||
| The former are accessible via web browser locally. | ||
|
|
||
| ### Alertmanager Prometheus Bridge | ||
|
|
||
| Binding glue between Prometheus Alertmanager and Icinga2. | ||
|
|
||
| ### Icinga2 | ||
|
|
||
| Monitoring system; actively schedules host/service checks and accepts results | ||
| via HTTP API from Alertmanager Prometheus Bridge. | ||
|
|
||
| ### IcingaDB | ||
|
|
||
| Icinga2 worker queue to process monitoring events. | ||
|
|
||
| ### Postgres | ||
|
|
||
| RDBMS used by IcingaDB and Icingaweb2 as permanent storage. | ||
|
|
||
| ### Valkey | ||
|
|
||
| Key-value store used by IcingaDB as intermediate storage. | ||
|
|
||
| ### Prometheus | ||
|
|
||
| Metrics collector and storage. The web interface is | ||
| accessible at [http://localhost:9090](http://localhost:9090) | ||
|
|
||
| ### Prometheus Alertmanager | ||
|
|
||
| Prometheus Alertmanager is receiving alerts either from Prometheus or locally | ||
| via helper script (`./fire.sh`). The web interface is accessible | ||
| at [http://localhost:9093](http://localhost:9093) | ||
|
|
||
| ### Icingaweb2 | ||
|
|
||
| Web interface for Icinga2 accessible at | ||
| [http://localhost:8080](http://localhost:8080), with credentials | ||
| for the administrator account being `icingaadmin`/`icingaadmin`. | ||
|
|
||
| ## Alerts | ||
|
|
||
| The alerts are for demonstration purposes only and do not necessarily | ||
| represent real monitoring scenarios. | ||
|
|
||
| ### PrometheusDiscoveryHighRequestRate | ||
|
|
||
| Visit the discovery endpoints in the Prometheus web interface to | ||
| trigger this synthetic alert; refresh the page to resolve the alert: | ||
|
|
||
| * http://localhost:9090/alertmanager-discovery | ||
| * http://localhost:8080/icingadb/service?name=PrometheusDiscoveryHighRequestRate_a274e53dc7c35811&host.name=prometheus.localhost | ||
| * http://localhost:9090/service-discovery | ||
| * http://localhost:8080/icingadb/service?name=PrometheusDiscoveryHighRequestRate_a5b0cfc1ec22ef1c&host.name=prometheus.localhost | ||
|
|
||
| ### Watchdog | ||
|
|
||
| An alert to report on the state of the alerting pipeline from back to front. | ||
| It constantly fires in Prometheus to act as heartbeat. Stopping the Prometheus | ||
| container or otherwise interrupting the alert dispatching will eventually | ||
| result in the service state to reflect this: | ||
|
|
||
| * http://localhost:8080/dashboard#!/icingadb/service?name=Watchdog_664753abe3262835&host.name=bridge.localhost | ||
|
|
||
| ### AlertmanagerUp | ||
|
|
||
| Example alert to showcase mapping alerts to host objects in Icinga2. | ||
| Visit the Prometheus Alertmanager status page to trigger this | ||
| synthetic alert; refresh the page to resolve the alert: | ||
|
|
||
| * http://localhost:9093/#/status | ||
| * http://localhost:8080/icingadb/host?name=alertmanager.localhost | ||
|
|
||
| ### External Connectivity (heartbeat) | ||
|
|
||
| Not an alert in the Prometheus configuration but a heartbeat signal created | ||
| and managed exclusively by the Alertmanager Prometheus Bridge: | ||
|
|
||
| * http://localhost:8080/icingadb/service?name=heartbeat&host.name=bridge.localhost |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| object ServiceGroup "external-services" { | ||
| display_name = "Externally managed services" | ||
|
|
||
| assign where "external-service" in service.templates | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,20 +1,18 @@ | ||
| template Host "generic-host" { | ||
| max_check_attempts = 3 | ||
| check_interval = 1m | ||
| retry_interval = 30s | ||
| template Host "external-host" { | ||
| enable_perfdata = false | ||
| check_command = "dummy" | ||
| check_interval = 3m | ||
|
|
||
| vars.dummy_state = 0 | ||
| vars.dummy_text = "Host is operational" | ||
|
|
||
| check_command = "hostalive" | ||
| vars.managed_by = "bridge.localhost" | ||
| } | ||
|
|
||
| template Host "external-host" { | ||
| enable_passive_checks = false | ||
| template Service "external-service" { | ||
| enable_perfdata = false | ||
|
|
||
| check_command = "dummy" | ||
| } | ||
| check_interval = 3m | ||
|
|
||
| template Service "generic-service" { | ||
| max_check_attempts = 5 | ||
| check_interval = 1m | ||
| retry_interval = 30s | ||
| vars.managed_by = "bridge.localhost" | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.