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

es-cluster X-pack is enabled,but prmetheus need authentication #333

Open
QwQNightmare opened this issue Dec 27, 2021 · 2 comments
Open

es-cluster X-pack is enabled,but prmetheus need authentication #333

QwQNightmare opened this issue Dec 27, 2021 · 2 comments

Comments

@QwQNightmare
Copy link

I open the es-cluster X-pack,but my prometheus can't get metric from http://xxxxx:9200/_prometheus/metrics,need authentication.What do I need to configure?

@ebuildy
Copy link

ebuildy commented Dec 29, 2021

Can you use the elastic user account?

@glyslxq
Copy link

glyslxq commented Feb 22, 2022

    - job_name: ElasticSearchAuth
      scrape_interval: 100s
      scrape_timeout:  100s
      metrics_path: "/_prometheus/metrics"
      basic_auth:
        username: 'elastic'
        password: 'xxxx'
      static_configs:
      - targets:
        - esonline:9200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants