Skip to content

Commit 0df955f

Browse files
author
kaiyan-sheng
authored
Document autodiscover dedot option (#10938)
* Document autodiscover dedot option
1 parent 0acee7c commit 0df955f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

filebeat/docs/autodiscover-docker-config.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Filebeat supports templates for inputs and modules.
55
filebeat.autodiscover:
66
providers:
77
- type: docker
8+
labels.dedot: true
89
templates:
910
- condition:
1011
contains:
@@ -17,6 +18,7 @@ filebeat.autodiscover:
1718
-------------------------------------------------------------------------------------
1819
1920
This configuration launches a `docker` logs input for all containers running an image with `redis` in the name.
21+
`labels.dedot` defaults to be `true` for docker autodiscover, which means dots in docker labels are replaced with '_' by default.
2022

2123
If you are using modules, you can override the default input and use the docker input instead.
2224

@@ -25,6 +27,7 @@ If you are using modules, you can override the default input and use the docker
2527
filebeat.autodiscover:
2628
providers:
2729
- type: docker
30+
labels.dedot: true
2831
templates:
2932
- condition:
3033
contains:

metricbeat/docs/autodiscover-docker-config.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Metricbeat supports templates for modules:
55
metricbeat.autodiscover:
66
providers:
77
- type: docker
8+
labels.dedot: true
89
templates:
910
- condition:
1011
contains:
@@ -16,3 +17,5 @@ metricbeat.autodiscover:
1617
-------------------------------------------------------------------------------------
1718

1819
This configuration launches a `redis` module for all containers running an image with `redis` in the name.
20+
`labels.dedot` defaults to be `true` for docker autodiscover, which means dots in docker labels are replaced with '_' by default.
21+

0 commit comments

Comments
 (0)