Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
telegraf-nftables
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Due to inactivity, this project is scheduled to be deleted on 2035-04-24.
Why is this scheduled?
Show more breadcrumbs
vqgroup
telegraf-nftables
Commits
c9f8308f
Commit
c9f8308f
authored
8 years ago
by
Daniel Nelson
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update filtering documentation (#2631)
parent
5ffc9fd3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/CONFIGURATION.md
+34
-25
34 additions, 25 deletions
docs/CONFIGURATION.md
with
34 additions
and
25 deletions
docs/CONFIGURATION.md
+
34
−
25
View file @
c9f8308f
...
...
@@ -124,31 +124,40 @@ is not specified then processor execution order will be random.
Filters can be configured per input, output, processor, or aggregator,
see below for examples.
*
**namepass**
: An array of strings that is used to filter metrics generated by the
current input. Each string in the array is tested as a glob match against
measurement names and if it matches, the field is emitted.
*
**namedrop**
: The inverse of pass, if a measurement name matches, it is not emitted.
*
**fieldpass**
: An array of strings that is used to filter metrics generated by the
current input. Each string in the array is tested as a glob match against field names
and if it matches, the field is emitted. fieldpass is not available for outputs.
*
**fielddrop**
: The inverse of pass, if a field name matches, it is not emitted.
fielddrop is not available for outputs.
*
**tagpass**
: tag names and arrays of strings that are used to filter
measurements by the current input. Each string in the array is tested as a glob
match against the tag name, and if it matches the measurement is emitted.
*
**tagdrop**
: The inverse of tagpass. If a tag matches, the measurement is not
emitted. This is tested on measurements that have passed the tagpass test.
*
**tagexclude**
: tagexclude can be used to exclude a tag from measurement(s).
As opposed to tagdrop, which will drop an entire measurement based on it's
tags, tagexclude simply strips the given tag keys from the measurement. This
can be used on inputs & outputs, but it is _recommended_ to be used on inputs,
as it is more efficient to filter out tags at the ingestion point.
*
**taginclude**
: taginclude is the inverse of tagexclude. It will only include
the tag keys in the final measurement.
**NOTE**
`tagpass`
and
`tagdrop`
parameters must be defined at the _end_ of
the plugin definition, otherwise subsequent plugin config options will be
interpreted as part of the tagpass/tagdrop map.
*
**namepass**
:
An array of glob pattern strings. Only points whose measurement name matches
a pattern in this list are emitted.
*
**namedrop**
:
The inverse of
`namepass`
. If a match is found the point is discarded. This
is tested on points after they have passed the
`namepass`
test.
*
**fieldpass**
:
An array of glob pattern strings. Only fields whose field key matches a
pattern in this list are emitted. Not available for outputs.
*
**fielddrop**
:
The inverse of
`fieldpass`
. Fields with a field key matching one of the
patterns will be discarded from the point. Not available for outputs.
*
**tagpass**
:
A table mapping tag keys to arrays of glob pattern strings. Only points
that contain a tag key in the table and a tag value matching one of its
patterns is emitted.
*
**tagdrop**
:
The inverse of
`tagpass`
. If a match is found the point is discarded. This
is tested on points after they have passed the
`tagpass`
test.
*
**taginclude**
:
An array of glob pattern strings. Only tags with a tag key matching one of
the patterns are emitted. In contrast to
`tagpass`
, which will pass an entire
point based on its tag,
`taginclude`
removes all non matching tags from the
point. This filter can be used on both inputs & outputs, but it is
_recommended_
to be used on inputs, as it is more efficient to filter out tags
at the ingestion point.
*
**tagexclude**
:
The inverse of
`taginclude`
. Tags with a tag key matching one of the patterns
will be discarded from the point.
**NOTE**
Due to the way TOML is parsed,
`tagpass`
and
`tagdrop`
parameters
must be defined at the _end_ of the plugin definition, otherwise subsequent
plugin config options will be interpreted as part of the tagpass/tagdrop
tables.
#### Input Configuration Examples
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment