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

Stack monitoring doesn't work with a resource monitored with a custom certificate without a CA #5309

Closed
thbkrkr opened this issue Jan 31, 2022 · 0 comments · Fixed by #5310
Closed
Labels
>bug Something isn't working v2.0.0

Comments

@thbkrkr
Copy link
Contributor

thbkrkr commented Jan 31, 2022

Stack Monitoring incorrectly assumes that if the monitored Elastic resource has TLS enabled, there is a CA to configure in the input section of the Metricbeat config. This overlooks that you can have a certificate issued by a well-known CA, so you don't always provide a CA when TLS is enabled. This makes Stack Monitoring impossible to use with a custom certificate without a CA.

Symptom: Metricbeat is in a boot loop due to an invalid configuration.

2022-01-31T23:09:16.106Z ERROR [kibana.stats] stats/stats.go:79 1 error: open 
/mnt/elastic-internal/kb-monitoring/<es-namespace>/<es-name>/certs/ca.crt: 
no such file or directory reading <nil> accessing config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v2.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant