-
Notifications
You must be signed in to change notification settings - Fork 814
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fluentd] limit
tag_by
param to a specific scope
Limit `tag_by` parameter to `plugin_id` or `type` only, to prevent empty or bad tagging. Minor cosmetic changes too.
- Loading branch information
1 parent
1496556
commit 81a72d2
Showing
2 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
init_config: | ||
|
||
instances: | ||
# For every instance, you have an `monitor_agent_url` | ||
# Use fluend 'plugin_id' as a tag. | ||
# You need to specify plugin id in fluentd configuration file. | ||
- monitor_agent_url: http://example.com:24220/api/plugins.json | ||
tag_by: plugin_id | ||
# Use fluend plugin 'type' as a tag. | ||
- monitor_agent_url: http://example.org:24220/api/plugins.json | ||
tag_by: type | ||
# For backward compatibilty, you can specify plugin_ids that are used as tags. | ||
# Every instance requires a `monitor_agent_url` | ||
# Optional, set `plugin_ids` to monitor a specific scope of plugins. | ||
- monitor_agent_url: http://example.com:24220/api/plugins.json | ||
plugin_ids: | ||
- plg1 | ||
- plg2 | ||
# Optional, set 'tag_by' to specify how to tag metrics. By default, metrics are tagged with `plugin_id` | ||
- monitor_agent_url: http://example.com:24220/api/plugins.json | ||
tag_by: type | ||
|