-
Notifications
You must be signed in to change notification settings - Fork 460
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
Change prometheus config from additional scrape config to probe #2067
Comments
We have manually created a probe to confirm this works: spec:
authorization:
credentials:
key: token
name: token-secret
type: Bearer
jobName: minio-tenant-test-job
prober:
path: /minio/v2/metrics/cluster
scheme: https
url: minio.test.svc.cluster.local
targets:
staticConfig:
static:
- minio.test.svc.cluster.local
tlsConfig:
ca:
configMap:
key: ca.crt
name: kube-root-ca.crt If this is something that people agree is a good idea I could look at creating a PR for this. It would need the ability to add arbitrary labels to the probe incase there is a probeSelector on the prometheus |
+1 minio tries to modify stuff in my prometheus namespace which is obviously not exclusive for minio.
|
@dbason I wonder if this could also just be part of the tenant helm chart. is there a reason for the operator to manage this object? |
ah ok I forget about the token, which the operator injects into the scrape config. The token is apparently generated once (and updated when credentials change) with a validity of a hundred years using the root username as the subject and the root password as the secret for the HS512 algorithm, so that can easily be generated manually by running I think solving this issue would probably also resolve #1955 or at least make it simpler to fix. |
Is your feature request related to a problem? Please describe.
Our infrastructure is handled with GitOps and as such our Prometheus object is statically defined. Modifying a global object breaks this pattern.
Describe the solution you'd like
Rather than using additional scrape configs would a Probe be an option? This should handle the single endpoint nature of cluster metrics. It might also be nice to include a ServiceMonitor for scraping node metrics
Describe alternatives you've considered
We have considered bootstrapping the minio additional scrape config however this would be an anti pattern as the secret and naming is minio specific for a global object
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: