Skip to content

Instantly share code, notes, and snippets.

@longtian
Created June 20, 2019 04:21
Show Gist options
  • Save longtian/7c007a0a6cace3f3867758bfc0b93f8f to your computer and use it in GitHub Desktop.
Save longtian/7c007a0a6cace3f3867758bfc0b93f8f to your computer and use it in GitHub Desktop.
基于 Telegraf 的 Druid 指标监控
[[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 = "."
#监控
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