Skip to content

bug: enabling CODER_PROMETHEUS_COLLECT_AGENT_STATS cause metrics server to return 500 #11948

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

Closed
liorb-canva opened this issue Jan 31, 2024 · 2 comments

Comments

@liorb-canva
Copy link

We have a setup of the coder control plane together with a metric collector sidecar in ECS (2 containers in the same task)
metrics are exposed to the local port. (2112) and the collector listens to http://localhost:2112/metrics to scrape the metrics and send them to our metrics repository (datadog in our case)
when I enabled Prometheus metrics using CODER_PROMETHEUS_ENABLE everything worked just fine and all the metrics arrived to our metrics repository.
but when I enabled the option to get agent stats metrics using CODER_PROMETHEUS_COLLECT_AGENT_STATS we start getting 500 from http://localhost:2112/metrics

Is there an additional configuration that needs to be changed to make that work?

@cdr-bot cdr-bot bot added the bug label Jan 31, 2024
@johnstcn
Copy link
Member

johnstcn commented Jan 31, 2024

@liorb-canva does this issue look similar? If so, it should be fixed by fdd60d which is in 2.7.0.

@mtojek
Copy link
Member

mtojek commented Feb 29, 2024

Resolving for now.

@mtojek mtojek closed this as not planned Won't fix, can't repro, duplicate, stale Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants