Test the ecs-discovery.py script in the CI
@LDiazN is already working on this.
Since Feb 18, 2025.
- Dominant language
- HCL
- Stars
- 4
- Forks
- 15
- Avg merge
- 1h 50m
- Merged PRs (30d)
- 4
Description
The ecs-discovery.py script introduced in https://github.com/ooni/devops/pull/186 allows ECS tasks discovery and it's called periodically with a cronjob in the monitoring host to collect tasks details (EC2 host with private IP, running port) that are used for file-based discovery of scrape targets in Prometheus.
This script is quite long and a bit complex, so it's a good idea to add some testing for it, see https://github.com/ooni/devops/pull/186#discussion_r1959487649
As a result, the CI should be able to check if this script is able to write the right json and that it has the right format for Prometheus
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.