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
| tests/validate_datadog_oncall_schedule.tftest.hcl... in progress | |
| run "validate_oncall_schedule_with_all"... fail | |
| ╷ | |
| │ Error: Invalid index | |
| │ | |
| │ on main.tf line 3, in locals: | |
| │ 3: team_id = [for team in data.datadog_teams.oncall.teams : team.id if team.handle == lower(var.team_name)][0] | |
| │ ├──────────────── | |
| │ │ data.datadog_teams.oncall.teams is empty list of object | |
| │ │ var.team_name is "fake-team" |
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
| #!/usr/bin/env python | |
| """ Script to concurrently send HTTP requests to a given HTP/S service | |
| Usefull to test Kubernetes ingress controller monitoring on HTTP queries, | |
| like alerts based on the ration of 503 or dashboards based on the RED method. | |
| Example setup: | |
| - A Kubernetes cluster deployed with an Ingress Controller monitored through Prometheus | |
| - a test pod based https://httpbin.org/#/ declared with an ingress | |
| - your own laptop with this script to send queries to the test pod through the ingress controller |