search
数据采集 采集源配置 kibana 指标采集

kibana 指标采集

简介

通过 Kibana API 采集 kibana 服务状态, 上报到 DataFlux 中

前置条件

配置

进入 DataKit 安装目录下的 conf.d/kibana 目录,复制 kibana.conf.sample 并命名为 kibana.conf。示例如下:

设置:

[[inputs.kibana]]
  ## Specify a list of one or more Kibana servers
  servers = ["http://localhost:5601"]

  ## Timeout for HTTP requests
  timeout = "5s"

  ## HTTP Basic Auth credentials
  # username = "username"
  # password = "pa$$word"

  ## Optional TLS Config
  # tls_ca = "/etc/telegraf/ca.pem"
  # tls_cert = "/etc/telegraf/cert.pem"
  # tls_key = "/etc/telegraf/key.pem"
  ## Use TLS but skip chain & host verification
  # insecure_skip_verify = false

配置好后,重启 DataKit 即可生效

采集指标

  • fields:
名称 描述 类型
status_code green=1 yellow=2 red=3 unknown=0 integer
heap_total_bytes integer
heap_used_bytes integer
uptime_ms integer
response_time_avg_ms float
response_time_max_ms integer
concurrent_connections integer
requests_per_sec float
  • tags:
名称 描述
name Kibana reported name
source Kibana server hostname or IP
status Kibana health: green, yellow, red
version Kibana version