kamon-elasticsearch

Kamon Elasticsearch Integration

  • 所有者: kamon-io/kamon-elasticsearch
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Elasticsearch Integration Build Status

Gitter
Maven Central

The kamon-elasticsearch module brings bytecode instrumentation to trace elasticsearch requests

The bytecode instrumentation provided by the kamon-elasticsearch module hooks into Elasticsearch's internals to automatically
start and finish segments for requests that are issued within a trace. This translates into you having metrics about how
the requests you are doing are behaving.

Getting Started

Kamon Elasticsearch module is currently available for Scala 2.10, 2.11 and 2.12.

Supported releases and dependencies are shown below., kamon-elasticseach, status, jdk, scala, akka, :------:, :------:, :----:, ------------------, :------:, 0.6.7, stable, 1.7+, 1.8+, 2.10, 2.11, 2.12, 2.3.x, 2.4.x, To get started with SBT, simply add the following to your build.sbt
file:

libraryDependencies += "io.kamon" %% "kamon-elasticsearch" % "0.6.7"

Metrics

The following metrics will be recorded:

  • reads: a histogram that tracks the reads requests latency (Get and Search).
  • writes: a histogram that tracks the writes requests latency (Index, Update, and Delete).
  • slows: a simple counter with the number of measured slow requests.
  • errors: a simple counter with the number of failures.

Naming Segments

By default, the name generator bundled with the kamon-elasticsearch module will use the org.elasticsearch.action.ActionRequest class name
to assign a name to the automatically generated segment (i.e GetRequest, SearchRequest, IndexRequest, etc). Currently, the only way to override
that name would be to provide your own implementation of kamon.elasticsearch.ElasticsearchNameGenerator which is used to assign the segment name

Slow Requests

Requests that take longer to execute than the configured kamon.elasticsearch.slow-query-threshold can be processed by user-defined
kamon.elasticsearch.SlowRequestProcessor. The default processor logs a warning message

Error Processor

Requests that error can be processed by user-defined kamon.elasticsearch.ElasticsearchErrorProcessor. The default processor logs an error message

Configuration

kamon {
  elasticsearch {
    slow-query-threshold = 2 seconds

    # Fully qualified name of the implementation of kamon.elasticsearch.SlowRequestProcessor.
    slow-query-processor = kamon.elasticsearch.DefaultSlowRequestProcessor

    # Fully qualified name of the implementation of kamon.elasticsearch.ElasticsearchErrorProcessor.
    elasticsearch-error-processor = kamon.elasticsearch.DefaultElasticsearchErrorProcessor

    # Fully qualified name of the implementation of kamon.elasticsearch.ElasticsearchNameGenerator that will be used for assigning names to segments.
    name-generator = kamon.elasticsearch.DefaultElasticsearchNameGenerator
  }
}

主要指标

概览
名称与所有者kamon-io/kamon-elasticsearch
主编程语言Scala
编程语言Scala (语言数: 2)
平台
许可证Other
所有者活动
创建于2016-12-03 23:06:44
推送于2017-06-13 20:33:36
最后一次提交2017-06-13 17:33:25
发布数2
最新版本名称v0.6.7 (发布于 2017-06-13 17:32:41)
第一版名称v0.6.6 (发布于 2017-02-28 22:24:38)
用户参与
星数2
关注者数3
派生数3
提交数13
已启用问题?
问题数2
打开的问题数2
拉请求数1
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?