]> git.proxmox.com Git - ceph.git/blob - ceph/monitoring/ceph-mixin/dashboards/cephfs.libsonnet
import quincy beta 17.1.0
[ceph.git] / ceph / monitoring / ceph-mixin / dashboards / cephfs.libsonnet
1 local g = import 'grafonnet/grafana.libsonnet';
2 local u = import 'utils.libsonnet';
3
4 {
5 grafanaDashboards+:: {
6 'cephfs-overview.json':
7 local CephfsOverviewGraphPanel(title, formatY1, labelY1, expr, legendFormat, x, y, w, h) =
8 u.graphPanelSchema({},
9 title,
10 '',
11 'null',
12 false,
13 formatY1,
14 'short',
15 labelY1,
16 null,
17 0,
18 1,
19 '$datasource')
20 .addTargets(
21 [u.addTargetSchema(expr, 1, 'time_series', legendFormat)]
22 ) + { gridPos: { x: x, y: y, w: w, h: h } };
23
24 u.dashboardSchema(
25 'MDS Performance',
26 '',
27 'tbO9LAiZz',
28 'now-1h',
29 '15s',
30 16,
31 [],
32 '',
33 {
34 refresh_intervals: ['5s', '10s', '15s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'],
35 time_options: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'],
36 }
37 )
38 .addAnnotation(
39 u.addAnnotationSchema(
40 1,
41 '-- Grafana --',
42 true,
43 true,
44 'rgba(0, 211, 255, 1)',
45 'Annotations & Alerts',
46 'dashboard'
47 )
48 )
49 .addRequired(
50 type='grafana', id='grafana', name='Grafana', version='5.3.2'
51 )
52 .addRequired(
53 type='panel', id='graph', name='Graph', version='5.0.0'
54 )
55 .addTemplate(
56 g.template.datasource('datasource', 'prometheus', 'default', label='Data Source')
57 )
58 .addTemplate(
59 u.addTemplateSchema('mds_servers',
60 '$datasource',
61 'label_values(ceph_mds_inodes, ceph_daemon)',
62 1,
63 true,
64 1,
65 'MDS Server',
66 '')
67 )
68 .addPanels([
69 u.addRowSchema(false, true, 'MDS Performance') + { gridPos: { x: 0, y: 0, w: 24, h: 1 } },
70 CephfsOverviewGraphPanel(
71 'MDS Workload - $mds_servers',
72 'none',
73 'Reads(-) / Writes (+)',
74 'sum(rate(ceph_objecter_op_r{ceph_daemon=~"($mds_servers).*"}[1m]))',
75 'Read Ops',
76 0,
77 1,
78 12,
79 9
80 )
81 .addTarget(u.addTargetSchema(
82 'sum(rate(ceph_objecter_op_w{ceph_daemon=~"($mds_servers).*"}[1m]))',
83 1,
84 'time_series',
85 'Write Ops'
86 ))
87 .addSeriesOverride(
88 { alias: '/.*Reads/', transform: 'negative-Y' }
89 ),
90 CephfsOverviewGraphPanel(
91 'Client Request Load - $mds_servers',
92 'none',
93 'Client Requests',
94 'ceph_mds_server_handle_client_request{ceph_daemon=~"($mds_servers).*"}',
95 '{{ceph_daemon}}',
96 12,
97 1,
98 12,
99 9
100 ),
101 ]),
102 },
103 }