summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2015-10-15 12:44:57 -0700
committerClark Boylan <clark.boylan@gmail.com>2015-10-16 09:13:35 -0700
commit86fb79e091634064f420abf003b54bf8d3d5b6e7 (patch)
tree4c8947caaa40eeb80dffd8ac1aa9028b6eabc6a3
parentc05179729483e5943655d12414bf96836def3fd4 (diff)
Use custom logstash dashboard
We update the default logstash dashboard to remove excessively short refresh period options, default the query result listing output to be timestamp and message, default to a 15 minute query instead of a 24 hour query, and default to a blank query instead of '*" because the '*' forces you to delete it to add any new queries but they are functionally equivalent. Change-Id: Id68a1f1e496f5d729b21aa2be30a5e2b73ab65fd
Notes
Notes (review): Verified+2: Jenkins Code-Review+1: Matthew Treinish <mtreinish@kortar.org> Code-Review+2: Jeremy Stanley <fungi@yuggoth.org> Workflow+1: Jeremy Stanley <fungi@yuggoth.org> Code-Review+1: K Jonathan Harker <code@gentlydownthe.net> Code-Review+2: Spencer Krum <nibz@spencerkrum.com> Submitted-by: Jenkins Submitted-at: Mon, 26 Oct 2015 20:56:10 +0000 Reviewed-on: https://review.openstack.org/235563 Project: openstack-infra/puppet-kibana Branch: refs/heads/master
-rw-r--r--files/logstash.json226
-rw-r--r--manifests/js.pp8
2 files changed, 234 insertions, 0 deletions
diff --git a/files/logstash.json b/files/logstash.json
new file mode 100644
index 0000000..51a58b3
--- /dev/null
+++ b/files/logstash.json
@@ -0,0 +1,226 @@
1{
2 "title": "Logstash Search",
3 "services": {
4 "query": {
5 "list": {
6 "0": {
7 "query": "{{ARGS.query || ''}}",
8 "alias": "",
9 "color": "#7EB26D",
10 "id": 0,
11 "pin": false,
12 "type": "lucene"
13 }
14 },
15 "ids": [
16 0
17 ]
18 },
19 "filter": {
20 "list": {
21 "0": {
22 "type": "time",
23 "field": "@timestamp",
24 "from": "now-{{ARGS.from || '15m'}}",
25 "to": "now",
26 "mandate": "must",
27 "active": true,
28 "alias": "",
29 "id": 0
30 }
31 },
32 "ids": [
33 0
34 ]
35 }
36 },
37 "rows": [
38 {
39 "title": "Graph",
40 "height": "350px",
41 "editable": true,
42 "collapse": false,
43 "collapsable": true,
44 "panels": [
45 {
46 "span": 12,
47 "editable": true,
48 "group": [
49 "default"
50 ],
51 "type": "histogram",
52 "mode": "count",
53 "time_field": "@timestamp",
54 "value_field": null,
55 "auto_int": true,
56 "resolution": 100,
57 "interval": "10m",
58 "fill": 3,
59 "linewidth": 3,
60 "timezone": "browser",
61 "spyable": true,
62 "zoomlinks": true,
63 "bars": true,
64 "stack": true,
65 "points": false,
66 "lines": false,
67 "legend": true,
68 "x-axis": true,
69 "y-axis": true,
70 "percentage": false,
71 "interactive": true,
72 "queries": {
73 "mode": "all",
74 "ids": [
75 0
76 ]
77 },
78 "title": "Events over time",
79 "intervals": [
80 "auto",
81 "1s",
82 "1m",
83 "5m",
84 "10m",
85 "30m",
86 "1h",
87 "3h",
88 "12h",
89 "1d",
90 "1w",
91 "1M",
92 "1y"
93 ],
94 "options": true,
95 "tooltip": {
96 "value_type": "cumulative",
97 "query_as_alias": false
98 }
99 }
100 ],
101 "notice": false
102 },
103 {
104 "title": "Events",
105 "height": "350px",
106 "editable": true,
107 "collapse": false,
108 "collapsable": true,
109 "panels": [
110 {
111 "title": "All events",
112 "error": false,
113 "span": 12,
114 "editable": true,
115 "group": [
116 "default"
117 ],
118 "type": "table",
119 "size": 100,
120 "pages": 5,
121 "offset": 0,
122 "sort": [
123 "@timestamp",
124 "desc"
125 ],
126 "style": {
127 "font-size": "9pt"
128 },
129 "overflow": "min-height",
130 "fields": [
131 "@timestamp",
132 "message"
133 ],
134 "localTime": true,
135 "timeField": "@timestamp",
136 "highlight": [],
137 "sortable": true,
138 "header": true,
139 "paging": true,
140 "spyable": true,
141 "queries": {
142 "mode": "all",
143 "ids": [
144 0
145 ]
146 },
147 "field_list": true,
148 "status": "Stable",
149 "trimFactor": 300,
150 "normTimes": true
151 }
152 ],
153 "notice": false
154 }
155 ],
156 "editable": true,
157 "failover": false,
158 "index": {
159 "interval": "day",
160 "pattern": "[logstash-]YYYY.MM.DD",
161 "default": "NO_TIME_FILTER_OR_INDEX_PATTERN_NOT_MATCHED"
162 },
163 "style": "{{ARGS.style || 'dark'}}",
164 "panel_hints": true,
165 "pulldowns": [
166 {
167 "type": "query",
168 "collapse": false,
169 "notice": false,
170 "query": "*",
171 "pinned": true,
172 "history": [],
173 "remember": 10
174 },
175 {
176 "type": "filtering",
177 "collapse": true,
178 "notice": false
179 }
180 ],
181 "nav": [
182 {
183 "type": "timepicker",
184 "collapse": false,
185 "notice": false,
186 "status": "Stable",
187 "time_options": [
188 "5m",
189 "15m",
190 "1h",
191 "6h",
192 "12h",
193 "24h",
194 "2d",
195 "7d",
196 "30d"
197 ],
198 "refresh_intervals": [
199 "5m",
200 "15m",
201 "30m",
202 "1h",
203 "2h",
204 "1d"
205 ],
206 "timefield": "@timestamp",
207 "now": true,
208 "filter_id": 0
209 }
210 ],
211 "loader": {
212 "save_gist": false,
213 "save_elasticsearch": true,
214 "save_local": true,
215 "save_default": true,
216 "save_temp": true,
217 "save_temp_ttl_enable": true,
218 "save_temp_ttl": "30d",
219 "load_gist": true,
220 "load_elasticsearch": true,
221 "load_elasticsearch_size": 20,
222 "load_local": true,
223 "hide": false
224 },
225 "refresh": false
226}
diff --git a/manifests/js.pp b/manifests/js.pp
index 493204a..eb1c3b5 100644
--- a/manifests/js.pp
+++ b/manifests/js.pp
@@ -43,6 +43,14 @@ class kibana::js (
43 subscribe => Vcsrepo[$base_path], 43 subscribe => Vcsrepo[$base_path],
44 } 44 }
45 45
46 file { "${base_path}/src/app/dashboards/logstash.json":
47 ensure => present,
48 source => 'puppet:///modules/kibana/logstash.json',
49 owner => 'www-data',
50 require => Vcsrepo[$base_path],
51 subscribe => Vcsrepo[$base_path],
52 }
53
46 httpd::vhost { 'kibana': 54 httpd::vhost { 'kibana':
47 docroot => "${base_path}/src", 55 docroot => "${base_path}/src",
48 vhost_name => $vhost_name, 56 vhost_name => $vhost_name,