-
Notifications
You must be signed in to change notification settings - Fork 458
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
prometheusOperator: true add, then delete scrape config continously #2218
Comments
@pasztorl could you please add your prometheus configuration yaml and crd. Thanks. |
Hi, I set two things related to this: Operator chart:
The operator can find prometheus, because when it was not set properly I got different error messages. On tenant:
Prometheus installed with kube-prometheus-stack chart. |
Now I do a retry, now I got this message from the operator:
Which is true, because I use additional scrape config so the prometheus-prometheus-scrape-confg secret exists in the monitoring ns. My scape config looks like this:
|
could you please check if the secret is being created? |
I've deleted my own scrape config secret then I restarted the minio operator. I've not found minio-prom-additional-scrape-config secret on any ns. |
please share your full tenant yaml as well as your operator . |
also please share the full operator logs after restart |
I've attached the tenant and the operator deployment |
I've set the prometheusOperator: false. Restarted the operator, then after the restart I switched back to true. Here is the log. |
you need to remove the |
Actually I using this AdditionalScrapeConfigs to monitor nodes that have node-exporter but not a node within the k8s cluster, so this is why I need the AdditionalScrapeConfigs. |
Right now it can only point to one secret, and minio needs that one I mentioned to work. and the key also has to be the same. To fix your case, rename your secret with your custom config to the one I mentioned. MinIO operator will be happy seeing that the name is the one it looks for and it will append the minio scrape config it needs. |
Hi @pasztorl, I am using ScrapeConfig CR to add scrape config.
I think creating ScrapeConfig CR is a better and neater way to add scrape config, instead of using MinIO operator to modify Prometheus CR, which could be managed by Helm/Terraform. Here is my ScrapeConfig CR: apiVersion: monitoring.coreos.com/v1alpha1
kind: ScrapeConfig
metadata:
name: minio-scrapeconfig
namespace: minio
labels:
release: kube-prometheus-stack
spec:
jobName: my-test-job
authorization:
credentials:
# the secret that stores the bearerToken got from `mc admin prometheus generate ALIAS`
name: minio-scrapeconfig-secret
key: bearerToken
type: Bearer
metricsPath: /minio/v2/metrics/cluster
scheme: HTTPS
tlsConfig:
ca:
secret:
name: my-minio-tls
key: public.crt
staticConfigs:
- targets:
- minio.minio.svc.cluster.local:443 |
I've added prometheusOperator: true to a tenant config then i just see this in the logs:
How can I debug the problem?
The text was updated successfully, but these errors were encountered: