mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-07-30 09:14:04 +02:00
Add sample kibana dashboards
This commit is contained in:
parent
2099b534fa
commit
33f2db15fd
24
README.md
24
README.md
@ -141,6 +141,20 @@ On Linux systems, use one of the following commands to start Icingabeat:
|
|||||||
* `systemctl icingabeat start` or
|
* `systemctl icingabeat start` or
|
||||||
* `/etc/init.d/icingabeat start`
|
* `/etc/init.d/icingabeat start`
|
||||||
|
|
||||||
|
## Dashboards
|
||||||
|
We have dashboards prepared that you can use when getting started with
|
||||||
|
Icingabeat. Download the dashboards from the.
|
||||||
|
[latest release](https://github.com/Icinga/icingabeat/releases/latest) page
|
||||||
|
|
||||||
|
The tool to import dashboards is already included in the Icingabeat package.
|
||||||
|
|
||||||
|
```
|
||||||
|
unzip icingabeat-dashboards-0.2.0.zip
|
||||||
|
/usr/share/icingabeat/scripts/import_dashboards -dir /tmp/icingabeat-dashboards-0.2.0 -es http://127.0.0.1:9200
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
Icingabeat exports a bunch of fields. Have a look to the
|
Icingabeat exports a bunch of fields. Have a look to the
|
||||||
[fields.asciidoc](docs/fields.asciidoc) for details.
|
[fields.asciidoc](docs/fields.asciidoc) for details.
|
||||||
@ -249,3 +263,13 @@ export TARGETS="\"linux/amd64 linux/386\""
|
|||||||
export PACKAGES=icingabeat/deb
|
export PACKAGES=icingabeat/deb
|
||||||
make package
|
make package
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Dashboards
|
||||||
|
To be able to export dashboards and all its dependencies (visualizations and
|
||||||
|
searches) you have to name the dashboard with a `icingabeat-` prefix.
|
||||||
|
|
||||||
|
Export dashboards:
|
||||||
|
```shell
|
||||||
|
export ES_URL=http://127.0.0.1:9200
|
||||||
|
make export-dashboards
|
||||||
|
```
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"hits": 0,
|
||||||
|
"timeRestore": false,
|
||||||
|
"description": "",
|
||||||
|
"title": "icingabeat-checkresults",
|
||||||
|
"uiStateJSON": "{}",
|
||||||
|
"panelsJSON": "[{\"size_x\":12,\"size_y\":3,\"panelIndex\":1,\"type\":\"visualization\",\"id\":\"9631be10-0977-11e7-a4dd-e96fa284b426\",\"col\":1,\"row\":1},{\"size_x\":3,\"size_y\":6,\"panelIndex\":2,\"type\":\"visualization\",\"id\":\"d50bb810-0978-11e7-a4dd-e96fa284b426\",\"col\":1,\"row\":4},{\"size_x\":4,\"size_y\":6,\"panelIndex\":3,\"type\":\"visualization\",\"id\":\"df437df0-0977-11e7-a4dd-e96fa284b426\",\"col\":4,\"row\":4},{\"size_x\":5,\"size_y\":6,\"panelIndex\":4,\"type\":\"visualization\",\"id\":\"cf643aa0-0977-11e7-a4dd-e96fa284b426\",\"col\":8,\"row\":4}]",
|
||||||
|
"optionsJSON": "{\"darkTheme\":false}",
|
||||||
|
"version": 1,
|
||||||
|
"kibanaSavedObjectMeta": {
|
||||||
|
"searchSourceJSON": "{\"filter\":[{\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}}}]}"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"sort": [
|
||||||
|
"@timestamp",
|
||||||
|
"desc"
|
||||||
|
],
|
||||||
|
"hits": 0,
|
||||||
|
"description": "",
|
||||||
|
"title": "CheckResults",
|
||||||
|
"version": 1,
|
||||||
|
"kibanaSavedObjectMeta": {
|
||||||
|
"searchSourceJSON": "{\"index\":\"icingabeat-*\",\"query\":{\"query_string\":{\"query\":\"type:icingabeat.event.checkresult\",\"analyze_wildcard\":true}},\"filter\":[],\"highlight\":{\"pre_tags\":[\"@kibana-highlighted-field@\"],\"post_tags\":[\"@/kibana-highlighted-field@\"],\"fields\":{\"*\":{}},\"require_field_match\":false,\"fragment_size\":2147483647}}"
|
||||||
|
},
|
||||||
|
"columns": [
|
||||||
|
"_source"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"visState": "{\"title\":\"CheckResults by State\",\"type\":\"histogram\",\"params\":{\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"scale\":\"linear\",\"mode\":\"stacked\",\"times\":[],\"addTimeMarker\":false,\"defaultYExtents\":false,\"setYExtents\":false,\"orderBucketsBySum\":false},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"@timestamp\",\"interval\":\"auto\",\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{}}},{\"id\":\"3\",\"enabled\":true,\"type\":\"filters\",\"schema\":\"group\",\"params\":{\"filters\":[{\"input\":{\"query\":{\"query_string\":{\"query\":\"check_result.state:0\",\"analyze_wildcard\":true}}},\"label\":\"0: OK\"},{\"input\":{\"query\":{\"query_string\":{\"query\":\"check_result.state:1\",\"analyze_wildcard\":true}}},\"label\":\"1: Warning\"},{\"input\":{\"query\":{\"query_string\":{\"query\":\"check_result.state:2\",\"analyze_wildcard\":true}}},\"label\":\"2: Critical\"},{\"input\":{\"query\":{\"query_string\":{\"query\":\"check_result.state:3\",\"analyze_wildcard\":true}}},\"label\":\"3: Unknown\"}]}}],\"listeners\":{}}",
|
||||||
|
"description": "",
|
||||||
|
"title": "CheckResults by State",
|
||||||
|
"uiStateJSON": "{\"vis\":{\"colors\":{\"0\":\"#629E51\",\"1\":\"#E5AC0E\",\"2\":\"#BF1B00\",\"Ok\":\"#508642\",\"Critical\":\"#BF1B00\",\"Warning\":\"#EAB839\",\"Unknown\":\"#962D82\",\"0: OK\":\"#629E51\",\"1: Warning\":\"#E5AC0E\",\"2: Critical\":\"#BF1B00\",\"3: Unknown\":\"#962D82\"}}}",
|
||||||
|
"version": 1,
|
||||||
|
"savedSearchId": "5091de50-0975-11e7-a4dd-e96fa284b426",
|
||||||
|
"kibanaSavedObjectMeta": {
|
||||||
|
"searchSourceJSON": "{\"filter\":[]}"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"visState": "{\"title\":\"Services Tag Cloud\",\"type\":\"tagcloud\",\"params\":{\"scale\":\"linear\",\"orientation\":\"single\",\"minFontSize\":18,\"maxFontSize\":72},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"segment\",\"params\":{\"field\":\"service\",\"size\":50,\"order\":\"desc\",\"orderBy\":\"1\",\"customLabel\":\"Services\"}}],\"listeners\":{}}",
|
||||||
|
"description": "",
|
||||||
|
"title": "Services Tag Cloud",
|
||||||
|
"uiStateJSON": "{}",
|
||||||
|
"version": 1,
|
||||||
|
"savedSearchId": "5091de50-0975-11e7-a4dd-e96fa284b426",
|
||||||
|
"kibanaSavedObjectMeta": {
|
||||||
|
"searchSourceJSON": "{\"filter\":[]}"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"visState": "{\"title\":\"CheckResult Count\",\"type\":\"metric\",\"params\":{\"handleNoResults\":true,\"fontSize\":60},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{\"customLabel\":\"CheckResults received\"}}],\"listeners\":{}}",
|
||||||
|
"description": "",
|
||||||
|
"title": "CheckResult Count",
|
||||||
|
"uiStateJSON": "{}",
|
||||||
|
"version": 1,
|
||||||
|
"savedSearchId": "5091de50-0975-11e7-a4dd-e96fa284b426",
|
||||||
|
"kibanaSavedObjectMeta": {
|
||||||
|
"searchSourceJSON": "{\"filter\":[]}"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"visState": "{\"title\":\"Hosts Tag Cloud\",\"type\":\"tagcloud\",\"params\":{\"scale\":\"linear\",\"orientation\":\"single\",\"minFontSize\":18,\"maxFontSize\":72},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"segment\",\"params\":{\"field\":\"host\",\"size\":50,\"order\":\"desc\",\"orderBy\":\"1\",\"customLabel\":\"Hosts\"}}],\"listeners\":{}}",
|
||||||
|
"description": "",
|
||||||
|
"title": "Hosts Tag Cloud",
|
||||||
|
"uiStateJSON": "{}",
|
||||||
|
"version": 1,
|
||||||
|
"savedSearchId": "5091de50-0975-11e7-a4dd-e96fa284b426",
|
||||||
|
"kibanaSavedObjectMeta": {
|
||||||
|
"searchSourceJSON": "{\"filter\":[]}"
|
||||||
|
}
|
||||||
|
}
|
@ -7,7 +7,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"version": "5.1.2"
|
"version": "0.2.0"
|
||||||
},
|
},
|
||||||
"dynamic_templates": [
|
"dynamic_templates": [
|
||||||
{
|
{
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"norms": false
|
"norms": false
|
||||||
},
|
},
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"version": "5.1.2"
|
"version": "0.2.0"
|
||||||
},
|
},
|
||||||
"dynamic_templates": [
|
"dynamic_templates": [
|
||||||
{
|
{
|
||||||
@ -351,6 +351,7 @@
|
|||||||
},
|
},
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"index.mapping.total_fields.limit": 10000,
|
||||||
"index.refresh_interval": "5s"
|
"index.refresh_interval": "5s"
|
||||||
},
|
},
|
||||||
"template": "icingabeat-*"
|
"template": "icingabeat-*"
|
||||||
|
BIN
screenshots/icingabeat-checkresults-dashboard.png
Normal file
BIN
screenshots/icingabeat-checkresults-dashboard.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 149 KiB |
2
vendor/github.com/elastic/beats/dev-tools/packer/version.yml
generated
vendored
2
vendor/github.com/elastic/beats/dev-tools/packer/version.yml
generated
vendored
@ -1 +1 @@
|
|||||||
version: "5.2.2"
|
version: "0.2.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user