Skip to content

Commit

Permalink
fix: remove defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Feb 2, 2024
1 parent b905155 commit 1a1340d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions terraform/monitoring/panels/app/app_metric.libsonnet
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
local grafana = import '../../grafonnet-lib/grafana.libsonnet';
local defaults = import '../../grafonnet-lib/defaults.libsonnet';
local panels = grafana.panels;
local targets = grafana.targets;

local defaults = import '../defaults.libsonnet';

{
new(ds, vars, title, metric_name, metric_label)::
panels.timeseries(
Expand Down
6 changes: 0 additions & 6 deletions terraform/monitoring/panels/defaults.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,5 @@ local grafana = import '../grafonnet-lib/grafana.libsonnet';
color : 'red',
value : 50
}),

timeseries_tr80:: self.timeseries
.addThreshold({
color : 'red',
value : 80
}),
},
}
2 changes: 1 addition & 1 deletion terraform/monitoring/panels/docdb/cpu.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ local cpu_alert(vars) = alert.new(
title = 'CPU Utilization',
datasource = ds.cloudwatch,
)
.configure(defaults.configuration.timeseries_resource)
.configure(defaults.configuration.timeseries)
.setAlert(cpu_alert(vars))

.addTarget(targets.cloudwatch(
Expand Down
2 changes: 1 addition & 1 deletion terraform/monitoring/panels/ecs/cpu.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local overrides = defaults.overrides;
title = 'CPU Utilization',
datasource = ds.cloudwatch,
)
.configure(overrides.cpu(defaults.configuration.timeseries_resource))
.configure(overrides.cpu(defaults.configuration.timeseries))
.setAlert(defaults.alerts.cpu(
namespace = vars.namespace,
title = 'ECS',
Expand Down
2 changes: 1 addition & 1 deletion terraform/monitoring/panels/ecs/memory.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local targets = grafana.targets;
title = 'Memory Utilization',
datasource = ds.cloudwatch,
)
.configure(defaults.overrides.memory(defaults.configuration.timeseries_resource))
.configure(defaults.overrides.memory(defaults.configuration.timeseries))

.setAlert(defaults.alerts.memory(
namespace = vars.namespace,
Expand Down

0 comments on commit 1a1340d

Please sign in to comment.