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

ContainerSSH Metrics are not Prometheus Compatible #537

Closed
ChristopherJMiller opened this issue Nov 8, 2022 · 3 comments
Closed

ContainerSSH Metrics are not Prometheus Compatible #537

ChristopherJMiller opened this issue Nov 8, 2022 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@ChristopherJMiller
Copy link

Describe the bug

Attempting to scrape the metrics endpoint into prometheus fails with the error:

unit not a suffix of metric "containerssh_config_server_failures"

In determining why I was receiving this error, I found that according to the metrics and labels documentation for prometheus, all metrics must end with a plural suffix of it's unit (which looks to be set by the comment to be "requests").

To Reproduce

  1. Enable metrics
  2. Set as scrape target for Prometheus

Expected behavior

Scrapes successfully

Version

0.4.1

@ChristopherJMiller ChristopherJMiller added the bug Something isn't working label Nov 8, 2022
@ChristopherJMiller
Copy link
Author

I see this was fixed in libcontainerssh here ContainerSSH/libcontainerssh#93

Is there an ETA on when a new version of ContainerSSH will be released with this fix?

@janosdebugs
Copy link
Contributor

Hello @ChristopherJMiller thank you for this bug report. The current plan is a release early Q1 next year.

@janosdebugs janosdebugs added this to the 0.5.0: SSO milestone Jan 12, 2023
@tsipinakis
Copy link
Member

Closing this as it was fixed with the release of 0.5.

tsipinakis added a commit to tsipinakis/ContainerSSH that referenced this issue May 5, 2024
)

* Fix authz webhook not being called

Signed-off-by: Nikos Tsipinakis <nikos@tsipinakis.com>

* Add codecov support for coverage reporting

Signed-off-by: Nikos Tsipinakis <nikos@tsipinakis.com>

* Unify authz configuration with the other methods

Authz webhook configuration will now be placed under the 'webhook' key
to be in line with the other authentication methods.

Signed-off-by: Nikos Tsipinakis <nikos@tsipinakis.com>

* Add authz support to testauthconfig server

Signed-off-by: Nikos Tsipinakis <nikos@tsipinakis.com>

* Test authz in integration

Signed-off-by: Nikos Tsipinakis <nikos@tsipinakis.com>

---------

Signed-off-by: Nikos Tsipinakis <nikos@tsipinakis.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants