Adjust heading level in the filtering examples to allow linking
This commit is contained in:
parent
03819ba9ec
commit
3380471e18
|
@ -454,9 +454,9 @@ The inverse of `taginclude`. Tags with a tag key matching one of the patterns
|
||||||
will be discarded from the metric. Any tag can be filtered including global
|
will be discarded from the metric. Any tag can be filtered including global
|
||||||
tags and the agent `host` tag.
|
tags and the agent `host` tag.
|
||||||
|
|
||||||
##### Filtering Examples
|
#### Filtering Examples
|
||||||
|
|
||||||
Using tagpass and tagdrop:
|
##### Using tagpass and tagdrop:
|
||||||
```toml
|
```toml
|
||||||
[[inputs.cpu]]
|
[[inputs.cpu]]
|
||||||
percpu = true
|
percpu = true
|
||||||
|
@ -489,7 +489,7 @@ Using tagpass and tagdrop:
|
||||||
instance = ["isatap*", "Local*"]
|
instance = ["isatap*", "Local*"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Using fieldpass and fielddrop:
|
##### Using fieldpass and fielddrop:
|
||||||
```toml
|
```toml
|
||||||
# Drop all metrics for guest & steal CPU usage
|
# Drop all metrics for guest & steal CPU usage
|
||||||
[[inputs.cpu]]
|
[[inputs.cpu]]
|
||||||
|
@ -502,7 +502,7 @@ Using fieldpass and fielddrop:
|
||||||
fieldpass = ["inodes*"]
|
fieldpass = ["inodes*"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Using namepass and namedrop:
|
##### Using namepass and namedrop:
|
||||||
```toml
|
```toml
|
||||||
# Drop all metrics about containers for kubelet
|
# Drop all metrics about containers for kubelet
|
||||||
[[inputs.prometheus]]
|
[[inputs.prometheus]]
|
||||||
|
@ -515,7 +515,7 @@ Using namepass and namedrop:
|
||||||
namepass = ["rest_client_*"]
|
namepass = ["rest_client_*"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Using taginclude and tagexclude:
|
##### Using taginclude and tagexclude:
|
||||||
```toml
|
```toml
|
||||||
# Only include the "cpu" tag in the measurements for the cpu plugin.
|
# Only include the "cpu" tag in the measurements for the cpu plugin.
|
||||||
[[inputs.cpu]]
|
[[inputs.cpu]]
|
||||||
|
@ -528,7 +528,7 @@ Using taginclude and tagexclude:
|
||||||
tagexclude = ["fstype"]
|
tagexclude = ["fstype"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Metrics can be routed to different outputs using the metric name and tags:
|
##### Metrics can be routed to different outputs using the metric name and tags:
|
||||||
```toml
|
```toml
|
||||||
[[outputs.influxdb]]
|
[[outputs.influxdb]]
|
||||||
urls = [ "http://localhost:8086" ]
|
urls = [ "http://localhost:8086" ]
|
||||||
|
@ -550,9 +550,11 @@ Metrics can be routed to different outputs using the metric name and tags:
|
||||||
cpu = ["cpu0"]
|
cpu = ["cpu0"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Routing metrics to different outputs based on the input. Metrics are tagged
|
##### Routing metrics to different outputs based on the input.
|
||||||
with `influxdb_database` in the input, which is then used to select the
|
|
||||||
output. The tag is removed in the outputs before writing.
|
Metrics are tagged with `influxdb_database` in the input, which is then used to
|
||||||
|
select the output. The tag is removed in the outputs before writing.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[outputs.influxdb]]
|
[[outputs.influxdb]]
|
||||||
urls = ["http://influxdb.example.com"]
|
urls = ["http://influxdb.example.com"]
|
||||||
|
|
Loading…
Reference in New Issue