Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Authorization issue #28

Open
hvv19890828 opened this issue Dec 6, 2022 · 0 comments
Open

Authorization issue #28

hvv19890828 opened this issue Dec 6, 2022 · 0 comments

Comments

@hvv19890828
Copy link

hvv19890828 commented Dec 6, 2022

I had to add this exporter not as a side-car, but as a separate deployment(unfortunately this was a requirement).

We've deployed EMQX as a "EMQX Kubernetes Operator"

My deployment configuration:

image: nuvo/emq_exporter:v0.5.1
  - args:
     - -emq.uri=http://emqx-0.emqx-svc-headless.core.svc.cluster.local:8081
     - -emq.node=emqx@emqx-0.emqx-svc-headless.core.svc.cluster.local
     - -emq.api-version=v4
  • credentials are injected as env vars through the secret, that is automatically created by kubernetes operator

ISSUE: The exporter container log says:

{"level":"warn","time":1670324415,"caller":"/home/travis/gopath/src/github.com/nuvo/emq_exporter/emq_exporter.go:76","message":"Received status code not ok http://emqx-0.emqx-svc-headless.core.svc.cluster.local:8081/api/v4/nodes/emqx@emqx-0.emqx-svc-headless.core.svc.cluster.local/metrics/, got 401"}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant