Skip to content

Instantly share code, notes, and snippets.

@adam-hert
Created April 18, 2018 14:06
Show Gist options
  • Save adam-hert/9d88603dde96a12b5b33123176f85e44 to your computer and use it in GitHub Desktop.
Save adam-hert/9d88603dde96a12b5b33123176f85e44 to your computer and use it in GitHub Desktop.
AppOptics Elasticsearch

linux platforms:

task yaml file goes here -> /opt/appoptics/etc/tasks.d/task-elasticsearch.yaml Plugin yaml goes here -> /opt/appoptics/etc/plugins.d/elasticsearch.yaml

Can download plugin binary from here: https://github.com/intelsdi-x/snap-plugin-collector-elasticsearch/releases Put it in this location, with the same name -> /opt/appoptics/bin/snap-plugin-collector-elasticsearch

collector:
elasticsearch:
all:
server: "127.0.0.1"
port: 9200
load:
plugin: snap-plugin-collector-elasticsearch
task: task-elasticsearch.yaml
---
version: 1
schedule:
type: "simple"
interval: "1s"
max-failures: 10
workflow:
collect:
metrics:
/intel/elasticsearch/node/*/transport/rx_count: {}
/intel/elasticsearch/node/*/transport/tx_size_in_bytes: {}
/intel/elasticsearch/node/*/timestamp: {}
/intel/elasticsearch/node/*/host: {}
/intel/elasticsearch/node/*/indices/merges/total_throttled_time_in_millis: {}
/intel/elasticsearch/node/*/jvm/classes/total_loaded_count: {}
/intel/elasticsearch/node/*/os/mem/total_in_bytes: {}
/intel/elasticsearch/cluster/status: {}
publish:
- plugin_name: publisher-appoptics
config:
period: 60
floor_seconds: 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment