search
数据采集 采集源配置 BitBucket 监控指标采集

BitBucket 监控指标采集

简介

采集 bitbucket 指标上报到 DataFlux 中

前置条件

配置

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

设置:

[[inputs.jolokia2_agent]]
  urls = ["http://localhost:8778/jolokia"]
  name_prefix = "bitbucket."

  [[inputs.jolokia2_agent.metric]]
    name  = "jvm_operatingsystem"
    mbean = "java.lang:type=OperatingSystem"

  [[inputs.jolokia2_agent.metric]]
    name  = "jvm_runtime"
    mbean = "java.lang:type=Runtime"

  [[inputs.jolokia2_agent.metric]]
    name  = "jvm_thread"
    mbean = "java.lang:type=Threading"

  [[inputs.jolokia2_agent.metric]]
    name  = "jvm_memory"
    mbean = "java.lang:type=Memory"

  [[inputs.jolokia2_agent.metric]]
    name  = "jvm_class_loading"
    mbean = "java.lang:type=ClassLoading"

  [[inputs.jolokia2_agent.metric]]
    name  = "jvm_memory_pool"
    mbean = "java.lang:type=MemoryPool,name=*"

  [[inputs.jolokia2_agent.metric]]
    name  = "webhooks"
    mbean = "com.atlassian.webhooks:name=*"

  [[inputs.jolokia2_agent.metric]]
    name  = "atlassian"
    mbean = "com.atlassian.bitbucket:name=*"

  [[inputs.jolokia2_agent.metric]]
    name  = "thread_pools"
    mbean = "com.atlassian.bitbucket.thread-pools:name=*"

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