Created
June 20, 2019 04:21
-
-
Save longtian/7c007a0a6cace3f3867758bfc0b93f8f to your computer and use it in GitHub Desktop.
基于 Telegraf 的 Druid 指标监控
This file contains hidden or 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
[[inputs.http_listener_v2]] | |
service_address = "0.0.0.0:3000" | |
data_format = "json" | |
tag_keys = [ | |
"host", | |
"service", | |
"dataSource", | |
"type", | |
"remoteAddress", | |
"status", | |
"segment", | |
"taskType", | |
"taskStatus", | |
"tier", | |
"poolName", | |
"poolKind", | |
"bufferPoolName", | |
"memKind", | |
"gcName", | |
"serviceName" | |
] | |
name_prefix = "druid/" | |
json_name_key = "metric" | |
json_time_key = "timestamp" | |
json_time_format = "2006-01-02T15:04:05Z07:00" | |
[[outputs.influxdb]] | |
namepass = ["druid*"] | |
urls = ["http://192.168.6.81:8086"] | |
database = "druid" | |
[[processors.strings]] | |
namepass = ["druid*"] | |
[[processors.strings.replace]] | |
measurement = "*" | |
old = "/" | |
new = "." |
This file contains hidden or 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
#监控 | |
druid.monitoring.emissionPeriod=PT10s | |
druid.monitoring.monitors=["com.metamx.metrics.JvmMonitor"] | |
druid.emitter=http | |
druid.emitter.http.flushMillis=10000 | |
druid.emitter.http.recipientBaseUrl=http://192.168.6.83:3000/telegraf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment