////
This file is generated! See scripts/mage/docs_collector.go
////

[[metricbeat-module-consul]]
== Consul module

beta[]

This is the https://www.consul.io[Hashicorp's Consul] Metricbeat module. It is still in beta and under active development to add new Metricsets and introduce enhancements.

[float]
=== Compatibility

The module is being tested with https://github.com/hashicorp/docker-consul/blob/9bd2aa7ecf2414b8712e055f2374699148e8941c/0.X/Dockerfile[1.4.2] version

[float]
=== Dashboard

The Consul module comes with a predefined dashboard:

image::./images/metricbeat-consul.png[]


[float]
=== Example configuration

The Consul module supports the standard configuration options that are described
in <<configuration-metricbeat>>. Here is an example configuration:

[source,yaml]
----
metricbeat.modules:
- module: consul
  metricsets:
  - agent
  enabled: true
  period: 10s
  hosts: ["localhost:8500"]

----

This module supports TLS connections when using `ssl` config field, as described in <<configuration-ssl>>.
It also supports the options described in <<module-http-config-options>>.

[float]
=== Metricsets

The following metricsets are available:

* <<metricbeat-metricset-consul-agent,agent>>

include::consul/agent.asciidoc[]

