summaryrefslogtreecommitdiff
path: root/grafana/afs.yaml
blob: 011c2dc520f63945bf4fa5f2e28c1bcd63ccebac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
dashboard:
  title: 'AFS'
  rows:
    - title: Description
      height: 100px
      panels:
        - title: Description
          content: |
            **This dashboard is managed by [Grafyaml](http://docs.openstack.org/infra/system-config/grafyaml.html).**

            If you would like to make changes to this dashboard, please see the grafana directory in [project-config](https://git.openstack.org/cgit/openstack-infra/project-config/tree/grafana/afs.yaml).
          type: text

    - title: Partitions
      showTitle: true
      height: 200px
      panels:
        - title: "afs01.dfw /vicepa used"
          span: 3
          sparkline:
            full: true
            show: false
          thresholds: "0,90,95"
          format: percent
          targets:
            - target: "stats.gauges.afs.afs01_dfw_openstack_org.part.vicepa.total"
              refId: "A"
              hide: true
            - target: "scale(divideSeries(stats.gauges.afs.afs01_dfw_openstack_org.part.vicepa.used, #A), 100)"
              refId: "B"
              hide: false
          type: singlestat
          valueName: current
          gauge:
            show: true
            minValue: 0
            maxValue: 100
            thresholdMarkers: true

        - title: "afs02.dfw /vicepa used"
          span: 3
          sparkline:
            full: true
            show: false
          thresholds: "0,90,95"
          format: percent
          targets:
            - target: "stats.gauges.afs.afs02_dfw_openstack_org.part.vicepa.total"
              refId: "A"
              hide: true
            - target: "scale(divideSeries(stats.gauges.afs.afs02_dfw_openstack_org.part.vicepa.used, #A), 100)"
              refId: "B"
              hide: false
          type: singlestat
          valueName: current
          gauge:
            show: true
            minValue: 0
            maxValue: 100
            thresholdMarkers: true

        - title: "afs01.ord /vicepa used"
          span: 3
          sparkline:
            full: true
            show: false
          thresholds: "0,90,95"
          format: percent
          targets:
            - target: "stats.gauges.afs.afs01_ord_openstack_org.part.vicepa.total"
              refId: "A"
              hide: true
            - target: "scale(divideSeries(stats.gauges.afs.afs01_ord_openstack_org.part.vicepa.used, #A), 100)"
              refId: "B"
              hide: false
          type: singlestat
          valueName: current
          gauge:
            show: true
            minValue: 0
            maxValue: 100
            thresholdMarkers: true

        - title: Usage history
          type: graph
          fill: 0
          span: 3
          yaxes:
            - format: deckbytes
              min: 0
            - format: deckbytes
              min: 0
          targets:
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.part.vicepa.used, 'afs01.dfw')"
              refId: A
            - target: "alias(stats.gauges.afs.afs02_dfw_openstack_org.part.vicepa.used, 'afs02.dfw')"
              refId: B
            - target: "alias(stats.gauges.afs.afs01_ord_openstack_org.part.vicepa.used, 'afs01.ord')"
              refId: C

    - title: Server Health
      height: 200px
      showTitle: true
      panels:

        - title: afs01.dfw
          type: graph
          fill: 0
          span: 4
          targets:
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.calls_waiting, 'Calls Waiting')"
              refId: A
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.idle_threads, 'Idle Threads')"
              refId: B

        - title: afs02.dfw
          type: graph
          fill: 0
          span: 4
          targets:
            - target: "alias(stats.gauges.afs.afs02_dfw_openstack_org.calls_waiting, 'Calls Waiting')"
              refId: A
            - target: "alias(stats.gauges.afs.afs02_dfw_openstack_org.idle_threads, 'Idle Threads')"
              refId: B

        - title: afs01.ord
          type: graph
          fill: 0
          span: 4
          targets:
            - target: "alias(stats.gauges.afs.afs01_ord_openstack_org.calls_waiting, 'Calls Waiting')"
              refId: A
            - target: "alias(stats.gauges.afs.afs01_ord_openstack_org.idle_threads, 'Idle Threads')"
              refId: B

    - title: Release times
      height: 100px
      showTitle: true
      panels:

        - title: mirror.pypi
          type: singlestat
          valueName: current
          span: 2
          targets:
            - target: "scale(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_pypi_readonly.creation, 1000)"
          format: dateTimeFromNow
          valueFontSize: "50%"

        - title: mirror.ubuntu
          type: singlestat
          valueName: current
          span: 2
          targets:
            - target: "scale(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_ubuntu_readonly.creation, 1000)"
          format: dateTimeFromNow
          valueFontSize: "50%"

        - title: mirror.ubuntu-ports
          type: singlestat
          valueName: current
          span: 2
          targets:
            - target: "scale(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_ubuntu-ports_readonly.creation, 1000)"
          format: dateTimeFromNow
          valueFontSize: "50%"

        - title: mirror.centos
          type: singlestat
          valueName: current
          span: 2
          targets:
            - target: "scale(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_centos_readonly.creation, 1000)"
          format: dateTimeFromNow
          valueFontSize: "50%"

        - title: mirror.fedora
          type: singlestat
          valueName: current
          span: 2
          targets:
            - target: "scale(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_fedora_readonly.creation, 1000)"
          format: dateTimeFromNow
          valueFontSize: "50%"

        - title: mirror.epel
          type: singlestat
          valueName: current
          span: 2
          targets:
            - target: "scale(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_epel_readonly.creation, 1000)"
          format: dateTimeFromNow
          valueFontSize: "50%"

        - title: mirror.debian
          type: singlestat
          valueName: current
          span: 2
          targets:
            - target: "scale(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_debian_readonly.creation, 1000)"
          format: dateTimeFromNow
          valueFontSize: "50%"

        - title: mirror.opensuse
          type: singlestat
          valueName: current
          span: 2
          targets:
            - target: "scale(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_opensuse_readonly.creation, 1000)"
          format: dateTimeFromNow
          valueFontSize: "50%"

    - title: Volumes
      height: 200px
      showTitle: true
      panels:

        - title: mirror.pypi
          type: graph
          span: 4
          yaxes:
            - format: deckbytes
              min: 0
            - format: deckbytes
              min: 0
          targets:
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_pypi.used, 'Used')"
              refId: A
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_pypi.quota, 'Quota')"
              refId: B
            - target: "divideSeries(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_pypi.used, #B)"
              refId: C
              hide: true

        - title: mirror.ubuntu
          type: graph
          span: 4
          yaxes:
            - format: deckbytes
              min: 0
            - format: deckbytes
              min: 0
          targets:
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_ubuntu.used, 'Used')"
              refId: A
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_ubuntu.quota, 'Quota')"
              refId: B
            - target: "divideSeries(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_ubuntu.used, #B)"
              refId: C
              hide: true

        - title: mirror.ubuntu-ports
          type: graph
          span: 4
          yaxes:
            - format: deckbytes
              min: 0
            - format: deckbytes
              min: 0
          targets:
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_ubuntu-ports.used, 'Used')"
              refId: A
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_ubuntu-ports.quota, 'Quota')"
              refId: B
            - target: "divideSeries(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_ubuntu-ports.used, #B)"
              refId: C
              hide: true

        - title: mirror.centos
          type: graph
          span: 4
          yaxes:
            - format: deckbytes
              min: 0
            - format: deckbytes
              min: 0
          targets:
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_centos.used, 'Used')"
              refId: A
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_centos.quota, 'Quota')"
              refId: B
            - target: "divideSeries(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_centos.used, #B)"
              refId: C
              hide: true

        - title: mirror.fedora
          type: graph
          span: 4
          yaxes:
            - format: deckbytes
              min: 0
            - format: deckbytes
              min: 0
          targets:
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_fedora.used, 'Used')"
              refId: A
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_fedora.quota, 'Quota')"
              refId: B
            - target: "divideSeries(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_fedora.used, #B)"
              refId: C
              hide: true

        - title: mirror.epel
          type: graph
          span: 4
          yaxes:
            - format: deckbytes
              min: 0
            - format: deckbytes
              min: 0
          targets:
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_epel.used, 'Used')"
              refId: A
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_epel.quota, 'Quota')"
              refId: B
            - target: "divideSeries(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_epel.used, #B)"
              refId: C
              hide: true

        - title: mirror.debian
          type: graph
          span: 4
          yaxes:
            - format: deckbytes
              min: 0
            - format: deckbytes
              min: 0
          targets:
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_debian.used, 'Used')"
              refId: A
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_debian.quota, 'Quota')"
              refId: B
            - target: "divideSeries(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_debian.used, #B)"
              refId: C
              hide: true

        - title: mirror.opensuse
          type: graph
          span: 4
          yaxes:
            - format: deckbytes
              min: 0
            - format: deckbytes
              min: 0
          targets:
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_opensuse.used, 'Used')"
              refId: A
            - target: "alias(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_opensuse.quota, 'Quota')"
              refId: B
            - target: "divideSeries(stats.gauges.afs.afs01_dfw_openstack_org.vol.mirror_opensuse.used, #B)"
              refId: C
              hide: true