Grok exporter - Prometheus connection

1,064 views
Skip to first unread message

ruchika....@gmail.com

unread,
Jul 11, 2018, 5:34:38 PM7/11/18
to Prometheus Users
Hello All,

I am running some performance run on storage drive using fio and want to montior the log files and want to create some real time graphs.
I have used grok exporter for the log files and generated metrics, and now I need to grap the metrics using prometheus and show the graphs in graphana.

The problem is I am not able to make the connection of grok exporter and prometheus. I am not finding any way to do that.

Please suggest how to do that.

I have followed the link (https://github.com/fstab/grok_exporter) to generate the config file of grok exporter and  command (./grok_exporter -config ./example/config.yml )
 is running successfully.

Please help me with next steps of grok exporter to prometheus.

Regards,
Ruchika




Simon Pasquier

unread,
Jul 12, 2018, 3:57:24 AM7/12/18
to ruchika....@gmail.com, Prometheus Users
You need to configure Prometheus to scrape (pull) metrics from your exporter. Assuming that the exporter runs on port 9144, you can add something like this to your Prometheus configuration file (replacing grok.example.com by the actual address of the machine running the exporter):

scrape_configs:
  - job_name: 'grok'
    static_configs:
      - targets: ['grok.example.com:9144']



--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9a6b62ad-fac2-4967-a8e6-ae4470edf99c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sumits...@gmail.com

unread,
Apr 29, 2019, 5:55:14 AM4/29/19
to Prometheus Users
Hi Ruchika,

Could you please send me sample config file and pattern file for FIO when used with grok exporter?

Any help would be appreciated.

Regards,
Sumit
Reply all
Reply to author
Forward
0 new messages