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

Helm: ServiceMonitor Endpoints specifications should be parametrised #726

Closed
geoL86 opened this issue Nov 17, 2020 · 3 comments
Closed

Helm: ServiceMonitor Endpoints specifications should be parametrised #726

geoL86 opened this issue Nov 17, 2020 · 3 comments
Labels
feature request A request for a specific feature to be added to Kuberhealthy good first issue Good for newcomers
Milestone

Comments

@geoL86
Copy link
Contributor

geoL86 commented Nov 17, 2020

Hi,

ServiceMonitor contains specifications for Endpoints with bearerTokenFile by default:

https://github.com/Comcast/kuberhealthy/blob/master/deploy/helm/kuberhealthy/templates/servicemonitor.yaml

  endpoints:
  - port: http
    interval: 15s
    bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token

For example on OpenShift 4.5 (may be and for higher versions) this leads to errors on the Prometheus Operator:

level=warn ts=2020-11-17T13:10:45.207565415Z caller=operator.go:1803 component=prometheusoperator msg="skipping servicemonitor" error="it accesses file system via bearer token file which Prometheus specification prohibits" servicemonitor=kuberhealthy/kuberhealthy namespace=openshift-user-workload-monitoring prometheus=user-workload

As result scrape configuration isn't available as well as metrics.

@joshulyne
Copy link
Collaborator

That makes sense. Thanks for pointing this out! Shouldn't be too difficult to do, and feel free to submit your own pr for this :)

@joshulyne joshulyne added feature request A request for a specific feature to be added to Kuberhealthy good first issue Good for newcomers labels Nov 18, 2020
@integrii integrii added this to the 2.3.0 milestone Nov 19, 2020
@integrii integrii added this to To Do in v2.8 Release via automation Nov 19, 2020
@integrii integrii modified the milestones: 2.3.0, 2.4.0 Nov 19, 2020
@geoL86
Copy link
Contributor Author

geoL86 commented Nov 20, 2020

@joshulyne added pr: #731

@joshulyne
Copy link
Collaborator

Pr #731 merged!

@integrii integrii moved this from To Do to Done in v2.8 Release Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request for a specific feature to be added to Kuberhealthy good first issue Good for newcomers
Projects
v2.8 Release
  
Done
Development

No branches or pull requests

3 participants