Socket
Book a DemoInstallSign in
Socket

fluent-plugin-elasticsearch-stats

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluent-plugin-elasticsearch-stats

bundlerRubygems
Version
0.6.0
Version published
Maintainers
1
Created
Source

fluent-plugin-elasticsearch-stats

Fluentd input plugin to fetch stats on elasticsearch.

It uses the elasticsearch following endpoints:

  • Cluster Heath through /_cluster/health?level=indices
  • Cluster Stats through /_cluster/stats
  • Node Stats through /_nodes/stats or /_nodes/_local/stats
  • Indices Stats through /_all/_stats
  • Shard Stats through /_all/_stats?level=shards
  • Dangling through /_dangling

plugins

in - elasticsearch-stats

Fetch stats with elasticsearch, and convert stats to metrics.

Example of config

<source>
  @type elasticsearch_stats

  tag elastic.metrics

  cluster_health true
  cluster_stats false
  nodes_stats false
</source>

global options

settingtypedefaultdescription
tagelasticsearch_statstag to emit events on
urls["http://localhost:9200"]list of urls to poll
timeoutsecond10timeout for each call
usernameusername for basic authentication
passwordpassword for basic authentication
user_agentfluent-plugin-elasticsearch-statsuser agent for http request
ca_filefileCA cert file to use for request
verify_sslbooltrueoption to verify certificate/host
intervalsecond300interval for probe execution
metric_prefixprefix for metric fields
metadata_prefixprefix for metadata fields
timestamp_formatiso|epochmillisisoevent timestamp format
event_name_separator/event name separator
index_base_patternregexpbase index pattern to generate aggregated index metrics
index_base_replacementregexp replacement\1base index pattern replacement to generate aggregated index metrics
aggregated_index_metrics_onlyboolfalsefor index matrics, only generate aggregated metrics
aggregated_index_metricsarray[sum]select in [avg, count, min, max, sum]

cluster health options

Events from /_cluster/health?level=indices.

settingtypedefaultdescription
cluster_healthtrue|falsetrueenable cluster health events collect
cluster_health_levelcluster|indicesclusterdetails level of the health information
cluster_health_localtrue|falsefalseretrieves information from the local node only

cluster stats options

Events from /_cluster/stats.

settingtypedefaultdescription
cluster_statstrue|falsefalseenable cluster stats events collect

nodes stats options

Events from /_nodes/stats.

settingtypedefaultdescription
nodes_statstrue|falsetrueenable node stats events collect
nodes_stats_levelnode|indicesnodedetails level for the nodes stats
nodes_stats_metricsindices, os, process, jvm, thread_pool, fs, transport, http, breaker[]

indices stats options

Events from /_all/_stats.

settingtypedefaultdescription
indices_statstrue|falsetrueenable indices stats events collect
indices_stats_levelcluster|indices|shardsindicesindices_stats details level
indices["_all"]indices to collect stats on
indices_stats_metricscompletion,docs,store,...[]

dangling options

Events from /_dangling.

settingtypedefaultdescription
danglingtrue|falsefalseenable dangling events collect

status mapping

Here is the chosen status mapping to metric :

statusvalue
green0
yellow1
red2

So through aggregation, it is still possible to identify status in time (green or not-green).

Installation

Manual install, by executing:

$ gem install fluent-plugin-elasticsearch-stats

Add to Gemfile with:

$ bundle add fluent-plugin-elasticsearch-stats
  • Copyright(c) 2024- Thomas Tych
  • License
    • Apache License, Version 2.0

FAQs

Package last updated on 31 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts