mirror of
https://github.com/ceph/ceph
synced 2025-02-16 07:17:21 +00:00
Fixes: https://tracker.ceph.com/issues/69727 Signed-off-by: Piyush Agarwal <piyushagarwal14.pa@gmail.com>
101 lines
2.5 KiB
Plaintext
101 lines
2.5 KiB
Plaintext
local g = import 'grafonnet/grafana.libsonnet';
|
|
|
|
(import 'utils.libsonnet') {
|
|
'cephfs-overview.json':
|
|
$.dashboardSchema(
|
|
'MDS Performance',
|
|
'',
|
|
'tbO9LAiZz',
|
|
'now-1h',
|
|
'30s',
|
|
16,
|
|
$._config.dashboardTags,
|
|
''
|
|
)
|
|
.addAnnotation(
|
|
$.addAnnotationSchema(
|
|
1,
|
|
'-- Grafana --',
|
|
true,
|
|
true,
|
|
'rgba(0, 211, 255, 1)',
|
|
'Annotations & Alerts',
|
|
'dashboard'
|
|
)
|
|
)
|
|
.addRequired(
|
|
type='grafana', id='grafana', name='Grafana', version='5.3.2'
|
|
)
|
|
.addRequired(
|
|
type='panel', id='graph', name='Graph', version='5.0.0'
|
|
)
|
|
.addTemplate(
|
|
g.template.datasource('datasource', 'prometheus', 'default', label='Data Source')
|
|
)
|
|
.addTemplate(
|
|
$.addClusterTemplate()
|
|
)
|
|
.addTemplate(
|
|
$.addTemplateSchema('mds_servers',
|
|
'$datasource',
|
|
'label_values(ceph_mds_inodes{%(matchers)s}, ceph_daemon)' % $.matchers(),
|
|
1,
|
|
true,
|
|
1,
|
|
'MDS Server',
|
|
'')
|
|
)
|
|
.addLinks([
|
|
$.addLinkSchema(
|
|
asDropdown=true,
|
|
icon='external link',
|
|
includeVars=true,
|
|
keepTime=true,
|
|
tags=[],
|
|
targetBlank=false,
|
|
title='Browse Dashboards',
|
|
tooltip='',
|
|
type='dashboards',
|
|
url=''
|
|
),
|
|
])
|
|
.addPanels([
|
|
$.addRowSchema(false, true, 'MDS Performance') + { gridPos: { x: 0, y: 0, w: 24, h: 1 } },
|
|
$.simpleGraphPanel(
|
|
{},
|
|
'MDS Workload - $mds_servers',
|
|
'',
|
|
'none',
|
|
'Reads(-) / Writes (+)',
|
|
0,
|
|
'sum(rate(ceph_objecter_op_r{ceph_daemon=~"($mds_servers).*", %(matchers)s}[$__rate_interval]))' % $.matchers(),
|
|
'Read Ops',
|
|
0,
|
|
1,
|
|
12,
|
|
9
|
|
)
|
|
.addTarget($.addTargetSchema(
|
|
'sum(rate(ceph_objecter_op_w{ceph_daemon=~"($mds_servers).*", %(matchers)s}[$__rate_interval]))' % $.matchers(),
|
|
'Write Ops'
|
|
))
|
|
.addSeriesOverride(
|
|
{ alias: '/.*Reads/', transform: 'negative-Y' }
|
|
),
|
|
$.simpleGraphPanel(
|
|
{},
|
|
'Client Request Load - $mds_servers',
|
|
'',
|
|
'none',
|
|
'Client Requests',
|
|
0,
|
|
'ceph_mds_server_handle_client_request{ceph_daemon=~"($mds_servers).*", %(matchers)s}' % $.matchers(),
|
|
'{{ceph_daemon}}',
|
|
12,
|
|
1,
|
|
12,
|
|
9
|
|
),
|
|
]),
|
|
}
|