1 local g = import 'grafonnet/grafana.libsonnet';
2 local u = import 'utils.libsonnet';
6 'cephfs-overview.json':
7 local CephfsOverviewGraphPanel(title, formatY1, labelY1, expr, legendFormat, x, y, w, h) =
21 [u.addTargetSchema(expr, 1, 'time_series', legendFormat)]
22 ) + { gridPos: { x: x, y: y, w: w, h: h } };
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'],
39 u.addAnnotationSchema(
44 'rgba(0, 211, 255, 1)',
45 'Annotations & Alerts',
50 type='grafana', id='grafana', name='Grafana', version='5.3.2'
53 type='panel', id='graph', name='Graph', version='5.0.0'
56 g.template.datasource('datasource', 'prometheus', 'default', label='Data Source')
59 u.addTemplateSchema('mds_servers',
61 'label_values(ceph_mds_inodes, ceph_daemon)',
69 u.addRowSchema(false, true, 'MDS Performance') + { gridPos: { x: 0, y: 0, w: 24, h: 1 } },
70 CephfsOverviewGraphPanel(
71 'MDS Workload - $mds_servers',
73 'Reads(-) / Writes (+)',
74 'sum(rate(ceph_objecter_op_r{ceph_daemon=~"($mds_servers).*"}[1m]))',
81 .addTarget(u.addTargetSchema(
82 'sum(rate(ceph_objecter_op_w{ceph_daemon=~"($mds_servers).*"}[1m]))',
88 { alias: '/.*Reads/', transform: 'negative-Y' }
90 CephfsOverviewGraphPanel(
91 'Client Request Load - $mds_servers',
94 'ceph_mds_server_handle_client_request{ceph_daemon=~"($mds_servers).*"}',