Skip to content

Commit 13c0386

Browse files
committed
pr feedback
1 parent d9f61a3 commit 13c0386

File tree

10 files changed

+115
-84
lines changed

10 files changed

+115
-84
lines changed

apache-hbase-mixin/alerts.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
{
4242
alert: 'HBaseOldRegionsInTransition',
4343
expr: |||
44-
100 * assignment_manager_rit_count_over_threshold / clamp_min(assignment_manager_rit_count, 1) > %(alertsOldRegionsInTransition)s
44+
100 * assignment_manager_rit_count_over_threshold / clamp_min(assignment_manager_rit_count{%(filteringSelector)s}, 1) > %(alertsOldRegionsInTransition)s
4545
||| % this.config,
4646
'for': '5m',
4747
labels: {
@@ -58,7 +58,7 @@
5858
{
5959
alert: 'HBaseHighMasterAuthFailRate',
6060
expr: |||
61-
100 * rate(master_authentication_failures[5m]) / (clamp_min(rate(master_authentication_successes[5m]), 1) + clamp_min(rate(master_authentication_failures[5m]), 1)) > %(alertsHighMasterAuthFailRate)s
61+
100 * rate(master_authentication_failures[5m]) / (clamp_min(rate(master_authentication_successes{%(filteringSelector)s}[5m]), 1) + clamp_min(rate(master_authentication_failures{%(filteringSelector)s}[5m]), 1)) > %(alertsHighMasterAuthFailRate)s
6262
||| % this.config,
6363
'for': '5m',
6464
labels: {
@@ -75,7 +75,7 @@
7575
{
7676
alert: 'HBaseHighRSAuthFailRate',
7777
expr: |||
78-
100 * rate(region_server_authentication_failures[5m]) / (clamp_min(rate(region_server_authentication_successes[5m]), 1) + clamp_min(rate(region_server_authentication_failures[5m]), 1)) > %(alertsHighRSAuthFailRate)s
78+
100 * rate(region_server_authentication_failures[5m]) / (clamp_min(rate(region_server_authentication_successes{%(filteringSelector)s}[5m]), 1) + clamp_min(rate(region_server_authentication_failures{%(filteringSelector)s}[5m]), 1)) > %(alertsHighRSAuthFailRate)s
7979
||| % this.config,
8080
'for': '5m',
8181
labels: {

apache-hbase-mixin/dashboards.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ local logslib = import 'logs-lib/logs/main.libsonnet';
7575
dashboards+:
7676
{
7777
logs+:
78-
root.applyCommon(super.logs.templating.list, uid=uid + '_logs', tags=tags, links=links { logs+:: {} }, annotations=annotations, timezone=timezone, refresh=refresh, period=period),
78+
root.applyCommon(super.logs.templating.list, uid=uid + '-logs', tags=tags, links=links { logs+:: {} }, annotations=annotations, timezone=timezone, refresh=refresh, period=period),
7979
},
8080
panels+:
8181
{

apache-hbase-mixin/dashboards_out/apache-hbase-cluster-overview.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apache-hbase-mixin/dashboards_out/apache-hbase-logs-overview.json renamed to apache-hbase-mixin/dashboards_out/apache-hbase-logs.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apache-hbase-mixin/dashboards_out/apache-hbase-regionserver-overview.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apache-hbase-mixin/mixin.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ local hbase = hbaselib.new()
1111
},
1212
);
1313

14-
local optional_lablels = {
14+
local optional_labels = {
1515
cluster+: {
1616
allValue: '.*',
1717
},
@@ -24,7 +24,7 @@ local optional_lablels = {
2424
grafanaDashboards+:: {
2525
[fname]:
2626
local dashboard = hbase.grafana.dashboards[fname];
27-
dashboard + util.patch_variables(dashboard, optional_lablels)
27+
dashboard + util.patch_variables(dashboard, optional_labels)
2828
for fname in std.objectFields(hbase.grafana.dashboards)
2929
},
3030
prometheusAlerts+:: hbase.prometheus.alerts,

apache-hbase-mixin/panels.libsonnet

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ local commonlib = import 'common-lib/common/main.libsonnet';
151151
g.panel.table.standardOptions.withLinks([
152152
{
153153
title: '',
154-
url: '/d/apachehbase-regionserver-overview?from=${__from}&to=${__to}&var-instance=${__data.fields["RegionServer"]}',
154+
url: '/d/'+ this.grafana.dashboards['apache-hbase-regionserver-overview.json'].uid + '?from=${__from}&to=${__to}&var-instance=${__data.fields["RegionServer"]}',
155155
},
156156
])
157157
),
@@ -290,23 +290,23 @@ local commonlib = import 'common-lib/common/main.libsonnet';
290290
regionsPanel:
291291
commonlib.panels.generic.stat.info.new(
292292
'Regions',
293-
targets=[signals.regionserver.regionCount.asTarget()],
293+
targets=[signals.regionserver.regionCountAggregated.asTarget()],
294294
description='The number of regions hosted by the RegionServer.'
295295
)
296296
+ g.panel.stat.standardOptions.withUnit('short'),
297297

298298
storeFilesPanel:
299299
commonlib.panels.generic.stat.info.new(
300300
'Store files',
301-
targets=[signals.regionserver.storeFileCount.asTarget()],
301+
targets=[signals.regionserver.storeFileCountAggregated.asTarget()],
302302
description='The number of store files on disk currently managed by the RegionServer.'
303303
)
304304
+ g.panel.stat.standardOptions.withUnit('short'),
305305

306306
storeFileSizePanel:
307307
commonlib.panels.generic.stat.info.new(
308308
'Store file size',
309-
targets=[signals.regionserver.storeFileSize.asTarget()],
309+
targets=[signals.regionserver.storeFileSizeAggregated.asTarget()],
310310
description='The total size of the store files on disk managed by the RegionServer.'
311311
)
312312
+ g.panel.stat.standardOptions.withUnit('decbytes'),
@@ -315,7 +315,7 @@ local commonlib = import 'common-lib/common/main.libsonnet';
315315
rpcConnectionsPanel:
316316
commonlib.panels.generic.stat.info.new(
317317
'RPC connections',
318-
targets=[signals.regionserver.rpcConnections.asTarget()],
318+
targets=[signals.regionserver.rpcConnectionsAggregated.asTarget()],
319319
description='The number of open connections to the RegionServer.'
320320
)
321321
+ g.panel.stat.standardOptions.withUnit('short'),
@@ -453,8 +453,8 @@ local commonlib = import 'common-lib/common/main.libsonnet';
453453
commonlib.panels.generic.timeSeries.base.new(
454454
'Authentications',
455455
targets=[
456-
signals.regionserver.regionServerAuthenticationSuccess.asTarget(),
457-
signals.regionserver.regionServerAuthenticationFailure.asTarget(),
456+
signals.cluster.regionServerAuthenticationSuccess.asTarget(),
457+
signals.cluster.regionServerAuthenticationFailure.asTarget(),
458458
],
459459
description='The rate of successful and unsuccessful authentications.'
460460
)

0 commit comments

Comments
 (0)