aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprivate <ramzthecoder@gmail.com>2017-04-09 08:33:08 +1000
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-28 14:27:34 +0000
commitdad87bb8a1d43af1ece356f9ce5fd0af06a80245 (patch)
treebd598af86d97c47db0fd89168664db51d0fd1580
parent644aa623a084f600c2ccaf0634904141c1b03d6b (diff)
downloadaports-dad87bb8a1d43af1ece356f9ce5fd0af06a80245.tar.bz2
aports-dad87bb8a1d43af1ece356f9ce5fd0af06a80245.tar.xz
testing/metricbeat: new aport
MetricBeat - Lightweight shipper for system and service https://www.elastic.co/products/beats
-rw-r--r--testing/metricbeat/APKBUILD54
-rw-r--r--testing/metricbeat/metricbeat.confd2
-rw-r--r--testing/metricbeat/metricbeat.full.yml850
-rw-r--r--testing/metricbeat/metricbeat.initd42
-rw-r--r--testing/metricbeat/metricbeat.template-es2x.json3803
-rw-r--r--testing/metricbeat/metricbeat.template.json3759
-rw-r--r--testing/metricbeat/metricbeat.yml105
7 files changed, 8615 insertions, 0 deletions
diff --git a/testing/metricbeat/APKBUILD b/testing/metricbeat/APKBUILD
new file mode 100644
index 0000000000..7a176f48fe
--- /dev/null
+++ b/testing/metricbeat/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Ramanathan Sivagurunathan <ramzthecoder@gmail.com>
+# Maintainer: Ramanathan Sivagurunathan <ramzthecoder@gmail.com>
+pkgname=metricbeat
+pkgver=5.2.0
+pkgrel=0
+pkgdesc="MetricBeat - Lightweight shipper for system and service statistics"
+pkgusers="root"
+url="https://www.elastic.co/products/beats"
+arch="all"
+license="ASL 2.0"
+depends=""
+makedepends="go"
+install=""
+subpackages=""
+source="beats-${pkgver}.tar.gz::https://github.com/elastic/beats/archive/v$pkgver.tar.gz
+ metricbeat.initd
+ metricbeat.confd
+ metricbeat.yml
+ "
+builddir="$srcdir/src/github.com/elastic/beats/$pkgname"
+
+prepare() {
+ mkdir -p "$srcdir/src/github.com/elastic/"
+ mv "$srcdir/beats-${pkgver}" "$srcdir/src/github.com/elastic/beats" || return 1
+ default_prepare
+}
+
+build() {
+ cd "$builddir"
+ GOPATH="$srcdir" go build -v || return 1
+}
+
+package() {
+ cd "$builddir"
+ install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
+ install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname || return 1
+ install -Dm644 "$builddir"/metricbeat.template.json "$pkgdir/etc/$pkgname/metricbeat.template.json" || return 1
+ install -Dm644 "$builddir"/metricbeat.template-es2x.json "$pkgdir/etc/$pkgname/metricbeat.template-es2x.json" || return 1
+ install -Dm644 "$srcdir/metricbeat.yml" "$pkgdir/etc/$pkgname/metricbeat.yml" || return 1
+ install -Dm755 "$builddir/metricbeat" "$pkgdir/usr/bin/metricbeat" || return 1
+}
+
+md5sums="249efb0a727c8fd266c92d2f7dc1745d beats-5.2.0.tar.gz
+49ad02b1858c6face776153d195f147b metricbeat.initd
+2f95ba30a7a82ae7266adb1883a8a2b0 metricbeat.confd
+a3a3db3ba686ef7f6dd9339be14bb909 metricbeat.yml"
+sha256sums="b74d6c77e60dffe1d76623ef50117715219f8d81c2400b2aa90fef79d34ed564 beats-5.2.0.tar.gz
+cf55ec4028983fe2c65ddd450bcaa6b857e910306cbc66e7b83f95adfcb0c9cb metricbeat.initd
+549aed3b40ea2ca1f9cba3e26e393d30eab6a86c1284c3b3dc2a5cf1ec433590 metricbeat.confd
+772c4b28a988072e75801891a326f37e318272b2152c2f9a6986259f68c40a90 metricbeat.yml"
+sha512sums="f9af43303b3645035659d8de8a9c41c95a076b47c8d7406d6af443d59e8fb19bfc0817a3444eaa7485d9833173cdf65b5b73014aacd94f9566bdf74e10a8de63 beats-5.2.0.tar.gz
+a846db44732077c38fd0699592ad27371af75ee8a53419c79197c4e5d727e1745c5145ebefd21073304cb624c5947686626f693e87406b122892f99cebe38f5b metricbeat.initd
+91fad211c1ac8b3bb97848f1ff97f7e708cfd100b174ae1839c4dd60d501cd8b7b4e9f0f4dbb936134c4ef19595bf39c53b256990f08f003c3e88893e0c94212 metricbeat.confd
+b05e083c2ea2337cebd650f2898385ff40fb7f4fe2d7d46109cec3e960d80566129756e8a45e71ed53ec40c33539295453d363feafb60caec8747ae8d09f9124 metricbeat.yml"
diff --git a/testing/metricbeat/metricbeat.confd b/testing/metricbeat/metricbeat.confd
new file mode 100644
index 0000000000..31ab5d8581
--- /dev/null
+++ b/testing/metricbeat/metricbeat.confd
@@ -0,0 +1,2 @@
+# Metricbeat startup
+metricbeat_opts="-c /etc/metricbeat/metricbeat.yml -e"
diff --git a/testing/metricbeat/metricbeat.full.yml b/testing/metricbeat/metricbeat.full.yml
new file mode 100644
index 0000000000..a6c19bb3eb
--- /dev/null
+++ b/testing/metricbeat/metricbeat.full.yml
@@ -0,0 +1,850 @@
+########################## Metricbeat Configuration ###########################
+
+# This file is a full configuration example documenting all non-deprecated
+# options in comments. For a shorter configuration example, that contains only
+# the most common options, please see metricbeat.yml in the same directory.
+#
+# You can find the full configuration reference here:
+# https://www.elastic.co/guide/en/beats/metricbeat/index.html
+
+#========================== Modules configuration ============================
+metricbeat.modules:
+
+#------------------------------- System Module -------------------------------
+- module: system
+ metricsets:
+ # CPU stats
+ - cpu
+
+ # System Load stats
+ - load
+
+ # Per CPU core stats
+ #- core
+
+ # IO stats
+ #- diskio
+
+ # Per filesystem stats
+ - filesystem
+
+ # File system summary stats
+ - fsstat
+
+ # Memory stats
+ - memory
+
+ # Network stats
+ - network
+
+ # Per process stats
+ - process
+
+ # Sockets and connection info (linux only)
+ #- socket
+ enabled: true
+ period: 10s
+ processes: ['.*']
+
+ # if true, exports the CPU usage in ticks, together with the percentage values
+ #cpu_ticks: false
+
+ # EXPERIMENTAL: cgroups can be enabled for the process metricset.
+ #cgroups: false
+
+ # Configure reverse DNS lookup on remote IP addresses in the socket metricset.
+ #socket.reverse_lookup.enabled: false
+ #socket.reverse_lookup.success_ttl: 60s
+ #socket.reverse_lookup.failure_ttl: 60s
+
+#------------------------------- Apache Module -------------------------------
+#- module: apache
+ #metricsets: ["status"]
+ #enabled: true
+ #period: 10s
+
+ # Apache hosts
+ #hosts: ["http://127.0.0.1"]
+
+ # Path to server status. Default server-status
+ #server_status_path: "server-status"
+
+ # Username of hosts. Empty by default
+ #username: test
+
+ # Password of hosts. Empty by default
+ #password: test123
+
+#------------------------------ couchbase Module -----------------------------
+#- module: couchbase
+ #metricsets: ["cluster", "node", "bucket"]
+ #enabled: true
+ #period: 10s
+ #hosts: ["localhost:8091"]
+
+#------------------------------- Docker Module -------------------------------
+#- module: docker
+ #metricsets: ["cpu", "info", "memory", "network", "diskio", "container"]
+ #hosts: ["unix:///var/run/docker.sock"]
+ #enabled: true
+ #period: 10s
+
+ # To connect to Docker over TLS you must specify a client and CA certificate.
+ #ssl:
+ #certificate_authority: "/etc/pki/root/ca.pem"
+ #certificate: "/etc/pki/client/cert.pem"
+ #key: "/etc/pki/client/cert.key"
+
+#------------------------------- HAProxy Module ------------------------------
+#- module: haproxy
+ #metricsets: ["info", "stat"]
+ #enabled: true
+ #period: 10s
+ #hosts: ["tcp://127.0.0.1:14567"]
+
+#-------------------------------- kafka Module -------------------------------
+#- module: kafka
+ #metricsets: ["partition"]
+ #enabled: true
+ #period: 10s
+ #hosts: ["localhost:9092"]
+
+ #client_id: metricbeat
+ #retries: 3
+ #backoff: 250ms
+
+ # List of Topics to query metadata for. If empty, all topics will be queried.
+ #topics: []
+
+ # Optional SSL. By default is off.
+ # List of root certificates for HTTPS server verifications
+ #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
+
+ # Certificate for SSL client authentication
+ #ssl.certificate: "/etc/pki/client/cert.pem"
+
+ # Client Certificate Key
+ #ssl.key: "/etc/pki/client/cert.key"
+
+ # SASL authentication
+ #username: ""
+ #password: ""
+
+#------------------------------- MongoDB Module ------------------------------
+#- module: mongodb
+ #metricsets: ["status"]
+ #enabled: true
+ #period: 10s
+
+ # The hosts must be passed as MongoDB URLs in the format:
+ # [mongodb://][user:pass@]host[:port].
+ # The username and password can also be set using the respective configuration
+ # options. The credentials in the URL take precedence over the username and
+ # password configuration options.
+ #hosts: ["localhost:27017"]
+
+ # Username to use when connecting to MongoDB. Empty by default.
+ #username: user
+
+ # Password to use when connecting to MongoDB. Empty by default.
+ #password: pass
+
+
+#-------------------------------- MySQL Module -------------------------------
+#- module: mysql
+ #metricsets: ["status"]
+ #enabled: true
+ #period: 10s
+
+ # Host DSN should be defined as "user:pass@tcp(127.0.0.1:3306)/"
+ # The username and password can either be set in the DSN or using the username
+ # and password config options. Those specified in the DSN take precedence.
+ #hosts: ["root:secret@tcp(127.0.0.1:3306)/"]
+
+ # Username of hosts. Empty by default.
+ #username: root
+
+ # Password of hosts. Empty by default.
+ #password: secret
+
+ # By setting raw to true, all raw fields from the status metricset will be added to the event.
+ #raw: false
+
+#-------------------------------- Nginx Module -------------------------------
+#- module: nginx
+ #metricsets: ["stubstatus"]
+ #enabled: true
+ #period: 10s
+
+ # Nginx hosts
+ #hosts: ["http://127.0.0.1"]
+
+ # Path to server status. Default server-status
+ #server_status_path: "server-status"
+
+#----------------------------- PostgreSQL Module -----------------------------
+#- module: postgresql
+ #metricsets:
+ # Stats about every PostgreSQL database
+ #- database
+
+ # Stats about the background writer process's activity
+ #- bgwriter
+
+ # Stats about every PostgreSQL process
+ #- activity
+
+ #enabled: true
+ #period: 10s
+
+ # The host must be passed as PostgreSQL URL. Example:
+ # postgres://localhost:5432?sslmode=disable
+ # The available parameters are documented here:
+ # https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters
+ #hosts: ["postgres://localhost:5432"]
+
+ # Username to use when connecting to PostgreSQL. Empty by default.
+ #username: user
+
+ # Password to use when connecting to PostgreSQL. Empty by default.
+ #password: pass
+
+
+#----------------------------- Prometheus Module -----------------------------
+#- module: prometheus
+ #metricsets: ["stats"]
+ #enabled: true
+ #period: 10s
+ #hosts: ["localhost:9090"]
+ #metrics_path: /metrics
+ #namespace: example
+
+#-------------------------------- Redis Module -------------------------------
+#- module: redis
+ #metricsets: ["info", "keyspace"]
+ #enabled: true
+ #period: 10s
+
+ # Redis hosts
+ #hosts: ["127.0.0.1:6379"]
+
+ # Timeout after which time a metricset should return an error
+ # Timeout is by default defined as period, as a fetch of a metricset
+ # should never take longer then period, as otherwise calls can pile up.
+ #timeout: 1s
+
+ # Optional fields to be added to each event
+ #fields:
+ # datacenter: west
+
+ # Network type to be used for redis connection. Default: tcp
+ #network: tcp
+
+ # Max number of concurrent connections. Default: 10
+ #maxconn: 10
+
+ # Filters can be used to reduce the number of fields sent.
+ #filters:
+ # - include_fields:
+ # fields: ["stats"]
+
+ # Redis AUTH password. Empty by default.
+ #password: foobared
+
+#------------------------------ ZooKeeper Module -----------------------------
+#- module: zookeeper
+ #metricsets: ["mntr"]
+ #enabled: true
+ #period: 10s
+ #hosts: ["localhost:2181"]
+
+
+
+#================================ General ======================================
+
+# The name of the shipper that publishes the network data. It can be used to group
+# all the transactions sent by a single shipper in the web interface.
+# If this options is not defined, the hostname is used.
+#name:
+
+# The tags of the shipper are included in their own field with each
+# transaction published. Tags make it easy to group servers by different
+# logical properties.
+#tags: ["service-X", "web-tier"]
+
+# Optional fields that you can specify to add additional information to the
+# output. Fields can be scalar values, arrays, dictionaries, or any nested
+# combination of these.
+#fields:
+# env: staging
+
+# If this option is set to true, the custom fields are stored as top-level
+# fields in the output document instead of being grouped under a fields
+# sub-dictionary. Default is false.
+#fields_under_root: false
+
+# Internal queue size for single events in processing pipeline
+#queue_size: 1000
+
+# The internal queue size for bulk events in the processing pipeline.
+# Do not modify this value.
+#bulk_queue_size: 0
+
+# Sets the maximum number of CPUs that can be executing simultaneously. The
+# default is the number of logical CPUs available in the system.
+#max_procs:
+
+#================================ Processors ===================================
+
+# Processors are used to reduce the number of fields in the exported event or to
+# enhance the event with external metadata. This section defines a list of
+# processors that are applied one by one and the first one receives the initial
+# event:
+#
+# event -> filter1 -> event1 -> filter2 ->event2 ...
+#
+# The supported processors are drop_fields, drop_event, include_fields, and
+# add_cloud_metadata.
+#
+# For example, you can use the following processors to keep the fields that
+# contain CPU load percentages, but remove the fields that contain CPU ticks
+# values:
+#
+#processors:
+#- include_fields:
+# fields: ["cpu"]
+#- drop_fields:
+# fields: ["cpu.user", "cpu.system"]
+#
+# The following example drops the events that have the HTTP response code 200:
+#
+#processors:
+#- drop_event:
+# when:
+# equals:
+# http.code: 200
+#
+# The following example enriches each event with metadata from the cloud
+# provider about the host machine. It works on EC2, GCE, and DigitalOcean.
+#
+#processors:
+#- add_cloud_metadata:
+#
+
+#================================ Outputs ======================================
+
+# Configure what outputs to use when sending the data collected by the beat.
+# Multiple outputs may be used.
+
+#-------------------------- Elasticsearch output -------------------------------
+output.elasticsearch:
+ # Boolean flag to enable or disable the output module.
+ #enabled: true
+
+ # Array of hosts to connect to.
+ # Scheme and port can be left out and will be set to the default (http and 9200)
+ # In case you specify and additional path, the scheme is required: http://localhost:9200/path
+ # IPv6 addresses should always be defined as: https://[2001:db8::1]:9200
+ hosts: ["localhost:9200"]
+
+ # Set gzip compression level.
+ #compression_level: 0
+
+ # Optional protocol and basic auth credentials.
+ #protocol: "https"
+ #username: "elastic"
+ #password: "changeme"
+
+ # Dictionary of HTTP parameters to pass within the url with index operations.
+ #parameters:
+ #param1: value1
+ #param2: value2
+
+ # Number of workers per Elasticsearch host.
+ #worker: 1
+
+ # Optional index name. The default is "metricbeat" plus date
+ # and generates [metricbeat-]YYYY.MM.DD keys.
+ #index: "metricbeat-%{+yyyy.MM.dd}"
+
+ # Optional ingest node pipeline. By default no pipeline will be used.
+ #pipeline: ""
+
+ # Optional HTTP Path
+ #path: "/elasticsearch"
+
+ # Proxy server url
+ #proxy_url: http://proxy:3128
+
+ # The number of times a particular Elasticsearch index operation is attempted. If
+ # the indexing operation doesn't succeed after this many retries, the events are
+ # dropped. The default is 3.
+ #max_retries: 3
+
+ # The maximum number of events to bulk in a single Elasticsearch bulk API index request.
+ # The default is 50.
+ #bulk_max_size: 50
+
+ # Configure http request timeout before failing an request to Elasticsearch.
+ #timeout: 90
+
+ # The number of seconds to wait for new events between two bulk API index requests.
+ # If `bulk_max_size` is reached before this interval expires, addition bulk index
+ # requests are made.
+ #flush_interval: 1s
+
+ # A template is used to set the mapping in Elasticsearch
+ # By default template loading is enabled and the template is loaded.
+ # These settings can be adjusted to load your own template or overwrite existing ones.
+
+ # Set to false to disable template loading.
+ #template.enabled: true
+
+ # Template name. By default the template name is metricbeat.
+ #template.name: "metricbeat"
+
+ # Path to template file
+ #template.path: "${path.config}/metricbeat.template.json"
+
+ # Overwrite existing template
+ #template.overwrite: false
+
+ # If set to true, metricbeat checks the Elasticsearch version at connect time, and if it
+ # is 2.x, it loads the file specified by the template.versions.2x.path setting. The
+ # default is true.
+ #template.versions.2x.enabled: true
+
+ # Path to the Elasticsearch 2.x version of the template file.
+ #template.versions.2x.path: "${path.config}/metricbeat.template-es2x.json"
+
+ # Use SSL settings for HTTPS. Default is true.
+ #ssl.enabled: true
+
+ # Configure SSL verification mode. If `none` is configured, all server hosts
+ # and certificates will be accepted. In this mode, SSL based connections are
+ # susceptible to man-in-the-middle attacks. Use only for testing. Default is
+ # `full`.
+ #ssl.verification_mode: full
+
+ # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
+ # 1.2 are enabled.
+ #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
+
+ # SSL configuration. By default is off.
+ # List of root certificates for HTTPS server verifications
+ #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
+
+ # Certificate for SSL client authentication
+ #ssl.certificate: "/etc/pki/client/cert.pem"
+
+ # Client Certificate Key
+ #ssl.key: "/etc/pki/client/cert.key"
+
+ # Optional passphrase for decrypting the Certificate Key.
+ #ssl.key_passphrase: ''
+
+ # Configure cipher suites to be used for SSL connections
+ #ssl.cipher_suites: []
+
+ # Configure curve types for ECDHE based cipher suites
+ #ssl.curve_types: []
+
+
+#----------------------------- Logstash output ---------------------------------
+#output.logstash:
+ # Boolean flag to enable or disable the output module.
+ #enabled: true
+
+ # The Logstash hosts
+ #hosts: ["localhost:5044"]
+
+ # Number of workers per Logstash host.
+ #worker: 1
+
+ # Set gzip compression level.
+ #compression_level: 3
+
+ # Optional load balance the events between the Logstash hosts
+ #loadbalance: true
+
+ # Number of batches to be send asynchronously to logstash while processing
+ # new batches.
+ #pipelining: 0
+
+ # Optional index name. The default index name is set to name of the beat
+ # in all lowercase.
+ #index: 'metricbeat'
+
+ # SOCKS5 proxy server URL
+ #proxy_url: socks5://user:password@socks5-server:2233
+
+ # Resolve names locally when using a proxy server. Defaults to false.
+ #proxy_use_local_resolver: false
+
+ # Enable SSL support. SSL is automatically enabled, if any SSL setting is set.
+ #ssl.enabled: true
+
+ # Configure SSL verification mode. If `none` is configured, all server hosts
+ # and certificates will be accepted. In this mode, SSL based connections are
+ # susceptible to man-in-the-middle attacks. Use only for testing. Default is
+ # `full`.
+ #ssl.verification_mode: full
+
+ # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
+ # 1.2 are enabled.
+ #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
+
+ # Optional SSL configuration options. SSL is off by default.
+ # List of root certificates for HTTPS server verifications
+ #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
+
+ # Certificate for SSL client authentication
+ #ssl.certificate: "/etc/pki/client/cert.pem"
+
+ # Client Certificate Key
+ #ssl.key: "/etc/pki/client/cert.key"
+
+ # Optional passphrase for decrypting the Certificate Key.
+ #ssl.key_passphrase: ''
+
+ # Configure cipher suites to be used for SSL connections
+ #ssl.cipher_suites: []
+
+ # Configure curve types for ECDHE based cipher suites
+ #ssl.curve_types: []
+
+#------------------------------- Kafka output ----------------------------------
+#output.kafka:
+ # Boolean flag to enable or disable the output module.
+ #enabled: true
+
+ # The list of Kafka broker addresses from where to fetch the cluster metadata.
+ # The cluster metadata contain the actual Kafka brokers events are published
+ # to.
+ #hosts: ["localhost:9092"]
+
+ # The Kafka topic used for produced events. The setting can be a format string
+ # using any event field. To set the topic from document type use `%{[type]}`.
+ #topic: beats
+
+ # The Kafka event key setting. Use format string to create unique event key.
+ # By default no event key will be generated.
+ #key: ''
+
+ # The Kafka event partitioning strategy. Default hashing strategy is `hash`
+ # using the `output.kafka.key` setting or randomly distributes events if
+ # `output.kafka.key` is not configured.
+ #partition.hash:
+ # If enabled, events will only be published to partitions with reachable
+ # leaders. Default is false.
+ #reachable_only: false
+
+ # Configure alternative event field names used to compute the hash value.
+ # If empty `output.kafka.key` setting will be used.
+ # Default value is empty list.
+ #hash: []
+
+ # Authentication details. Password is required if username is set.
+ #username: ''
+ #password: ''
+
+ # Kafka version metricbeat is assumed to run against. Defaults to the oldest
+ # supported stable version (currently version 0.8.2.0)
+ #version: 0.8.2
+
+ # Metadata update configuration. Metadata do contain leader information
+ # deciding which broker to use when publishing.
+ #metadata:
+ # Max metadata request retry attempts when cluster is in middle of leader
+ # election. Defaults to 3 retries.
+ #retry.max: 3
+
+ # Waiting time between retries during leader elections. Default is 250ms.
+ #retry.backoff: 250ms
+
+ # Refresh metadata interval. Defaults to every 10 minutes.
+ #refresh_frequency: 10m
+
+ # The number of concurrent load-balanced Kafka output workers.
+ #worker: 1
+
+ # The number of times to retry publishing an event after a publishing failure.
+ # After the specified number of retries, the events are typically dropped.
+ # Some Beats, such as Filebeat, ignore the max_retries setting and retry until
+ # all events are published. Set max_retries to a value less than 0 to retry
+ # until all events are published. The default is 3.
+ #max_retries: 3
+
+ # The maximum number of events to bulk in a single Kafka request. The default
+ # is 2048.
+ #bulk_max_size: 2048
+
+ # The number of seconds to wait for responses from the Kafka brokers before
+ # timing out. The default is 30s.
+ #timeout: 30s
+
+ # The maximum duration a broker will wait for number of required ACKs. The
+ # default is 10s.
+ #broker_timeout: 10s
+
+ # The number of messages buffered for each Kafka broker. The default is 256.
+ #channel_buffer_size: 256
+
+ # The keep-alive period for an active network connection. If 0s, keep-alives
+ # are disabled. The default is 0 seconds.
+ #keep_alive: 0
+
+ # Sets the output compression codec. Must be one of none, snappy and gzip. The
+ # default is gzip.
+ #compression: gzip
+
+ # The maximum permitted size of JSON-encoded messages. Bigger messages will be
+ # dropped. The default value is 1000000 (bytes). This value should be equal to
+ # or less than the broker's message.max.bytes.
+ #max_message_bytes: 1000000
+
+ # The ACK reliability level required from broker. 0=no response, 1=wait for
+ # local commit, -1=wait for all replicas to commit. The default is 1. Note:
+ # If set to 0, no ACKs are returned by Kafka. Messages might be lost silently
+ # on error.
+ #required_acks: 1
+
+ # The number of seconds to wait for new events between two producer API calls.
+ #flush_interval: 1s
+
+ # The configurable ClientID used for logging, debugging, and auditing
+ # purposes. The default is "beats".
+ #client_id: beats
+
+ # Enable SSL support. SSL is automatically enabled, if any SSL setting is set.
+ #ssl.enabled: true
+
+ # Optional SSL configuration options. SSL is off by default.
+ # List of root certificates for HTTPS server verifications
+ #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
+
+ # Configure SSL verification mode. If `none` is configured, all server hosts
+ # and certificates will be accepted. In this mode, SSL based connections are
+ # susceptible to man-in-the-middle attacks. Use only for testing. Default is
+ # `full`.
+ #ssl.verification_mode: full
+
+ # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
+ # 1.2 are enabled.
+ #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
+
+ # Certificate for SSL client authentication
+ #ssl.certificate: "/etc/pki/client/cert.pem"
+
+ # Client Certificate Key
+ #ssl.key: "/etc/pki/client/cert.key"
+
+ # Optional passphrase for decrypting the Certificate Key.
+ #ssl.key_passphrase: ''
+
+ # Configure cipher suites to be used for SSL connections
+ #ssl.cipher_suites: []
+
+ # Configure curve types for ECDHE based cipher suites
+ #ssl.curve_types: []
+
+#------------------------------- Redis output ----------------------------------
+#output.redis:
+ # Boolean flag to enable or disable the output module.
+ #enabled: true
+
+ # The list of Redis servers to connect to. If load balancing is enabled, the
+ # events are distributed to the servers in the list. If one server becomes
+ # unreachable, the events are distributed to the reachable servers only.
+ #hosts: ["localhost:6379"]
+
+ # The Redis port to use if hosts does not contain a port number. The default
+ # is 6379.
+ #port: 6379
+
+ # The name of the Redis list or channel the events are published to. The
+ # default is metricbeat.
+ #key: metricbeat
+
+ # The password to authenticate with. The default is no authentication.
+ #password:
+
+ # The Redis database number where the events are published. The default is 0.
+ #db: 0
+
+ # The Redis data type to use for publishing events. If the data type is list,
+ # the Redis RPUSH command is used. If the data type is channel, the Redis
+ # PUBLISH command is used. The default value is list.
+ #datatype: list
+
+ # The number of workers to use for each host configured to publish events to
+ # Redis. Use this setting along with the loadbalance option. For example, if
+ # you have 2 hosts and 3 workers, in total 6 workers are started (3 for each
+ # host).
+ #worker: 1
+
+ # If set to true and multiple hosts or workers are configured, the output
+ # plugin load balances published events onto all Redis hosts. If set to false,
+ # the output plugin sends all events to only one host (determined at random)
+ # and will switch to another host if the currently selected one becomes
+ # unreachable. The default value is true.
+ #loadbalance: true
+
+ # The Redis connection timeout in seconds. The default is 5 seconds.
+ #timeout: 5s
+
+ # The number of times to retry publishing an event after a publishing failure.
+ # After the specified number of retries, the events are typically dropped.
+ # Some Beats, such as Filebeat, ignore the max_retries setting and retry until
+ # all events are published. Set max_retries to a value less than 0 to retry
+ # until all events are published. The default is 3.
+ #max_retries: 3
+
+ # The maximum number of events to bulk in a single Redis request or pipeline.
+ # The default is 2048.
+ #bulk_max_size: 2048
+
+ # The URL of the SOCKS5 proxy to use when connecting to the Redis servers. The
+ # value must be a URL with a scheme of socks5://.
+ #proxy_url:
+
+ # This option determines whether Redis hostnames are resolved locally when
+ # using a proxy. The default value is false, which means that name resolution
+ # occurs on the proxy server.
+ #proxy_use_local_resolver: false
+
+ # Enable SSL support. SSL is automatically enabled, if any SSL setting is set.
+ #ssl.enabled: true
+
+ # Configure SSL verification mode. If `none` is configured, all server hosts
+ # and certificates will be accepted. In this mode, SSL based connections are
+ # susceptible to man-in-the-middle attacks. Use only for testing. Default is
+ # `full`.
+ #ssl.verification_mode: full
+
+ # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
+ # 1.2 are enabled.
+ #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
+
+ # Optional SSL configuration options. SSL is off by default.
+ # List of root certificates for HTTPS server verifications
+ #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
+
+ # Certificate for SSL client authentication
+ #ssl.certificate: "/etc/pki/client/cert.pem"
+
+ # Client Certificate Key
+ #ssl.key: "/etc/pki/client/cert.key"
+
+ # Optional passphrase for decrypting the Certificate Key.
+ #ssl.key_passphrase: ''
+
+ # Configure cipher suites to be used for SSL connections
+ #ssl.cipher_suites: []
+
+ # Configure curve types for ECDHE based cipher suites
+ #ssl.curve_types: []
+
+
+#------------------------------- File output -----------------------------------
+#output.file:
+ # Boolean flag to enable or disable the output module.
+ #enabled: true
+
+ # Path to the directory where to save the generated files. The option is
+ # mandatory.
+ #path: "/tmp/metricbeat"
+
+ # Name of the generated files. The default is `metricbeat` and it generates
+ # files: `metricbeat`, `metricbeat.1`, `metricbeat.2`, etc.
+ #filename: metricbeat
+
+ # Maximum size in kilobytes of each file. When this size is reached, and on
+ # every metricbeat restart, the files are rotated. The default value is 10240
+ # kB.
+ #rotate_every_kb: 10000
+
+ # Maximum number of files under path. When this number of files is reached,
+ # the oldest file is deleted and the rest are shifted from last to first. The
+ # default is 7 files.
+ #number_of_files: 7
+
+
+#----------------------------- Console output ---------------------------------
+#output.console:
+ # Boolean flag to enable or disable the output module.
+ #enabled: true
+
+ # Pretty print json event
+ #pretty: false
+
+#================================= Paths ======================================
+
+# The home path for the metricbeat installation. This is the default base path
+# for all other path settings and for miscellaneous files that come with the
+# distribution (for example, the sample dashboards).
+# If not set by a CLI flag or in the configuration file, the default for the
+# home path is the location of the binary.
+#path.home:
+
+# The configuration path for the metricbeat installation. This is the default
+# base path for configuration files, including the main YAML configuration file
+# and the Elasticsearch template file. If not set by a CLI flag or in the
+# configuration file, the default for the configuration path is the home path.
+#path.config: ${path.home}
+
+# The data path for the metricbeat installation. This is the default base path
+# for all the files in which metricbeat needs to store its data. If not set by a
+# CLI flag or in the configuration file, the default for the data path is a data
+# subdirectory inside the home path.
+#path.data: ${path.home}/data
+
+# The logs path for a metricbeat installation. This is the default location for
+# the Beat's log files. If not set by a CLI flag or in the configuration file,
+# the default for the logs path is a logs subdirectory inside the home path.
+#path.logs: ${path.home}/logs
+
+#================================ Logging ======================================
+# There are three options for the log output: syslog, file, stderr.
+# Under Windows systems, the log files are per default sent to the file output,
+# under all other system per default to syslog.
+
+# Sets log level. The default log level is info.
+# Available log levels are: critical, error, warning, info, debug
+#logging.level: info
+
+# Enable debug output for selected components. To enable all selectors use ["*"]
+# Other available selectors are "beat", "publish", "service"
+# Multiple selectors can be chained.
+#logging.selectors: [ ]
+
+# Send all logging output to syslog. The default is false.
+#logging.to_syslog: true
+
+# If enabled, metricbeat periodically logs its internal metrics that have changed
+# in the last period. For each metric that changed, the delta from the value at
+# the beginning of the period is logged. Also, the total values for
+# all non-zero internal metrics are logged on shutdown. The default is true.
+#logging.metrics.enabled: true
+
+# The period after which to log the internal metrics. The default is 30s.
+#logging.metrics.period: 30s
+
+# Logging to rotating files files. Set logging.to_files to false to disable logging to
+# files.
+logging.to_files: true
+logging.files:
+ # Configure the path where the logs are written. The default is the logs directory
+ # under the home path (the binary location).
+ #path: /var/log/metricbeat
+
+ # The name of the files where the logs are written to.
+ #name: metricbeat
+
+ # Configure log file size limit. If limit is reached, log file will be
+ # automatically rotated
+ #rotateeverybytes: 10485760 # = 10MB
+
+ # Number of rotated log files to keep. Oldest files will be deleted first.
+ #keepfiles: 7
+
diff --git a/testing/metricbeat/metricbeat.initd b/testing/metricbeat/metricbeat.initd
new file mode 100644
index 0000000000..989afe6908
--- /dev/null
+++ b/testing/metricbeat/metricbeat.initd
@@ -0,0 +1,42 @@
+#!/sbin/openrc-run
+
+METRICBEAT_LOG_FILE="/var/log/${SVCNAME}.log"
+
+name=metricbeat
+description="MetricBeat - Lightweight shipper for system and service statistics"
+description_checkconfig="Verify configuration file"
+daemon=/usr/bin/$name
+extra_commands="checkconfig"
+
+start_pre() {
+ checkpath -f -m 0644 "$METRICBEAT_LOG_FILE"
+}
+
+depend() {
+ need net
+ after firewall
+}
+
+checkconfig() {
+ metricbeat -configtest -c /etc/metricbeat/metricbeat.yml
+}
+
+start() {
+ checkconfig || return 1
+
+ebegin "Starting ${name}"
+ start-stop-daemon --start --quiet \
+ -m --pidfile /var/run/${name}.pid \
+ -b --stdout $METRICBEAT_LOG_FILE --stderr $METRICBEAT_LOG_FILE \
+ --exec ${daemon} -- ${metricbeat_opts}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${name}"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${name}.pid \
+ --exec ${daemon}
+ eend $?
+}
+
diff --git a/testing/metricbeat/metricbeat.template-es2x.json b/testing/metricbeat/metricbeat.template-es2x.json
new file mode 100644
index 0000000000..2954f6780e
--- /dev/null
+++ b/testing/metricbeat/metricbeat.template-es2x.json
@@ -0,0 +1,3803 @@
+{
+ "mappings": {
+ "_default_": {
+ "_all": {
+ "norms": {
+ "enabled": false
+ }
+ },
+ "_meta": {
+ "version": "5.2.0"
+ },
+ "dynamic_templates": [
+ {
+ "strings_as_keyword": {
+ "mapping": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "match_mapping_type": "string"
+ }
+ }
+ ],
+ "properties": {
+ "@timestamp": {
+ "type": "date"
+ },
+ "apache": {
+ "properties": {
+ "status": {
+ "properties": {
+ "bytes_per_request": {
+ "type": "float"
+ },
+ "bytes_per_sec": {
+ "type": "float"
+ },
+ "connections": {
+ "properties": {
+ "async": {
+ "properties": {
+ "closing": {
+ "type": "long"
+ },
+ "keep_alive": {
+ "type": "long"
+ },
+ "writing": {
+ "type": "long"
+ }
+ }
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "cpu": {
+ "properties": {
+ "children_system": {
+ "type": "float"
+ },
+ "children_user": {
+ "type": "float"
+ },
+ "load": {
+ "type": "float"
+ },
+ "system": {
+ "type": "float"
+ },
+ "user": {
+ "type": "float"
+ }
+ }
+ },
+ "hostname": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "load": {
+ "properties": {
+ "1": {
+ "type": "float"
+ },
+ "15": {
+ "type": "float"
+ },
+ "5": {
+ "type": "float"
+ }
+ }
+ },
+ "requests_per_sec": {
+ "type": "float"
+ },
+ "scoreboard": {
+ "properties": {
+ "closing_connection": {
+ "type": "long"
+ },
+ "dns_lookup": {
+ "type": "long"
+ },
+ "gracefully_finishing": {
+ "type": "long"
+ },
+ "idle_cleanup": {
+ "type": "long"
+ },
+ "keepalive": {
+ "type": "long"
+ },
+ "logging": {
+ "type": "long"
+ },
+ "open_slot": {
+ "type": "long"
+ },
+ "reading_request": {
+ "type": "long"
+ },
+ "sending_reply": {
+ "type": "long"
+ },
+ "starting_up": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ },
+ "waiting_for_connection": {
+ "type": "long"
+ }
+ }
+ },
+ "total_accesses": {
+ "type": "long"
+ },
+ "total_kbytes": {
+ "type": "long"
+ },
+ "uptime": {
+ "properties": {
+ "server_uptime": {
+ "type": "long"
+ },
+ "uptime": {
+ "type": "long"
+ }
+ }
+ },
+ "workers": {
+ "properties": {
+ "busy": {
+ "type": "long"
+ },
+ "idle": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "beat": {
+ "properties": {
+ "hostname": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "version": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "couchbase": {
+ "properties": {
+ "bucket": {
+ "properties": {
+ "data": {
+ "properties": {
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "disk": {
+ "properties": {
+ "fetches": {
+ "type": "long"
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "item_count": {
+ "type": "long"
+ },
+ "memory": {
+ "properties": {
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "ops_per_sec": {
+ "type": "long"
+ },
+ "quota": {
+ "properties": {
+ "ram": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "use": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ }
+ }
+ }
+ }
+ },
+ "type": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "cluster": {
+ "properties": {
+ "hdd": {
+ "properties": {
+ "free": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "quota": {
+ "properties": {
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "by_data": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "value": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "max_bucket_count": {
+ "type": "long"
+ },
+ "quota": {
+ "properties": {
+ "index_memory": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "ram": {
+ "properties": {
+ "quota": {
+ "properties": {
+ "total": {
+ "properties": {
+ "per_node": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "value": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "per_node": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "value": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "by_data": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "value": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "node": {
+ "properties": {
+ "cmd_get": {
+ "type": "long"
+ },
+ "couch": {
+ "properties": {
+ "docs": {
+ "properties": {
+ "actual_disk_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "data_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "spatial": {
+ "properties": {
+ "data_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "disk_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "views": {
+ "properties": {
+ "actual_disk_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "data_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "cpu_utilization_rate": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ }
+ }
+ },
+ "current_items": {
+ "properties": {
+ "total": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ },
+ "ep_bg_fetched": {
+ "type": "long"
+ },
+ "get_hits": {
+ "type": "long"
+ },
+ "hostname": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "mcd_memory": {
+ "properties": {
+ "allocated": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "reserved": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "free": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "ops": {
+ "type": "long"
+ },
+ "swap": {
+ "properties": {
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "uptime": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ },
+ "vb_replica_curr_items": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "docker": {
+ "properties": {
+ "container": {
+ "properties": {
+ "command": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "created": {
+ "type": "date"
+ },
+ "id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "image": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "size": {
+ "properties": {
+ "root_fs": {
+ "type": "long"
+ },
+ "rw": {
+ "type": "long"
+ }
+ }
+ },
+ "status": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "cpu": {
+ "properties": {
+ "kernel": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "system": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "total": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ }
+ }
+ },
+ "user": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "diskio": {
+ "properties": {
+ "reads": {
+ "type": "float"
+ },
+ "total": {
+ "type": "float"
+ },
+ "writes": {
+ "type": "float"
+ }
+ }
+ },
+ "info": {
+ "properties": {
+ "containers": {
+ "properties": {
+ "paused": {
+ "type": "long"
+ },
+ "running": {
+ "type": "long"
+ },
+ "stopped": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "images": {
+ "type": "long"
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "fail": {
+ "properties": {
+ "count": {
+ "type": "float"
+ }
+ }
+ },
+ "limit": {
+ "type": "long"
+ },
+ "rss": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "usage": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "pct": {
+ "type": "float"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "network": {
+ "properties": {
+ "in": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "dropped": {
+ "type": "float"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "packets": {
+ "type": "long"
+ }
+ }
+ },
+ "interface": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "out": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "dropped": {
+ "type": "float"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "packets": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "haproxy": {
+ "properties": {
+ "info": {
+ "properties": {
+ "compress": {
+ "properties": {
+ "bps": {
+ "properties": {
+ "in": {
+ "type": "long"
+ },
+ "out": {
+ "type": "long"
+ },
+ "rate_limit": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "connection": {
+ "properties": {
+ "current": {
+ "type": "long"
+ },
+ "hard_max": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "rate": {
+ "properties": {
+ "limit": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ },
+ "ssl": {
+ "properties": {
+ "current": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "idle": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "max": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "pid": {
+ "type": "long"
+ },
+ "pipes": {
+ "properties": {
+ "free": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "used": {
+ "type": "long"
+ }
+ }
+ },
+ "process_num": {
+ "type": "long"
+ },
+ "processes": {
+ "type": "long"
+ },
+ "requests": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "run_queue": {
+ "type": "long"
+ },
+ "session": {
+ "properties": {
+ "rate": {
+ "properties": {
+ "limit": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "sockets": {
+ "properties": {
+ "max": {
+ "type": "long"
+ }
+ }
+ },
+ "ssl": {
+ "properties": {
+ "backend": {
+ "properties": {
+ "key_rate": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "cache_misses": {
+ "type": "long"
+ },
+ "cached_lookups": {
+ "type": "long"
+ },
+ "frontend": {
+ "properties": {
+ "key_rate": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ },
+ "session_reuse": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ }
+ }
+ }
+ }
+ },
+ "rate": {
+ "properties": {
+ "limit": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "tasks": {
+ "type": "long"
+ },
+ "ulimit_n": {
+ "type": "long"
+ },
+ "uptime": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ },
+ "zlib_mem_usage": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "stat": {
+ "properties": {
+ "check": {
+ "properties": {
+ "agent": {
+ "properties": {
+ "last": {
+ "type": "long"
+ }
+ }
+ },
+ "code": {
+ "type": "long"
+ },
+ "down": {
+ "type": "long"
+ },
+ "duration": {
+ "type": "long"
+ },
+ "failed": {
+ "type": "long"
+ },
+ "health": {
+ "properties": {
+ "fail": {
+ "type": "long"
+ },
+ "last": {
+ "type": "long"
+ }
+ }
+ },
+ "status": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "client": {
+ "properties": {
+ "aborted": {
+ "type": "long"
+ }
+ }
+ },
+ "component_type": {
+ "type": "long"
+ },
+ "compressor": {
+ "properties": {
+ "bypassed": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "in": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "out": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "response": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "connection": {
+ "properties": {
+ "retried": {
+ "type": "long"
+ },
+ "time": {
+ "properties": {
+ "avg": {
+ "type": "long"
+ }
+ }
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "downtime": {
+ "type": "long"
+ },
+ "in": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "last_change": {
+ "type": "long"
+ },
+ "out": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "process_id": {
+ "type": "long"
+ },
+ "proxy": {
+ "properties": {
+ "id": {
+ "type": "long"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "queue": {
+ "properties": {
+ "limit": {
+ "type": "long"
+ },
+ "time": {
+ "properties": {
+ "avg": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "request": {
+ "properties": {
+ "connection": {
+ "properties": {
+ "errors": {
+ "type": "long"
+ }
+ }
+ },
+ "denied": {
+ "type": "long"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "queued": {
+ "properties": {
+ "current": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ }
+ }
+ },
+ "rate": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ },
+ "redispatched": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "response": {
+ "properties": {
+ "denied": {
+ "type": "long"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "http": {
+ "properties": {
+ "1xx": {
+ "type": "long"
+ },
+ "2xx": {
+ "type": "long"
+ },
+ "3xx": {
+ "type": "long"
+ },
+ "4xx": {
+ "type": "long"
+ },
+ "5xx": {
+ "type": "long"
+ },
+ "other": {
+ "type": "long"
+ }
+ }
+ },
+ "time": {
+ "properties": {
+ "avg": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "selected": {
+ "properties": {
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "server": {
+ "properties": {
+ "aborted": {
+ "type": "long"
+ },
+ "active": {
+ "type": "long"
+ },
+ "backup": {
+ "type": "long"
+ },
+ "id": {
+ "type": "long"
+ }
+ }
+ },
+ "service_name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "session": {
+ "properties": {
+ "current": {
+ "type": "long"
+ },
+ "limit": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "rate": {
+ "properties": {
+ "limit": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "status": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "throttle": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ }
+ }
+ },
+ "tracked": {
+ "properties": {
+ "id": {
+ "type": "long"
+ }
+ }
+ },
+ "weight": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "kafka": {
+ "properties": {
+ "consumergroup": {
+ "properties": {
+ "broker": {
+ "properties": {
+ "address": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "id": {
+ "type": "long"
+ }
+ }
+ },
+ "client": {
+ "properties": {
+ "host": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "member_id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "error": {
+ "properties": {
+ "code": {
+ "type": "long"
+ }
+ }
+ },
+ "id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "meta": {
+ "index": "analyzed",
+ "norms": {
+ "enabled": false
+ },
+ "type": "string"
+ },
+ "offset": {
+ "type": "long"
+ },
+ "partition": {
+ "type": "long"
+ },
+ "topic": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "partition": {
+ "properties": {
+ "broker": {
+ "properties": {
+ "address": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "id": {
+ "type": "long"
+ }
+ }
+ },
+ "offset": {
+ "properties": {
+ "newest": {
+ "type": "long"
+ },
+ "oldest": {
+ "type": "long"
+ }
+ }
+ },
+ "partition": {
+ "properties": {
+ "error": {
+ "properties": {
+ "code": {
+ "type": "long"
+ }
+ }
+ },
+ "id": {
+ "type": "long"
+ },
+ "insync_replica": {
+ "type": "boolean"
+ },
+ "leader": {
+ "type": "long"
+ },
+ "replica": {
+ "type": "long"
+ }
+ }
+ },
+ "topic": {
+ "properties": {
+ "error": {
+ "properties": {
+ "code": {
+ "type": "long"
+ }
+ }
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "meta": {
+ "properties": {
+ "cloud": {
+ "properties": {
+ "availability_zone": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "instance_id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "machine_type": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "project_id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "provider": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "region": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "metricset": {
+ "properties": {
+ "host": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "module": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "namespace": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "rtt": {
+ "type": "long"
+ }
+ }
+ },
+ "mongodb": {
+ "properties": {
+ "status": {
+ "properties": {
+ "asserts": {
+ "properties": {
+ "msg": {
+ "type": "long"
+ },
+ "regular": {
+ "type": "long"
+ },
+ "rollovers": {
+ "type": "long"
+ },
+ "user": {
+ "type": "long"
+ },
+ "warning": {
+ "type": "long"
+ }
+ }
+ },
+ "background_flushing": {
+ "properties": {
+ "average": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "flushes": {
+ "type": "long"
+ },
+ "last": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "last_finished": {
+ "type": "date"
+ },
+ "total": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "connections": {
+ "properties": {
+ "available": {
+ "type": "long"
+ },
+ "current": {
+ "type": "long"
+ },
+ "total_created": {
+ "type": "long"
+ }
+ }
+ },
+ "extra_info": {
+ "properties": {
+ "heap_usage": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "page_faults": {
+ "type": "long"
+ }
+ }
+ },
+ "journaling": {
+ "properties": {
+ "commits": {
+ "type": "long"
+ },
+ "commits_in_write_lock": {
+ "type": "long"
+ },
+ "compression": {
+ "type": "long"
+ },
+ "early_commits": {
+ "type": "long"
+ },
+ "journaled": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ },
+ "times": {
+ "properties": {
+ "commits": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "commits_in_write_lock": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "dt": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "prep_log_buffer": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "remap_private_view": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "write_to_data_files": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "write_to_journal": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "write_to_data_files": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "local_time": {
+ "type": "date"
+ },
+ "memory": {
+ "properties": {
+ "bits": {
+ "type": "long"
+ },
+ "mapped": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ },
+ "mapped_with_journal": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ },
+ "resident": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ },
+ "virtual": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "network": {
+ "properties": {
+ "in": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "out": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "requests": {
+ "type": "long"
+ }
+ }
+ },
+ "opcounters": {
+ "properties": {
+ "command": {
+ "type": "long"
+ },
+ "delete": {
+ "type": "long"
+ },
+ "getmore": {
+ "type": "long"
+ },
+ "insert": {
+ "type": "long"
+ },
+ "query": {
+ "type": "long"
+ },
+ "update": {
+ "type": "long"
+ }
+ }
+ },
+ "opcounters_replicated": {
+ "properties": {
+ "command": {
+ "type": "long"
+ },
+ "delete": {
+ "type": "long"
+ },
+ "getmore": {
+ "type": "long"
+ },
+ "insert": {
+ "type": "long"
+ },
+ "query": {
+ "type": "long"
+ },
+ "update": {
+ "type": "long"
+ }
+ }
+ },
+ "storage_engine": {
+ "properties": {
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "uptime": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "version": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "wired_tiger": {
+ "properties": {
+ "cache": {
+ "properties": {
+ "dirty": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "maximum": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "pages": {
+ "properties": {
+ "evicted": {
+ "type": "long"
+ },
+ "read": {
+ "type": "long"
+ },
+ "write": {
+ "type": "long"
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "concurrent_transactions": {
+ "properties": {
+ "read": {
+ "properties": {
+ "available": {
+ "type": "long"
+ },
+ "out": {
+ "type": "long"
+ },
+ "total_tickets": {
+ "type": "long"
+ }
+ }
+ },
+ "write": {
+ "properties": {
+ "available": {
+ "type": "long"
+ },
+ "out": {
+ "type": "long"
+ },
+ "total_tickets": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "log": {
+ "properties": {
+ "flushes": {
+ "type": "long"
+ },
+ "max_file_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "scans": {
+ "type": "long"
+ },
+ "size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "syncs": {
+ "type": "long"
+ },
+ "write": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "writes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "write_backs_queued": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "mysql": {
+ "properties": {
+ "status": {
+ "properties": {
+ "aborted": {
+ "properties": {
+ "clients": {
+ "type": "long"
+ },
+ "connects": {
+ "type": "long"
+ }
+ }
+ },
+ "binlog": {
+ "properties": {
+ "cache": {
+ "properties": {
+ "disk_use": {
+ "type": "long"
+ },
+ "use": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "bytes": {
+ "properties": {
+ "received": {
+ "type": "long"
+ },
+ "sent": {
+ "type": "long"
+ }
+ }
+ },
+ "command": {
+ "properties": {
+ "delete": {
+ "type": "long"
+ },
+ "insert": {
+ "type": "long"
+ },
+ "select": {
+ "type": "long"
+ },
+ "update": {
+ "type": "long"
+ }
+ }
+ },
+ "connections": {
+ "type": "long"
+ },
+ "created": {
+ "properties": {
+ "tmp": {
+ "properties": {
+ "disk_tables": {
+ "type": "long"
+ },
+ "files": {
+ "type": "long"
+ },
+ "tables": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "delayed": {
+ "properties": {
+ "errors": {
+ "type": "long"
+ },
+ "insert_threads": {
+ "type": "long"
+ },
+ "writes": {
+ "type": "long"
+ }
+ }
+ },
+ "flush_commands": {
+ "type": "long"
+ },
+ "max_used_connections": {
+ "type": "long"
+ },
+ "open": {
+ "properties": {
+ "files": {
+ "type": "long"
+ },
+ "streams": {
+ "type": "long"
+ },
+ "tables": {
+ "type": "long"
+ }
+ }
+ },
+ "opened_tables": {
+ "type": "long"
+ },
+ "threads": {
+ "properties": {
+ "cached": {
+ "type": "long"
+ },
+ "connected": {
+ "type": "long"
+ },
+ "created": {
+ "type": "long"
+ },
+ "running": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "nginx": {
+ "properties": {
+ "stubstatus": {
+ "properties": {
+ "accepts": {
+ "type": "long"
+ },
+ "active": {
+ "type": "long"
+ },
+ "current": {
+ "type": "long"
+ },
+ "dropped": {
+ "type": "long"
+ },
+ "handled": {
+ "type": "long"
+ },
+ "hostname": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "reading": {
+ "type": "long"
+ },
+ "requests": {
+ "type": "long"
+ },
+ "waiting": {
+ "type": "long"
+ },
+ "writing": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "postgresql": {
+ "properties": {
+ "activity": {
+ "properties": {
+ "application_name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "backend_start": {
+ "type": "date"
+ },
+ "client": {
+ "properties": {
+ "address": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "hostname": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "port": {
+ "type": "long"
+ }
+ }
+ },
+ "database": {
+ "properties": {
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "oid": {
+ "type": "long"
+ }
+ }
+ },
+ "pid": {
+ "type": "long"
+ },
+ "query": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "query_start": {
+ "type": "date"
+ },
+ "state": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "state_change": {
+ "type": "date"
+ },
+ "transaction_start": {
+ "type": "date"
+ },
+ "user": {
+ "properties": {
+ "id": {
+ "type": "long"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "waiting": {
+ "type": "boolean"
+ }
+ }
+ },
+ "bgwriter": {
+ "properties": {
+ "buffers": {
+ "properties": {
+ "allocated": {
+ "type": "long"
+ },
+ "backend": {
+ "type": "long"
+ },
+ "backend_fsync": {
+ "type": "long"
+ },
+ "checkpoints": {
+ "type": "long"
+ },
+ "clean": {
+ "type": "long"
+ },
+ "clean_full": {
+ "type": "long"
+ }
+ }
+ },
+ "checkpoints": {
+ "properties": {
+ "requested": {
+ "type": "long"
+ },
+ "scheduled": {
+ "type": "long"
+ },
+ "times": {
+ "properties": {
+ "sync": {
+ "properties": {
+ "ms": {
+ "type": "float"
+ }
+ }
+ },
+ "write": {
+ "properties": {
+ "ms": {
+ "type": "float"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "stats_reset": {
+ "type": "date"
+ }
+ }
+ },
+ "database": {
+ "properties": {
+ "blocks": {
+ "properties": {
+ "hit": {
+ "type": "long"
+ },
+ "read": {
+ "type": "long"
+ },
+ "time": {
+ "properties": {
+ "read": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "write": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "conflicts": {
+ "type": "long"
+ },
+ "deadlocks": {
+ "type": "long"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "number_of_backends": {
+ "type": "long"
+ },
+ "oid": {
+ "type": "long"
+ },
+ "rows": {
+ "properties": {
+ "deleted": {
+ "type": "long"
+ },
+ "fetched": {
+ "type": "long"
+ },
+ "inserted": {
+ "type": "long"
+ },
+ "returned": {
+ "type": "long"
+ },
+ "updated": {
+ "type": "long"
+ }
+ }
+ },
+ "stats_reset": {
+ "type": "date"
+ },
+ "temporary": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "files": {
+ "type": "long"
+ }
+ }
+ },
+ "transactions": {
+ "properties": {
+ "commit": {
+ "type": "long"
+ },
+ "rollback": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "prometheus": {
+ "properties": {
+ "stats": {
+ "properties": {
+ "notifications": {
+ "properties": {
+ "dropped": {
+ "type": "long"
+ },
+ "queue_length": {
+ "type": "long"
+ }
+ }
+ },
+ "processes": {
+ "properties": {
+ "open_fds": {
+ "type": "long"
+ }
+ }
+ },
+ "storage": {
+ "properties": {
+ "chunks_to_persist": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "redis": {
+ "properties": {
+ "info": {
+ "properties": {
+ "clients": {
+ "properties": {
+ "biggest_input_buf": {
+ "type": "long"
+ },
+ "blocked": {
+ "type": "long"
+ },
+ "connected": {
+ "type": "long"
+ },
+ "longest_output_list": {
+ "type": "long"
+ }
+ }
+ },
+ "cluster": {
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ }
+ },
+ "cpu": {
+ "properties": {
+ "used": {
+ "properties": {
+ "sys": {
+ "type": "float"
+ },
+ "sys_children": {
+ "type": "float"
+ },
+ "user": {
+ "type": "float"
+ },
+ "user_children": {
+ "type": "float"
+ }
+ }
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "allocator": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "used": {
+ "properties": {
+ "lua": {
+ "type": "long"
+ },
+ "peak": {
+ "type": "long"
+ },
+ "rss": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "persistence": {
+ "properties": {
+ "aof": {
+ "properties": {
+ "bgrewrite": {
+ "properties": {
+ "last_status": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "rewrite": {
+ "properties": {
+ "current_time": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ },
+ "in_progress": {
+ "type": "boolean"
+ },
+ "last_time": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ },
+ "scheduled": {
+ "type": "boolean"
+ }
+ }
+ },
+ "write": {
+ "properties": {
+ "last_status": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "loading": {
+ "type": "boolean"
+ },
+ "rdb": {
+ "properties": {
+ "bgsave": {
+ "properties": {
+ "current_time": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ },
+ "in_progress": {
+ "type": "boolean"
+ },
+ "last_status": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "last_time": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "last_save": {
+ "properties": {
+ "changes_since": {
+ "type": "long"
+ },
+ "time": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "replication": {
+ "properties": {
+ "backlog": {
+ "properties": {
+ "active": {
+ "type": "long"
+ },
+ "first_byte_offset": {
+ "type": "long"
+ },
+ "histlen": {
+ "type": "long"
+ },
+ "size": {
+ "type": "long"
+ }
+ }
+ },
+ "connected_slaves": {
+ "type": "long"
+ },
+ "master_offset": {
+ "type": "long"
+ },
+ "role": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "server": {
+ "properties": {
+ "arch_bits": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "build_id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "config_file": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "gcc_version": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "git_dirty": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "git_sha1": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "hz": {
+ "type": "long"
+ },
+ "lru_clock": {
+ "type": "long"
+ },
+ "mode": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "multiplexing_api": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "os": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "process_id": {
+ "type": "long"
+ },
+ "run_id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "tcp_port": {
+ "type": "long"
+ },
+ "uptime": {
+ "type": "long"
+ },
+ "version": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "stats": {
+ "properties": {
+ "commands_processed": {
+ "type": "long"
+ },
+ "connections": {
+ "properties": {
+ "received": {
+ "type": "long"
+ },
+ "rejected": {
+ "type": "long"
+ }
+ }
+ },
+ "instantaneous": {
+ "properties": {
+ "input_kbps": {
+ "type": "float"
+ },
+ "ops_per_sec": {
+ "type": "long"
+ },
+ "output_kbps": {
+ "type": "float"
+ }
+ }
+ },
+ "keys": {
+ "properties": {
+ "evicted": {
+ "type": "long"
+ },
+ "expired": {
+ "type": "long"
+ }
+ }
+ },
+ "keyspace": {
+ "properties": {
+ "hits": {
+ "type": "long"
+ },
+ "misses": {
+ "type": "long"
+ }
+ }
+ },
+ "latest_fork_usec": {
+ "type": "long"
+ },
+ "migrate_cached_sockets": {
+ "type": "long"
+ },
+ "net": {
+ "properties": {
+ "input": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "output": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "pubsub": {
+ "properties": {
+ "channels": {
+ "type": "long"
+ },
+ "patterns": {
+ "type": "long"
+ }
+ }
+ },
+ "sync": {
+ "properties": {
+ "full": {
+ "type": "long"
+ },
+ "partial": {
+ "properties": {
+ "err": {
+ "type": "long"
+ },
+ "ok": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "keyspace": {
+ "properties": {
+ "avg_ttl": {
+ "type": "long"
+ },
+ "expires": {
+ "type": "long"
+ },
+ "id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "keys": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "system": {
+ "properties": {
+ "core": {
+ "properties": {
+ "id": {
+ "type": "long"
+ },
+ "idle": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "iowait": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "irq": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "nice": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "softirq": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "steal": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "system": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "user": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "cpu": {
+ "properties": {
+ "cores": {
+ "type": "long"
+ },
+ "idle": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "iowait": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "irq": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "nice": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "softirq": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "steal": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "system": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "user": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "diskio": {
+ "properties": {
+ "io": {
+ "properties": {
+ "time": {
+ "type": "long"
+ }
+ }
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "read": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "count": {
+ "type": "long"
+ },
+ "time": {
+ "type": "long"
+ }
+ }
+ },
+ "serial_number": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "write": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "count": {
+ "type": "long"
+ },
+ "time": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "filesystem": {
+ "properties": {
+ "available": {
+ "type": "long"
+ },
+ "device_name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "files": {
+ "type": "long"
+ },
+ "free": {
+ "type": "long"
+ },
+ "free_files": {
+ "type": "long"
+ },
+ "mount_point": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "total": {
+ "type": "long"
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "pct": {
+ "type": "float"
+ }
+ }
+ }
+ }
+ },
+ "fsstat": {
+ "properties": {
+ "count": {
+ "type": "long"
+ },
+ "total_files": {
+ "type": "long"
+ },
+ "total_size": {
+ "properties": {
+ "free": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ },
+ "used": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "load": {
+ "properties": {
+ "1": {
+ "type": "float"
+ },
+ "15": {
+ "type": "float"
+ },
+ "5": {
+ "type": "float"
+ },
+ "norm": {
+ "properties": {
+ "1": {
+ "type": "float"
+ },
+ "15": {
+ "type": "float"
+ },
+ "5": {
+ "type": "float"
+ }
+ }
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "actual": {
+ "properties": {
+ "free": {
+ "type": "long"
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "pct": {
+ "type": "float"
+ }
+ }
+ }
+ }
+ },
+ "free": {
+ "type": "long"
+ },
+ "swap": {
+ "properties": {
+ "free": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "pct": {
+ "type": "float"
+ }
+ }
+ }
+ }
+ },
+ "total": {
+ "type": "long"
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "pct": {
+ "type": "float"
+ }
+ }
+ }
+ }
+ },
+ "network": {
+ "properties": {
+ "in": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "dropped": {
+ "type": "long"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "packets": {
+ "type": "long"
+ }
+ }
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "out": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "dropped": {
+ "type": "long"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "packets": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "process": {
+ "properties": {
+ "cgroup": {
+ "properties": {
+ "blkio": {
+ "properties": {
+ "id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "path": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "ios": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "cpu": {
+ "properties": {
+ "cfs": {
+ "properties": {
+ "period": {
+ "properties": {
+ "us": {
+ "type": "long"
+ }
+ }
+ },
+ "quota": {
+ "properties": {
+ "us": {
+ "type": "long"
+ }
+ }
+ },
+ "shares": {
+ "type": "long"
+ }
+ }
+ },
+ "id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "path": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "rt": {
+ "properties": {
+ "period": {
+ "properties": {
+ "us": {
+ "type": "long"
+ }
+ }
+ },
+ "runtime": {
+ "properties": {
+ "us": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "stats": {
+ "properties": {
+ "periods": {
+ "type": "long"
+ },
+ "throttled": {
+ "properties": {
+ "ns": {
+ "type": "long"
+ },
+ "periods": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "cpuacct": {
+ "properties": {
+ "id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "path": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "stats": {
+ "properties": {
+ "system": {
+ "properties": {
+ "ns": {
+ "type": "long"
+ }
+ }
+ },
+ "user": {
+ "properties": {
+ "ns": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "total": {
+ "properties": {
+ "ns": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "memory": {
+ "properties": {
+ "id": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "kmem": {
+ "properties": {
+ "failures": {
+ "type": "long"
+ },
+ "limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "usage": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "max": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "kmem_tcp": {
+ "properties": {
+ "failures": {
+ "type": "long"
+ },
+ "limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "usage": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "max": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "mem": {
+ "properties": {
+ "failures": {
+ "type": "long"
+ },
+ "limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "usage": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "max": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "memsw": {
+ "properties": {
+ "failures": {
+ "type": "long"
+ },
+ "limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "usage": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "max": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "path": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "stats": {
+ "properties": {
+ "active_anon": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "active_file": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "cache": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "hierarchical_memory_limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "hierarchical_memsw_limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "inactive_anon": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "inactive_file": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "major_page_faults": {
+ "type": "long"
+ },
+ "mapped_file": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "page_faults": {
+ "type": "long"
+ },
+ "pages_in": {
+ "type": "long"
+ },
+ "pages_out": {
+ "type": "long"
+ },
+ "rss": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "rss_huge": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "swap": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "unevictable": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "path": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "cmdline": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "cpu": {
+ "properties": {
+ "start_time": {
+ "type": "date"
+ },
+ "system": {
+ "type": "long"
+ },
+ "total": {
+ "properties": {
+ "pct": {
+ "type": "float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "user": {
+ "type": "long"
+ }
+ }
+ },
+ "fd": {
+ "properties": {
+ "limit": {
+ "properties": {
+ "hard": {
+ "type": "long"
+ },
+ "soft": {
+ "type": "long"
+ }
+ }
+ },
+ "open": {
+ "type": "long"
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "rss": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "pct": {
+ "type": "float"
+ }
+ }
+ },
+ "share": {
+ "type": "long"
+ },
+ "size": {
+ "type": "long"
+ }
+ }
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "pgid": {
+ "type": "long"
+ },
+ "pid": {
+ "type": "long"
+ },
+ "ppid": {
+ "type": "long"
+ },
+ "state": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "username": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ },
+ "socket": {
+ "properties": {
+ "direction": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "family": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "local": {
+ "properties": {
+ "ip": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "port": {
+ "type": "long"
+ }
+ }
+ },
+ "process": {
+ "properties": {
+ "cmdline": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "command": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "exe": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "pid": {
+ "type": "long"
+ }
+ }
+ },
+ "remote": {
+ "properties": {
+ "etld_plus_one": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "host": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "host_error": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "ip": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "port": {
+ "type": "long"
+ }
+ }
+ },
+ "user": {
+ "properties": {
+ "id": {
+ "type": "long"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "tags": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "type": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "zookeeper": {
+ "properties": {
+ "mntr": {
+ "properties": {
+ "approximate_data_size": {
+ "type": "long"
+ },
+ "ephemerals_count": {
+ "type": "long"
+ },
+ "followers": {
+ "type": "long"
+ },
+ "hostname": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "latency": {
+ "properties": {
+ "avg": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "min": {
+ "type": "long"
+ }
+ }
+ },
+ "max_file_descriptor_count": {
+ "type": "long"
+ },
+ "num_alive_connections": {
+ "type": "long"
+ },
+ "open_file_descriptor_count": {
+ "type": "long"
+ },
+ "outstanding_requests": {
+ "type": "long"
+ },
+ "packets": {
+ "properties": {
+ "received": {
+ "type": "long"
+ },
+ "sent": {
+ "type": "long"
+ }
+ }
+ },
+ "pending_syncs": {
+ "type": "long"
+ },
+ "server_state": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "synced_followers": {
+ "type": "long"
+ },
+ "version": {
+ "ignore_above": 1024,
+ "index": "not_analyzed",
+ "type": "string"
+ },
+ "watch_count": {
+ "type": "long"
+ },
+ "znode_count": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "order": 0,
+ "settings": {
+ "index.refresh_interval": "5s"
+ },
+ "template": "metricbeat-*"
+} \ No newline at end of file
diff --git a/testing/metricbeat/metricbeat.template.json b/testing/metricbeat/metricbeat.template.json
new file mode 100644
index 0000000000..9ae64dd131
--- /dev/null
+++ b/testing/metricbeat/metricbeat.template.json
@@ -0,0 +1,3759 @@
+{
+ "mappings": {
+ "_default_": {
+ "_all": {
+ "norms": false
+ },
+ "_meta": {
+ "version": "5.2.0"
+ },
+ "dynamic_templates": [
+ {
+ "strings_as_keyword": {
+ "mapping": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "match_mapping_type": "string"
+ }
+ }
+ ],
+ "properties": {
+ "@timestamp": {
+ "type": "date"
+ },
+ "apache": {
+ "properties": {
+ "status": {
+ "properties": {
+ "bytes_per_request": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "bytes_per_sec": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "connections": {
+ "properties": {
+ "async": {
+ "properties": {
+ "closing": {
+ "type": "long"
+ },
+ "keep_alive": {
+ "type": "long"
+ },
+ "writing": {
+ "type": "long"
+ }
+ }
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "cpu": {
+ "properties": {
+ "children_system": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "children_user": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "load": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "system": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "user": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ },
+ "hostname": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "load": {
+ "properties": {
+ "1": {
+ "scaling_factor": 100,
+ "type": "scaled_float"
+ },
+ "15": {
+ "scaling_factor": 100,
+ "type": "scaled_float"
+ },
+ "5": {
+ "scaling_factor": 100,
+ "type": "scaled_float"
+ }
+ }
+ },
+ "requests_per_sec": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "scoreboard": {
+ "properties": {
+ "closing_connection": {
+ "type": "long"
+ },
+ "dns_lookup": {
+ "type": "long"
+ },
+ "gracefully_finishing": {
+ "type": "long"
+ },
+ "idle_cleanup": {
+ "type": "long"
+ },
+ "keepalive": {
+ "type": "long"
+ },
+ "logging": {
+ "type": "long"
+ },
+ "open_slot": {
+ "type": "long"
+ },
+ "reading_request": {
+ "type": "long"
+ },
+ "sending_reply": {
+ "type": "long"
+ },
+ "starting_up": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ },
+ "waiting_for_connection": {
+ "type": "long"
+ }
+ }
+ },
+ "total_accesses": {
+ "type": "long"
+ },
+ "total_kbytes": {
+ "type": "long"
+ },
+ "uptime": {
+ "properties": {
+ "server_uptime": {
+ "type": "long"
+ },
+ "uptime": {
+ "type": "long"
+ }
+ }
+ },
+ "workers": {
+ "properties": {
+ "busy": {
+ "type": "long"
+ },
+ "idle": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "beat": {
+ "properties": {
+ "hostname": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "version": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "couchbase": {
+ "properties": {
+ "bucket": {
+ "properties": {
+ "data": {
+ "properties": {
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "disk": {
+ "properties": {
+ "fetches": {
+ "type": "long"
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "item_count": {
+ "type": "long"
+ },
+ "memory": {
+ "properties": {
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "ops_per_sec": {
+ "type": "long"
+ },
+ "quota": {
+ "properties": {
+ "ram": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "use": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ }
+ }
+ },
+ "type": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "cluster": {
+ "properties": {
+ "hdd": {
+ "properties": {
+ "free": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "quota": {
+ "properties": {
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "by_data": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "value": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "max_bucket_count": {
+ "type": "long"
+ },
+ "quota": {
+ "properties": {
+ "index_memory": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "ram": {
+ "properties": {
+ "quota": {
+ "properties": {
+ "total": {
+ "properties": {
+ "per_node": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "value": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "per_node": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "value": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "by_data": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "value": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "node": {
+ "properties": {
+ "cmd_get": {
+ "type": "long"
+ },
+ "couch": {
+ "properties": {
+ "docs": {
+ "properties": {
+ "actual_disk_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "data_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "spatial": {
+ "properties": {
+ "data_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "disk_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "views": {
+ "properties": {
+ "actual_disk_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "data_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "cpu_utilization_rate": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ },
+ "current_items": {
+ "properties": {
+ "total": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ },
+ "ep_bg_fetched": {
+ "type": "long"
+ },
+ "get_hits": {
+ "type": "long"
+ },
+ "hostname": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "mcd_memory": {
+ "properties": {
+ "allocated": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "reserved": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "free": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "ops": {
+ "type": "long"
+ },
+ "swap": {
+ "properties": {
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "uptime": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ },
+ "vb_replica_curr_items": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "docker": {
+ "properties": {
+ "container": {
+ "properties": {
+ "command": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "created": {
+ "type": "date"
+ },
+ "id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "image": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "size": {
+ "properties": {
+ "root_fs": {
+ "type": "long"
+ },
+ "rw": {
+ "type": "long"
+ }
+ }
+ },
+ "status": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "cpu": {
+ "properties": {
+ "kernel": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "system": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "total": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ },
+ "user": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "diskio": {
+ "properties": {
+ "reads": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "total": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "writes": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ },
+ "info": {
+ "properties": {
+ "containers": {
+ "properties": {
+ "paused": {
+ "type": "long"
+ },
+ "running": {
+ "type": "long"
+ },
+ "stopped": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "images": {
+ "type": "long"
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "fail": {
+ "properties": {
+ "count": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ },
+ "limit": {
+ "type": "long"
+ },
+ "rss": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "usage": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "network": {
+ "properties": {
+ "in": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "dropped": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "packets": {
+ "type": "long"
+ }
+ }
+ },
+ "interface": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "out": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "dropped": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "packets": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "haproxy": {
+ "properties": {
+ "info": {
+ "properties": {
+ "compress": {
+ "properties": {
+ "bps": {
+ "properties": {
+ "in": {
+ "type": "long"
+ },
+ "out": {
+ "type": "long"
+ },
+ "rate_limit": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "connection": {
+ "properties": {
+ "current": {
+ "type": "long"
+ },
+ "hard_max": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "rate": {
+ "properties": {
+ "limit": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ },
+ "ssl": {
+ "properties": {
+ "current": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "idle": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "max": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "pid": {
+ "type": "long"
+ },
+ "pipes": {
+ "properties": {
+ "free": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "used": {
+ "type": "long"
+ }
+ }
+ },
+ "process_num": {
+ "type": "long"
+ },
+ "processes": {
+ "type": "long"
+ },
+ "requests": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "run_queue": {
+ "type": "long"
+ },
+ "session": {
+ "properties": {
+ "rate": {
+ "properties": {
+ "limit": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "sockets": {
+ "properties": {
+ "max": {
+ "type": "long"
+ }
+ }
+ },
+ "ssl": {
+ "properties": {
+ "backend": {
+ "properties": {
+ "key_rate": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "cache_misses": {
+ "type": "long"
+ },
+ "cached_lookups": {
+ "type": "long"
+ },
+ "frontend": {
+ "properties": {
+ "key_rate": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ },
+ "session_reuse": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ }
+ }
+ },
+ "rate": {
+ "properties": {
+ "limit": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "tasks": {
+ "type": "long"
+ },
+ "ulimit_n": {
+ "type": "long"
+ },
+ "uptime": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ },
+ "zlib_mem_usage": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "stat": {
+ "properties": {
+ "check": {
+ "properties": {
+ "agent": {
+ "properties": {
+ "last": {
+ "type": "long"
+ }
+ }
+ },
+ "code": {
+ "type": "long"
+ },
+ "down": {
+ "type": "long"
+ },
+ "duration": {
+ "type": "long"
+ },
+ "failed": {
+ "type": "long"
+ },
+ "health": {
+ "properties": {
+ "fail": {
+ "type": "long"
+ },
+ "last": {
+ "type": "long"
+ }
+ }
+ },
+ "status": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "client": {
+ "properties": {
+ "aborted": {
+ "type": "long"
+ }
+ }
+ },
+ "component_type": {
+ "type": "long"
+ },
+ "compressor": {
+ "properties": {
+ "bypassed": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "in": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "out": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "response": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "connection": {
+ "properties": {
+ "retried": {
+ "type": "long"
+ },
+ "time": {
+ "properties": {
+ "avg": {
+ "type": "long"
+ }
+ }
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "downtime": {
+ "type": "long"
+ },
+ "in": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "last_change": {
+ "type": "long"
+ },
+ "out": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "process_id": {
+ "type": "long"
+ },
+ "proxy": {
+ "properties": {
+ "id": {
+ "type": "long"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "queue": {
+ "properties": {
+ "limit": {
+ "type": "long"
+ },
+ "time": {
+ "properties": {
+ "avg": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "request": {
+ "properties": {
+ "connection": {
+ "properties": {
+ "errors": {
+ "type": "long"
+ }
+ }
+ },
+ "denied": {
+ "type": "long"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "queued": {
+ "properties": {
+ "current": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ }
+ }
+ },
+ "rate": {
+ "properties": {
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ },
+ "redispatched": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "response": {
+ "properties": {
+ "denied": {
+ "type": "long"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "http": {
+ "properties": {
+ "1xx": {
+ "type": "long"
+ },
+ "2xx": {
+ "type": "long"
+ },
+ "3xx": {
+ "type": "long"
+ },
+ "4xx": {
+ "type": "long"
+ },
+ "5xx": {
+ "type": "long"
+ },
+ "other": {
+ "type": "long"
+ }
+ }
+ },
+ "time": {
+ "properties": {
+ "avg": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "selected": {
+ "properties": {
+ "total": {
+ "type": "long"
+ }
+ }
+ },
+ "server": {
+ "properties": {
+ "aborted": {
+ "type": "long"
+ },
+ "active": {
+ "type": "long"
+ },
+ "backup": {
+ "type": "long"
+ },
+ "id": {
+ "type": "long"
+ }
+ }
+ },
+ "service_name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "session": {
+ "properties": {
+ "current": {
+ "type": "long"
+ },
+ "limit": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "rate": {
+ "properties": {
+ "limit": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "status": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "throttle": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ },
+ "tracked": {
+ "properties": {
+ "id": {
+ "type": "long"
+ }
+ }
+ },
+ "weight": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "kafka": {
+ "properties": {
+ "consumergroup": {
+ "properties": {
+ "broker": {
+ "properties": {
+ "address": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "id": {
+ "type": "long"
+ }
+ }
+ },
+ "client": {
+ "properties": {
+ "host": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "member_id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "error": {
+ "properties": {
+ "code": {
+ "type": "long"
+ }
+ }
+ },
+ "id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "meta": {
+ "norms": false,
+ "type": "text"
+ },
+ "offset": {
+ "type": "long"
+ },
+ "partition": {
+ "type": "long"
+ },
+ "topic": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "partition": {
+ "properties": {
+ "broker": {
+ "properties": {
+ "address": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "id": {
+ "type": "long"
+ }
+ }
+ },
+ "offset": {
+ "properties": {
+ "newest": {
+ "type": "long"
+ },
+ "oldest": {
+ "type": "long"
+ }
+ }
+ },
+ "partition": {
+ "properties": {
+ "error": {
+ "properties": {
+ "code": {
+ "type": "long"
+ }
+ }
+ },
+ "id": {
+ "type": "long"
+ },
+ "insync_replica": {
+ "type": "boolean"
+ },
+ "leader": {
+ "type": "long"
+ },
+ "replica": {
+ "type": "long"
+ }
+ }
+ },
+ "topic": {
+ "properties": {
+ "error": {
+ "properties": {
+ "code": {
+ "type": "long"
+ }
+ }
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "meta": {
+ "properties": {
+ "cloud": {
+ "properties": {
+ "availability_zone": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "instance_id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "machine_type": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "project_id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "provider": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "region": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ }
+ }
+ },
+ "metricset": {
+ "properties": {
+ "host": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "module": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "namespace": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "rtt": {
+ "type": "long"
+ }
+ }
+ },
+ "mongodb": {
+ "properties": {
+ "status": {
+ "properties": {
+ "asserts": {
+ "properties": {
+ "msg": {
+ "type": "long"
+ },
+ "regular": {
+ "type": "long"
+ },
+ "rollovers": {
+ "type": "long"
+ },
+ "user": {
+ "type": "long"
+ },
+ "warning": {
+ "type": "long"
+ }
+ }
+ },
+ "background_flushing": {
+ "properties": {
+ "average": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "flushes": {
+ "type": "long"
+ },
+ "last": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "last_finished": {
+ "type": "date"
+ },
+ "total": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "connections": {
+ "properties": {
+ "available": {
+ "type": "long"
+ },
+ "current": {
+ "type": "long"
+ },
+ "total_created": {
+ "type": "long"
+ }
+ }
+ },
+ "extra_info": {
+ "properties": {
+ "heap_usage": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "page_faults": {
+ "type": "long"
+ }
+ }
+ },
+ "journaling": {
+ "properties": {
+ "commits": {
+ "type": "long"
+ },
+ "commits_in_write_lock": {
+ "type": "long"
+ },
+ "compression": {
+ "type": "long"
+ },
+ "early_commits": {
+ "type": "long"
+ },
+ "journaled": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ },
+ "times": {
+ "properties": {
+ "commits": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "commits_in_write_lock": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "dt": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "prep_log_buffer": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "remap_private_view": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "write_to_data_files": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "write_to_journal": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "write_to_data_files": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "local_time": {
+ "type": "date"
+ },
+ "memory": {
+ "properties": {
+ "bits": {
+ "type": "long"
+ },
+ "mapped": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ },
+ "mapped_with_journal": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ },
+ "resident": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ },
+ "virtual": {
+ "properties": {
+ "mb": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "network": {
+ "properties": {
+ "in": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "out": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "requests": {
+ "type": "long"
+ }
+ }
+ },
+ "opcounters": {
+ "properties": {
+ "command": {
+ "type": "long"
+ },
+ "delete": {
+ "type": "long"
+ },
+ "getmore": {
+ "type": "long"
+ },
+ "insert": {
+ "type": "long"
+ },
+ "query": {
+ "type": "long"
+ },
+ "update": {
+ "type": "long"
+ }
+ }
+ },
+ "opcounters_replicated": {
+ "properties": {
+ "command": {
+ "type": "long"
+ },
+ "delete": {
+ "type": "long"
+ },
+ "getmore": {
+ "type": "long"
+ },
+ "insert": {
+ "type": "long"
+ },
+ "query": {
+ "type": "long"
+ },
+ "update": {
+ "type": "long"
+ }
+ }
+ },
+ "storage_engine": {
+ "properties": {
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "uptime": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "version": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "wired_tiger": {
+ "properties": {
+ "cache": {
+ "properties": {
+ "dirty": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "maximum": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "pages": {
+ "properties": {
+ "evicted": {
+ "type": "long"
+ },
+ "read": {
+ "type": "long"
+ },
+ "write": {
+ "type": "long"
+ }
+ }
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "concurrent_transactions": {
+ "properties": {
+ "read": {
+ "properties": {
+ "available": {
+ "type": "long"
+ },
+ "out": {
+ "type": "long"
+ },
+ "total_tickets": {
+ "type": "long"
+ }
+ }
+ },
+ "write": {
+ "properties": {
+ "available": {
+ "type": "long"
+ },
+ "out": {
+ "type": "long"
+ },
+ "total_tickets": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "log": {
+ "properties": {
+ "flushes": {
+ "type": "long"
+ },
+ "max_file_size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "scans": {
+ "type": "long"
+ },
+ "size": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "syncs": {
+ "type": "long"
+ },
+ "write": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "writes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "write_backs_queued": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "mysql": {
+ "properties": {
+ "status": {
+ "properties": {
+ "aborted": {
+ "properties": {
+ "clients": {
+ "type": "long"
+ },
+ "connects": {
+ "type": "long"
+ }
+ }
+ },
+ "binlog": {
+ "properties": {
+ "cache": {
+ "properties": {
+ "disk_use": {
+ "type": "long"
+ },
+ "use": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "bytes": {
+ "properties": {
+ "received": {
+ "type": "long"
+ },
+ "sent": {
+ "type": "long"
+ }
+ }
+ },
+ "command": {
+ "properties": {
+ "delete": {
+ "type": "long"
+ },
+ "insert": {
+ "type": "long"
+ },
+ "select": {
+ "type": "long"
+ },
+ "update": {
+ "type": "long"
+ }
+ }
+ },
+ "connections": {
+ "type": "long"
+ },
+ "created": {
+ "properties": {
+ "tmp": {
+ "properties": {
+ "disk_tables": {
+ "type": "long"
+ },
+ "files": {
+ "type": "long"
+ },
+ "tables": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "delayed": {
+ "properties": {
+ "errors": {
+ "type": "long"
+ },
+ "insert_threads": {
+ "type": "long"
+ },
+ "writes": {
+ "type": "long"
+ }
+ }
+ },
+ "flush_commands": {
+ "type": "long"
+ },
+ "max_used_connections": {
+ "type": "long"
+ },
+ "open": {
+ "properties": {
+ "files": {
+ "type": "long"
+ },
+ "streams": {
+ "type": "long"
+ },
+ "tables": {
+ "type": "long"
+ }
+ }
+ },
+ "opened_tables": {
+ "type": "long"
+ },
+ "threads": {
+ "properties": {
+ "cached": {
+ "type": "long"
+ },
+ "connected": {
+ "type": "long"
+ },
+ "created": {
+ "type": "long"
+ },
+ "running": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "nginx": {
+ "properties": {
+ "stubstatus": {
+ "properties": {
+ "accepts": {
+ "type": "long"
+ },
+ "active": {
+ "type": "long"
+ },
+ "current": {
+ "type": "long"
+ },
+ "dropped": {
+ "type": "long"
+ },
+ "handled": {
+ "type": "long"
+ },
+ "hostname": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "reading": {
+ "type": "long"
+ },
+ "requests": {
+ "type": "long"
+ },
+ "waiting": {
+ "type": "long"
+ },
+ "writing": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "postgresql": {
+ "properties": {
+ "activity": {
+ "properties": {
+ "application_name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "backend_start": {
+ "type": "date"
+ },
+ "client": {
+ "properties": {
+ "address": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "hostname": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "port": {
+ "type": "long"
+ }
+ }
+ },
+ "database": {
+ "properties": {
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "oid": {
+ "type": "long"
+ }
+ }
+ },
+ "pid": {
+ "type": "long"
+ },
+ "query": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "query_start": {
+ "type": "date"
+ },
+ "state": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "state_change": {
+ "type": "date"
+ },
+ "transaction_start": {
+ "type": "date"
+ },
+ "user": {
+ "properties": {
+ "id": {
+ "type": "long"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "waiting": {
+ "type": "boolean"
+ }
+ }
+ },
+ "bgwriter": {
+ "properties": {
+ "buffers": {
+ "properties": {
+ "allocated": {
+ "type": "long"
+ },
+ "backend": {
+ "type": "long"
+ },
+ "backend_fsync": {
+ "type": "long"
+ },
+ "checkpoints": {
+ "type": "long"
+ },
+ "clean": {
+ "type": "long"
+ },
+ "clean_full": {
+ "type": "long"
+ }
+ }
+ },
+ "checkpoints": {
+ "properties": {
+ "requested": {
+ "type": "long"
+ },
+ "scheduled": {
+ "type": "long"
+ },
+ "times": {
+ "properties": {
+ "sync": {
+ "properties": {
+ "ms": {
+ "type": "float"
+ }
+ }
+ },
+ "write": {
+ "properties": {
+ "ms": {
+ "type": "float"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "stats_reset": {
+ "type": "date"
+ }
+ }
+ },
+ "database": {
+ "properties": {
+ "blocks": {
+ "properties": {
+ "hit": {
+ "type": "long"
+ },
+ "read": {
+ "type": "long"
+ },
+ "time": {
+ "properties": {
+ "read": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ },
+ "write": {
+ "properties": {
+ "ms": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "conflicts": {
+ "type": "long"
+ },
+ "deadlocks": {
+ "type": "long"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "number_of_backends": {
+ "type": "long"
+ },
+ "oid": {
+ "type": "long"
+ },
+ "rows": {
+ "properties": {
+ "deleted": {
+ "type": "long"
+ },
+ "fetched": {
+ "type": "long"
+ },
+ "inserted": {
+ "type": "long"
+ },
+ "returned": {
+ "type": "long"
+ },
+ "updated": {
+ "type": "long"
+ }
+ }
+ },
+ "stats_reset": {
+ "type": "date"
+ },
+ "temporary": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "files": {
+ "type": "long"
+ }
+ }
+ },
+ "transactions": {
+ "properties": {
+ "commit": {
+ "type": "long"
+ },
+ "rollback": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "prometheus": {
+ "properties": {
+ "stats": {
+ "properties": {
+ "notifications": {
+ "properties": {
+ "dropped": {
+ "type": "long"
+ },
+ "queue_length": {
+ "type": "long"
+ }
+ }
+ },
+ "processes": {
+ "properties": {
+ "open_fds": {
+ "type": "long"
+ }
+ }
+ },
+ "storage": {
+ "properties": {
+ "chunks_to_persist": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "redis": {
+ "properties": {
+ "info": {
+ "properties": {
+ "clients": {
+ "properties": {
+ "biggest_input_buf": {
+ "type": "long"
+ },
+ "blocked": {
+ "type": "long"
+ },
+ "connected": {
+ "type": "long"
+ },
+ "longest_output_list": {
+ "type": "long"
+ }
+ }
+ },
+ "cluster": {
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ }
+ },
+ "cpu": {
+ "properties": {
+ "used": {
+ "properties": {
+ "sys": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "sys_children": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "user": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "user_children": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "allocator": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "used": {
+ "properties": {
+ "lua": {
+ "type": "long"
+ },
+ "peak": {
+ "type": "long"
+ },
+ "rss": {
+ "type": "long"
+ },
+ "value": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "persistence": {
+ "properties": {
+ "aof": {
+ "properties": {
+ "bgrewrite": {
+ "properties": {
+ "last_status": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "rewrite": {
+ "properties": {
+ "current_time": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ },
+ "in_progress": {
+ "type": "boolean"
+ },
+ "last_time": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ },
+ "scheduled": {
+ "type": "boolean"
+ }
+ }
+ },
+ "write": {
+ "properties": {
+ "last_status": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ }
+ }
+ },
+ "loading": {
+ "type": "boolean"
+ },
+ "rdb": {
+ "properties": {
+ "bgsave": {
+ "properties": {
+ "current_time": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ },
+ "in_progress": {
+ "type": "boolean"
+ },
+ "last_status": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "last_time": {
+ "properties": {
+ "sec": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "last_save": {
+ "properties": {
+ "changes_since": {
+ "type": "long"
+ },
+ "time": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "replication": {
+ "properties": {
+ "backlog": {
+ "properties": {
+ "active": {
+ "type": "long"
+ },
+ "first_byte_offset": {
+ "type": "long"
+ },
+ "histlen": {
+ "type": "long"
+ },
+ "size": {
+ "type": "long"
+ }
+ }
+ },
+ "connected_slaves": {
+ "type": "long"
+ },
+ "master_offset": {
+ "type": "long"
+ },
+ "role": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "server": {
+ "properties": {
+ "arch_bits": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "build_id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "config_file": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "gcc_version": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "git_dirty": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "git_sha1": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "hz": {
+ "type": "long"
+ },
+ "lru_clock": {
+ "type": "long"
+ },
+ "mode": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "multiplexing_api": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "os": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "process_id": {
+ "type": "long"
+ },
+ "run_id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "tcp_port": {
+ "type": "long"
+ },
+ "uptime": {
+ "type": "long"
+ },
+ "version": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "stats": {
+ "properties": {
+ "commands_processed": {
+ "type": "long"
+ },
+ "connections": {
+ "properties": {
+ "received": {
+ "type": "long"
+ },
+ "rejected": {
+ "type": "long"
+ }
+ }
+ },
+ "instantaneous": {
+ "properties": {
+ "input_kbps": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ops_per_sec": {
+ "type": "long"
+ },
+ "output_kbps": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ },
+ "keys": {
+ "properties": {
+ "evicted": {
+ "type": "long"
+ },
+ "expired": {
+ "type": "long"
+ }
+ }
+ },
+ "keyspace": {
+ "properties": {
+ "hits": {
+ "type": "long"
+ },
+ "misses": {
+ "type": "long"
+ }
+ }
+ },
+ "latest_fork_usec": {
+ "type": "long"
+ },
+ "migrate_cached_sockets": {
+ "type": "long"
+ },
+ "net": {
+ "properties": {
+ "input": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "output": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "pubsub": {
+ "properties": {
+ "channels": {
+ "type": "long"
+ },
+ "patterns": {
+ "type": "long"
+ }
+ }
+ },
+ "sync": {
+ "properties": {
+ "full": {
+ "type": "long"
+ },
+ "partial": {
+ "properties": {
+ "err": {
+ "type": "long"
+ },
+ "ok": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "keyspace": {
+ "properties": {
+ "avg_ttl": {
+ "type": "long"
+ },
+ "expires": {
+ "type": "long"
+ },
+ "id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "keys": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "system": {
+ "properties": {
+ "core": {
+ "properties": {
+ "id": {
+ "type": "long"
+ },
+ "idle": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "iowait": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "irq": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "nice": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "softirq": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "steal": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "system": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "user": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "cpu": {
+ "properties": {
+ "cores": {
+ "type": "long"
+ },
+ "idle": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "iowait": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "irq": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "nice": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "softirq": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "steal": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "system": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "user": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "diskio": {
+ "properties": {
+ "io": {
+ "properties": {
+ "time": {
+ "type": "long"
+ }
+ }
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "read": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "count": {
+ "type": "long"
+ },
+ "time": {
+ "type": "long"
+ }
+ }
+ },
+ "serial_number": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "write": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "count": {
+ "type": "long"
+ },
+ "time": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "filesystem": {
+ "properties": {
+ "available": {
+ "type": "long"
+ },
+ "device_name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "files": {
+ "type": "long"
+ },
+ "free": {
+ "type": "long"
+ },
+ "free_files": {
+ "type": "long"
+ },
+ "mount_point": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "total": {
+ "type": "long"
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ }
+ }
+ },
+ "fsstat": {
+ "properties": {
+ "count": {
+ "type": "long"
+ },
+ "total_files": {
+ "type": "long"
+ },
+ "total_size": {
+ "properties": {
+ "free": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ },
+ "used": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "load": {
+ "properties": {
+ "1": {
+ "scaling_factor": 100,
+ "type": "scaled_float"
+ },
+ "15": {
+ "scaling_factor": 100,
+ "type": "scaled_float"
+ },
+ "5": {
+ "scaling_factor": 100,
+ "type": "scaled_float"
+ },
+ "norm": {
+ "properties": {
+ "1": {
+ "scaling_factor": 100,
+ "type": "scaled_float"
+ },
+ "15": {
+ "scaling_factor": 100,
+ "type": "scaled_float"
+ },
+ "5": {
+ "scaling_factor": 100,
+ "type": "scaled_float"
+ }
+ }
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "actual": {
+ "properties": {
+ "free": {
+ "type": "long"
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ }
+ }
+ },
+ "free": {
+ "type": "long"
+ },
+ "swap": {
+ "properties": {
+ "free": {
+ "type": "long"
+ },
+ "total": {
+ "type": "long"
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ }
+ }
+ },
+ "total": {
+ "type": "long"
+ },
+ "used": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ }
+ }
+ },
+ "network": {
+ "properties": {
+ "in": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "dropped": {
+ "type": "long"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "packets": {
+ "type": "long"
+ }
+ }
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "out": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "dropped": {
+ "type": "long"
+ },
+ "errors": {
+ "type": "long"
+ },
+ "packets": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "process": {
+ "properties": {
+ "cgroup": {
+ "properties": {
+ "blkio": {
+ "properties": {
+ "id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "path": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "total": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "ios": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "cpu": {
+ "properties": {
+ "cfs": {
+ "properties": {
+ "period": {
+ "properties": {
+ "us": {
+ "type": "long"
+ }
+ }
+ },
+ "quota": {
+ "properties": {
+ "us": {
+ "type": "long"
+ }
+ }
+ },
+ "shares": {
+ "type": "long"
+ }
+ }
+ },
+ "id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "path": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "rt": {
+ "properties": {
+ "period": {
+ "properties": {
+ "us": {
+ "type": "long"
+ }
+ }
+ },
+ "runtime": {
+ "properties": {
+ "us": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "stats": {
+ "properties": {
+ "periods": {
+ "type": "long"
+ },
+ "throttled": {
+ "properties": {
+ "ns": {
+ "type": "long"
+ },
+ "periods": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "cpuacct": {
+ "properties": {
+ "id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "path": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "stats": {
+ "properties": {
+ "system": {
+ "properties": {
+ "ns": {
+ "type": "long"
+ }
+ }
+ },
+ "user": {
+ "properties": {
+ "ns": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "total": {
+ "properties": {
+ "ns": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ },
+ "id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "memory": {
+ "properties": {
+ "id": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "kmem": {
+ "properties": {
+ "failures": {
+ "type": "long"
+ },
+ "limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "usage": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "max": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "kmem_tcp": {
+ "properties": {
+ "failures": {
+ "type": "long"
+ },
+ "limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "usage": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "max": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "mem": {
+ "properties": {
+ "failures": {
+ "type": "long"
+ },
+ "limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "usage": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "max": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "memsw": {
+ "properties": {
+ "failures": {
+ "type": "long"
+ },
+ "limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "usage": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "max": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "path": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "stats": {
+ "properties": {
+ "active_anon": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "active_file": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "cache": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "hierarchical_memory_limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "hierarchical_memsw_limit": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "inactive_anon": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "inactive_file": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "major_page_faults": {
+ "type": "long"
+ },
+ "mapped_file": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "page_faults": {
+ "type": "long"
+ },
+ "pages_in": {
+ "type": "long"
+ },
+ "pages_out": {
+ "type": "long"
+ },
+ "rss": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "rss_huge": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "swap": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ },
+ "unevictable": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "path": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "cmdline": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "cpu": {
+ "properties": {
+ "start_time": {
+ "type": "date"
+ },
+ "system": {
+ "type": "long"
+ },
+ "total": {
+ "properties": {
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ },
+ "ticks": {
+ "type": "long"
+ }
+ }
+ },
+ "user": {
+ "type": "long"
+ }
+ }
+ },
+ "fd": {
+ "properties": {
+ "limit": {
+ "properties": {
+ "hard": {
+ "type": "long"
+ },
+ "soft": {
+ "type": "long"
+ }
+ }
+ },
+ "open": {
+ "type": "long"
+ }
+ }
+ },
+ "memory": {
+ "properties": {
+ "rss": {
+ "properties": {
+ "bytes": {
+ "type": "long"
+ },
+ "pct": {
+ "scaling_factor": 1000,
+ "type": "scaled_float"
+ }
+ }
+ },
+ "share": {
+ "type": "long"
+ },
+ "size": {
+ "type": "long"
+ }
+ }
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "pgid": {
+ "type": "long"
+ },
+ "pid": {
+ "type": "long"
+ },
+ "ppid": {
+ "type": "long"
+ },
+ "state": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "username": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ },
+ "socket": {
+ "properties": {
+ "direction": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "family": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "local": {
+ "properties": {
+ "ip": {
+ "type": "ip"
+ },
+ "port": {
+ "type": "long"
+ }
+ }
+ },
+ "process": {
+ "properties": {
+ "cmdline": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "command": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "exe": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "pid": {
+ "type": "long"
+ }
+ }
+ },
+ "remote": {
+ "properties": {
+ "etld_plus_one": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "host": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "host_error": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "ip": {
+ "type": "ip"
+ },
+ "port": {
+ "type": "long"
+ }
+ }
+ },
+ "user": {
+ "properties": {
+ "id": {
+ "type": "long"
+ },
+ "name": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "tags": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "type": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "zookeeper": {
+ "properties": {
+ "mntr": {
+ "properties": {
+ "approximate_data_size": {
+ "type": "long"
+ },
+ "ephemerals_count": {
+ "type": "long"
+ },
+ "followers": {
+ "type": "long"
+ },
+ "hostname": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "latency": {
+ "properties": {
+ "avg": {
+ "type": "long"
+ },
+ "max": {
+ "type": "long"
+ },
+ "min": {
+ "type": "long"
+ }
+ }
+ },
+ "max_file_descriptor_count": {
+ "type": "long"
+ },
+ "num_alive_connections": {
+ "type": "long"
+ },
+ "open_file_descriptor_count": {
+ "type": "long"
+ },
+ "outstanding_requests": {
+ "type": "long"
+ },
+ "packets": {
+ "properties": {
+ "received": {
+ "type": "long"
+ },
+ "sent": {
+ "type": "long"
+ }
+ }
+ },
+ "pending_syncs": {
+ "type": "long"
+ },
+ "server_state": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "synced_followers": {
+ "type": "long"
+ },
+ "version": {
+ "ignore_above": 1024,
+ "type": "keyword"
+ },
+ "watch_count": {
+ "type": "long"
+ },
+ "znode_count": {
+ "type": "long"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "order": 0,
+ "settings": {
+ "index.mapping.total_fields.limit": 10000,
+ "index.refresh_interval": "5s"
+ },
+ "template": "metricbeat-*"
+} \ No newline at end of file
diff --git a/testing/metricbeat/metricbeat.yml b/testing/metricbeat/metricbeat.yml
new file mode 100644
index 0000000000..657ea61828
--- /dev/null
+++ b/testing/metricbeat/metricbeat.yml
@@ -0,0 +1,105 @@
+###################### Metricbeat Configuration Example #######################
+
+# This file is an example configuration file highlighting only the most common
+# options. The metricbeat.full.yml file from the same directory contains all the
+# supported options with more comments. You can use it as a reference.
+#
+# You can find the full configuration reference here:
+# https://www.elastic.co/guide/en/beats/metricbeat/index.html
+
+#========================== Modules configuration ============================
+metricbeat.modules:
+
+#------------------------------- System Module -------------------------------
+- module: system
+ metricsets:
+ # CPU stats
+ - cpu
+
+ # System Load stats
+ - load
+
+ # Per CPU core stats
+ #- core
+
+ # IO stats
+ #- diskio
+
+ # Per filesystem stats
+ - filesystem
+
+ # File system summary stats
+ - fsstat
+
+ # Memory stats
+ - memory
+
+ # Network stats
+ - network
+
+ # Per process stats
+ - process
+
+ # Sockets (linux only)
+ #- socket
+ enabled: true
+ period: 10s
+ processes: ['.*']
+
+
+
+#================================ General =====================================
+
+# The name of the shipper that publishes the network data. It can be used to group
+# all the transactions sent by a single shipper in the web interface.
+#name:
+
+# The tags of the shipper are included in their own field with each
+# transaction published.
+#tags: ["service-X", "web-tier"]
+
+# Optional fields that you can specify to add additional information to the
+# output.
+#fields:
+# env: staging
+
+#================================ Outputs =====================================
+
+# Configure what outputs to use when sending the data collected by the beat.
+# Multiple outputs may be used.
+
+#-------------------------- Elasticsearch output ------------------------------
+output.elasticsearch:
+ # Array of hosts to connect to.
+ hosts: ["localhost:9200"]
+
+ # Optional protocol and basic auth credentials.
+ #protocol: "https"
+ #username: "elastic"
+ #password: "changeme"
+
+#----------------------------- Logstash output --------------------------------
+#output.logstash:
+ # The Logstash hosts
+ #hosts: ["localhost:5044"]
+
+ # Optional SSL. By default is off.
+ # List of root certificates for HTTPS server verifications
+ #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
+
+ # Certificate for SSL client authentication
+ #ssl.certificate: "/etc/pki/client/cert.pem"
+
+ # Client Certificate Key
+ #ssl.key: "/etc/pki/client/cert.key"
+
+#================================ Logging =====================================
+
+# Sets log level. The default log level is info.
+# Available log levels are: critical, error, warning, info, debug
+#logging.level: debug
+
+# At debug level, you can selectively enable logging only for some components.
+# To enable all selectors use ["*"]. Examples of other selectors are "beat",
+# "publish", "service".
+#logging.selectors: ["*"]