Skip to content

Instantly share code, notes, and snippets.

View jleloup's full-sized avatar

Julien Leloup jleloup

View GitHub Profile
@jleloup
jleloup / gist:cc371d34a98096d0f66fc8fa0929db24
Created November 3, 2025 16:53
Terraform test mocks on datadog_teams
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"
#!/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