Skip to content
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

Use the same password for /metrics in ECS tasks for both prod and dev #187

Open
LDiazN opened this issue Feb 18, 2025 · 0 comments
Open
Assignees
Labels
enhancement New feature request or improvement to existing functionality

Comments

@LDiazN
Copy link
Contributor

LDiazN commented Feb 18, 2025

We can monitor ECS tasks with a Prometheus thanks to this scraping config, but unfortunately we need a different job for both prod and dev because of the basic auth section, the password is different in dev and prod.

In order to scrape metrics for both prod and dev, we would have to create a different job for each environment, duplicating a lot of code

So a possible solution would be to use the same password for both prod and dev (see #186 (comment))

The final result should:

  • have a single job block with all the required settings to scrape ECS tasks, both from prod and dev
  • allow differentiating the environment with a Prometheus label (environment = dev for example)
@LDiazN LDiazN added the enhancement New feature request or improvement to existing functionality label Feb 18, 2025
@LDiazN LDiazN self-assigned this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request or improvement to existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant