-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add experimental Kibana module to Metricbeat (#3895)
The Kibana module is marked experimental as it might change or removed at any time.
- Loading branch information
Showing
23 changed files
with
586 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-module-kibana]] | ||
== kibana Module | ||
|
||
This is the kibana Module. | ||
|
||
|
||
|
||
[float] | ||
=== Example Configuration | ||
|
||
The kibana module supports the standard configuration options that are described | ||
in <<configuration-metricbeat>>. Here is an example configuration: | ||
|
||
[source,yaml] | ||
---- | ||
metricbeat.modules: | ||
- module: kibana | ||
metricsets: ["status"] | ||
enabled: true | ||
period: 10s | ||
hosts: ["localhost:5601"] | ||
---- | ||
|
||
[float] | ||
=== Metricsets | ||
|
||
The following metricsets are available: | ||
|
||
* <<metricbeat-metricset-kibana-status,status>> | ||
|
||
include::kibana/status.asciidoc[] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-kibana-status]] | ||
include::../../../module/kibana/status/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-kibana,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/kibana/status/_meta/data.json[] | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- module: kibana | ||
metricsets: ["status"] | ||
enabled: true | ||
period: 10s | ||
hosts: ["localhost:5601"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
== kibana Module | ||
|
||
This is the kibana Module. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
KIBANA_HOST=kibana | ||
KIBANA_PORT=5601 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- key: kibana | ||
title: "kibana" | ||
description: > | ||
[]experimental | ||
kibana Module | ||
fields: | ||
- name: kibana | ||
type: group | ||
description: > | ||
fields: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* | ||
Package kibana is a Metricbeat module that contains MetricSets. | ||
*/ | ||
package kibana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"@timestamp": "2016-05-23T08:05:34.853Z", | ||
"beat": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"kibana": { | ||
"status": { | ||
"metrics": { | ||
"concurrent_connections": 0, | ||
"requests": { | ||
"disconnects": 0, | ||
"total": 0 | ||
} | ||
}, | ||
"name": "kibana", | ||
"status": { | ||
"overall": { | ||
"state": "red" | ||
} | ||
}, | ||
"uuid": "c94305f7-ad4e-4e0c-8aba-5c3e869dce59", | ||
"version": { | ||
"number": "6.0.0-alpha1" | ||
} | ||
} | ||
}, | ||
"metricset": { | ||
"host": "kibana:5601", | ||
"module": "kibana", | ||
"name": "status", | ||
"rtt": 115 | ||
}, | ||
"type": "metricsets" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
=== kibana status MetricSet | ||
|
||
[]experimental | ||
|
||
This is the status metricset of the module kibana. This status endpoint is available in 6.0 by default and can be enabled in Kibana >= 5.4 with the config option `status.v6ApiFormat: true`. | ||
|
||
The indention of this Kibana module is to have a minimal data set that works across Kibana versions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
- name: status | ||
type: group | ||
description: > | ||
Status fields | ||
fields: | ||
- name: name | ||
type: keyword | ||
description: > | ||
Kibana instance name. | ||
- name: uuid | ||
type: keyword | ||
description: > | ||
Kibana instance uuid. | ||
- name: version.number | ||
type: keyword | ||
description: > | ||
Kibana version number. | ||
- name: status.overall.state | ||
type: keyword | ||
description: > | ||
Kibana overall state. | ||
- name: metrics | ||
type: group | ||
description: > | ||
Metrics fields | ||
fields: | ||
- name: concurrent_connections | ||
type: long | ||
description: > | ||
Current concurrent connections. | ||
- name: requests | ||
type: group | ||
description: > | ||
Request statistics. | ||
fields: | ||
- name: disconnects | ||
type: long | ||
description: > | ||
Total number of disconnected connections. | ||
- name: total | ||
type: long | ||
description: > | ||
Total number of connections. |
Oops, something went wrong.