Closed kevinCodeSavvy closed 4 years ago
Okay I have made some adjustments to the prometheus.yml file by specifying as shown:
- job_name: 'elasticsearch'
scrape_interval: 15s
metrics_path: '/_prometheus/metrics'
scheme: https
tls_config:
ca_file: /etc/certs/ca.crt
insecure_skip_verify: true
static_configs:
- targets: ['x.x.x.x:9200']
Still no joy unfortunately
Okay I have finally got it to work and hope this helps someone else in the future.
I changed the prometheus.yml file to:
- job_name: 'elasticsearch'
scrape_interval: 15s
metrics_path: '/_prometheus/metrics'
scheme: https
tls_config:
insecure_skip_verify: true
basic_auth:
username: 'elasticsearch_username'
password: 'elasticsearch-password'
static_configs:
- targets: ['x.x.x.x:9200']
Hi All,
Hoping someone could help me!
I am trying to monitor ELk with elastic-exporter following this git repository: https://github.com/vvanholl/elasticsearch-prometheus-exporter
However, I get this issue where my prometheus console is showing:
I can curl the endpoint within the prometheus server itself which works fine as shown:
When i put this into my browser: http://10.52.218.20:9200/_prometheus/metrics , the page is not served but when I put this instead https://10.52.218.20:9200/_prometheus/metrics then the page is served. So would this mean that the prometheus endpoint needs to be changed with a https instead of http ?
My promethues.yml file is configured as:
Not sure what the issue is. Help would be much appreciated. Thanks.