Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0e520826
Commit
0e520826
authored
Jul 06, 2017
by
Victor Sartori
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add prometheus plugin on fluentd image.
parent
7df2bce1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
build.sh
...er/addons/fluentd-elasticsearch/fluentd-es-image/build.sh
+1
-0
td-agent.conf
...dons/fluentd-elasticsearch/fluentd-es-image/td-agent.conf
+38
-0
No files found.
cluster/addons/fluentd-elasticsearch/fluentd-es-image/build.sh
View file @
0e520826
...
...
@@ -32,6 +32,7 @@ sed -i -e "s/USER=td-agent/USER=root/" -e "s/GROUP=td-agent/GROUP=root/" /etc/in
# http://docs.fluentd.org/articles/plugin-management
td-agent-gem
install
--no-document
fluent-plugin-kubernetes_metadata_filter
-v
0.27.0
td-agent-gem
install
--no-document
fluent-plugin-elasticsearch
-v
1.9.5
td-agent-gem
install
--no-document
fluent-plugin-prometheus
-v
0.3.0
# Remove docs and postgres references
rm
-rf
/opt/td-agent/embedded/share/doc
\
...
...
cluster/addons/fluentd-elasticsearch/fluentd-es-image/td-agent.conf
View file @
0e520826
...
...
@@ -283,6 +283,44 @@
type
kubernetes_metadata
</
filter
>
# Prometheus Exporter Plugin
# input plugin that exports metrics
<
source
>
type
prometheus
</
source
>
<
source
>
type
monitor_agent
</
source
>
<
source
>
type
forward
</
source
>
# input plugin that collects metrics from MonitorAgent
<
source
>
@
type
prometheus_monitor
<
labels
>
host
${
hostname
}
</
labels
>
</
source
>
# input plugin that collects metrics for output plugin
<
source
>
@
type
prometheus_output_monitor
<
labels
>
host
${
hostname
}
</
labels
>
</
source
>
# input plugin that collects metrics for in_tail plugin
<
source
>
@
type
prometheus_tail_monitor
<
labels
>
host
${
hostname
}
</
labels
>
</
source
>
<
match
**>
type
elasticsearch
log_level
info
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment