Hello,
I need to display the state of the graylog server cluster and show where the leader is among its hosts but I haven’t found the necessary metrics.
(I use grafana and prometheus)
Hello,
I need to display the state of the graylog server cluster and show where the leader is among its hosts but I haven’t found the necessary metrics.
(I use grafana and prometheus)
Hey @KhouloudNasri
you can enable prometheus in Graylog’s config file as shown here.
https://go2docs.graylog.org/5-0/interacting_with_your_log_data/metrics.html
Hi @gsmith,
That’s exactly what I did, but I didn’t get any metrics that give the state of the cluster and host if it’s master or not, I’m trying to find out if those metrics really exist.
Hey @KhouloudNasri
Can you show your configuration? You should be able to use port 9833 or 9090 in your browser.
hello,
I try to use this : prometheus_exporter_mapping_file_path_core = /etc/graylog/server/prometheus-exporter-mapping-core.yml to show more metrics but the metrics I want aren’t displayed yet.
Hey @KhouloudNasri
In my notes I installed prometheus.
Using this documentation here
Locate this file prometheus.yml
Example:
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
# - "first.rules"
# - "second.rules"
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']
Then I just configured two lines
prometheus_exporter_enabled = true
&&
prometheus_exporter_bind_address = localhost:9090
I was able to reash Prometheus dashboard
http://localhost:9090
Hope that helps
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.