Varnish Metrics with Metricbeat:

Hello Team,

I want to use Metricbeat, part of the Elastic Stack, to collect and monitor Varnish metrics. Metricbeat's Varnish module allows to gather information about cache hits, cache misses, cache size, and more.

How can I visualize these metrics in Kibana?

Kindly elaborate on the steps so I can implement the same.

I have tried the below steps which are not working for me as expected(kibana is not tracking varnish.

1-sudo yum install metricbeat
2-sudo systemctl start metricbeat
sudo systemctl enable metricbeat
3- sudo vi /etc/metricbeat/modules/varnish.yml

  • module: varnish
    metricsets: ["varnish"]
    enabled: true
    period: 10s
    hosts: ["http://localhost:6082"]
    4- sudo systemctl restart metricbeat


Hi Deepika,

I don't have that much knowledge but still, I will try to solve your query-

So deepika, to visualize Varnish metrics collected by Metricbeat in Kibana, you can go through these 4 steps:

Install Metricbeat: You must ensure that Metricbeat is correctly installed on your system. You've already done this with the command sudo yum install metricbeat . Confirm it's running using sudo systemctl status metricbeat .

Configure Varnish Module: Open the Varnish module configuration file with the command:

sudo vi /etc/metricbeat/modules.d/varnish.yml

Ensure your configuration file looks similar to the following (modify as needed):


- module: varnish
  metricsets: ["varnish"]
  enabled: true
  period: 10s
  hosts: ["http://localhost:6082"]

Restart Metricbeat: After editing the configuration, restart Metricbeat to apply the changes:

sudo systemctl restart metricbeat

Kibana Configuration:

Open Kibana in your web browser.
Go to the "Management" section.
Click on "Index Patterns" and create a new index pattern for Metricbeat indices. Usually, the Metricbeat indices start with metricbeat-.
Define the time field for indexing, which is typically @timestamp.


Hi RaaviKant,

Thanks for your reply.

If you look at my query, I have already done those steps but still, Kibana is not monitoring.

However, after those steps, I restarted Metricbeat and checked on Kibana(same steps that you mentioned as well) but unfortunately, Kibana is not monitoring.

Any clue?


Wait, let me look into this.

Appreciate your help!


Hello team,

any guidance on this?


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.