-
Notifications
You must be signed in to change notification settings - Fork 461
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
Prometheus scrape config has the wrong format #990
Comments
@dvaldivia @kanagarajkm Hi. Maybe you can take a look as this currently prevents prometheus from starting at all (Crashloop) |
WolfspiritM
added a commit
to WolfspiritM/operator
that referenced
this issue
Jan 28, 2022
dvaldivia
pushed a commit
that referenced
this issue
Jan 28, 2022
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Jan 30, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Jan 30, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Jan 30, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Jan 30, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Jan 30, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Jan 30, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Feb 1, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Feb 1, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Feb 1, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Feb 1, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Feb 1, 2022
continuation of an issue seen in minio#990
harshavardhana
added a commit
to harshavardhana/operator
that referenced
this issue
Feb 1, 2022
continuation of an issue seen in minio#990
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the prometheus operator configuration then the scrape config gets created in the wrong format.
The content of the secret "minio-prom-additional-scrape-config" is:
Expected Behavior
The correct format should be used. (e.g. bearer_token instead of BearerToken)
Current Behavior
Prometheus fails to start cause the scrape config is wrong.
Possible Solution
I think I found the reason.
operator/pkg/controller/cluster/main-controller.go
Line 32 in 86ec304
yaml.Marshal is from "sigs.k8s.io/yaml" which doesn't respect the struct tags!
https://go.dev/play/p/3byqOcao1je
While the "gopkg.in/yaml.v2" version does:
https://go.dev/play/p/iJyWgTr8gZa
The PR that broke it is:
#986
Steps to Reproduce (for bugs)
Context
Prometheus stopped working completly
Regression
No
Your Environment
minio-operator
): 4.4.4uname -a
): UbuntuThe text was updated successfully, but these errors were encountered: