Skip to content

Commit bc3067a

Browse files
committed
Refactored signal files to align with the dashboards instead of grouping by category.
1 parent ddd178a commit bc3067a

File tree

12 files changed

+219
-242
lines changed

12 files changed

+219
-242
lines changed

wildfly-mixin/config.libsonnet

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
local this = self,
33
enableMultiCluster: false,
4-
filteringSelector: '', // set to apply static filters to all queries and alerts, i.e. job="integrations/wildfly"
4+
filteringSelector: 'job="integrations/wildfly"', // set to apply static filters to all queries and alerts, i.e. job="integrations/wildfly"
55
groupLabels: ['job', 'cluster'],
66
logLabels: ['job', 'cluster', 'instance'],
77
instanceLabels: ['instance'],
88

9-
dashboardTags: [self.uid],
109
uid: 'wildfly',
10+
dashboardTags: [self.uid],
1111
dashboardNamePrefix: 'Wildfly',
1212
dashboardPeriod: 'now-1h',
1313
dashboardTimezone: 'default',
@@ -26,10 +26,7 @@
2626

2727
// Signals configuration
2828
signals+: {
29-
requests: (import './signals/requests.libsonnet')(this),
30-
network: (import './signals/network.libsonnet')(this),
31-
connections: (import './signals/connections.libsonnet')(this),
32-
sessions: (import './signals/sessions.libsonnet')(this),
33-
transactions: (import './signals/transactions.libsonnet')(this),
29+
overview: (import './signals/overview.libsonnet')(this),
30+
datasource: (import './signals/datasource.libsonnet')(this),
3431
},
3532
}

wildfly-mixin/dashboards.libsonnet

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local logslib = import 'logs-lib/logs/main.libsonnet';
44
{
55
local root = self,
66
new(this)::
7-
7+
local prefix = this.config.dashboardNamePrefix;
88
local links = this.grafana.links;
99
local tags = this.config.dashboardTags;
1010
local uid = g.util.string.slugify(this.config.uid);
@@ -17,7 +17,7 @@ local logslib = import 'logs-lib/logs/main.libsonnet';
1717
{
1818

1919
'wildfly-overview.json':
20-
g.dashboard.new(this.config.dashboardNamePrefix + ' overview')
20+
g.dashboard.new(prefix + ' overview')
2121
+ g.dashboard.withPanels(
2222
g.util.panel.resolveCollapsedFlagOnRows(
2323
g.util.grid.wrapPanels([
@@ -46,7 +46,7 @@ local logslib = import 'logs-lib/logs/main.libsonnet';
4646
period,
4747
),
4848
'wildfly-datasource.json':
49-
g.dashboard.new(this.config.dashboardNamePrefix + ' datasource')
49+
g.dashboard.new(prefix + ' datasource')
5050
+ g.dashboard.withPanels(
5151
g.util.panel.resolveCollapsedFlagOnRows(
5252
g.util.grid.wrapPanels([
@@ -73,11 +73,11 @@ local logslib = import 'logs-lib/logs/main.libsonnet';
7373
} + if this.config.enableLokiLogs then {
7474
'wildfly-logs.json':
7575
logslib.new(
76-
this.config.dashboardNamePrefix + ' logs',
76+
prefix + ' logs',
7777
datasourceName=this.grafana.variables.datasources.loki.name,
7878
datasourceRegex=this.grafana.variables.datasources.loki.regex,
7979
filterSelector=this.config.filteringSelector,
80-
labels=this.config.groupLabels + this.config.extraLogLabels,
80+
labels=this.config.logLabels + this.config.extraLogLabels,
8181
formatParser=null,
8282
showLogsVolume=this.config.showLogsVolume,
8383
)

wildfly-mixin/dashboards_out/wildfly-datasource.json

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

wildfly-mixin/dashboards_out/wildfly-logs.json

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

wildfly-mixin/dashboards_out/wildfly-overview.json

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

0 commit comments

Comments
 (0)