-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: top-level ELB error metric and logs, downscale to min capacities #592
Changes from all commits
f129174
a9900f2
7e58894
dd5c18e
3bee9dd
5270e7a
7448b1e
c3be3a9
1e6008e
16f80be
03cda93
d9386ff
7da717e
2898da9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,17 @@ local ds = { | |
}, | ||
}; | ||
local vars = { | ||
namespace: 'Notify', | ||
environment: std.extVar('environment'), | ||
notifications: std.parseJson(std.extVar('notifications')), | ||
|
||
ecs_service_name: std.extVar('ecs_service_name'), | ||
load_balancer: std.extVar('load_balancer'), | ||
target_group: std.extVar('target_group'), | ||
redis_cluster_id: std.extVar('redis_cluster_id'), | ||
ecs_service_name: std.extVar('ecs_service_name'), | ||
load_balancer: std.extVar('load_balancer'), | ||
target_group: std.extVar('target_group'), | ||
redis_cluster_id: std.extVar('redis_cluster_id'), | ||
log_group_app_name: std.extVar('log_group_app_name'), | ||
log_group_app_arn: std.extVar('log_group_app_arn'), | ||
aws_account_id: std.extVar('aws_account_id'), | ||
}; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
@@ -52,8 +56,14 @@ dashboard.new( | |
) | ||
|
||
.addPanels(layout.generate_grid([ | ||
row.new('ECS'), | ||
row.new('Application'), | ||
// panels.app.http_request_rate(ds, vars) { gridPos: pos._4 }, | ||
// panels.app.http_request_latency(ds, vars) { gridPos: pos._4 }, | ||
Comment on lines
+60
to
+61
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These panels were specific to Notify Server, but leaving them here as a reminder to put request rate and request latency up here at the top as those are important high-level metrics. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Opened issue: #593 |
||
panels.ecs.availability(ds, vars) { gridPos: pos._3 }, | ||
panels.lb.error_5xx(ds, vars) { gridPos: pos._3 }, | ||
panels.lb.error_5xx_logs(ds, vars) { gridPos: pos._3 }, | ||
|
||
row.new('ECS'), | ||
panels.ecs.memory(ds, vars) { gridPos: pos._3 }, | ||
panels.ecs.cpu(ds, vars) { gridPos: pos._3 }, | ||
|
||
|
@@ -109,9 +119,6 @@ dashboard.new( | |
panels.proxy.http_codes(ds, vars) { gridPos: pos.two_thirds }, | ||
panels.proxy.healthy_hosts(ds, vars) { gridPos: pos._3 }, | ||
|
||
row.new('Database'), | ||
panels.db.redis_cpu_memory(ds, vars) { gridPos: pos._2 }, | ||
|
||
row.new('History Metrics'), | ||
panels.history.requests(ds, vars) { gridPos: pos_short._3 }, | ||
panels.history.latency(ds, vars) { gridPos: pos_short._3 }, | ||
|
@@ -123,4 +130,15 @@ dashboard.new( | |
panels.identity.latency(ds, vars) { gridPos: pos_short._2 }, | ||
panels.identity.cache(ds, vars) { gridPos: pos_short._2 }, | ||
panels.identity.usage(ds, vars) { gridPos: pos_short._2 }, | ||
|
||
row.new('Redis'), | ||
panels.redis.cpu(ds, vars) { gridPos: pos._2 }, | ||
panels.redis.memory(ds, vars) { gridPos: pos._2 }, | ||
|
||
row.new('Load Balancer'), | ||
panels.lb.active_connections(ds, vars) { gridPos: pos._2 }, | ||
panels.lb.requests(ds, vars) { gridPos: pos._2 }, | ||
|
||
panels.lb.healthy_hosts(ds, vars) { gridPos: pos._3 }, | ||
panels.lb.error_4xx(ds, vars) { gridPos: pos._3 }, | ||
])) |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
local grafana = import '../../grafonnet-lib/grafana.libsonnet'; | ||
local defaults = import '../../grafonnet-lib/defaults.libsonnet'; | ||
|
||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Active Connections', | ||
datasource = ds.cloudwatch, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.cloudwatch( | ||
datasource = ds.cloudwatch, | ||
namespace = 'AWS/ApplicationELB', | ||
metricName = 'ActiveConnectionCount', | ||
dimensions = { | ||
LoadBalancer: vars.load_balancer | ||
}, | ||
statistic = 'Average', | ||
)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the name change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See PR description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amigood makes more sense than devloop imo but it's fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea was "am I good" to commit but it was awkward to type and the concept of a "developer loop" is more familiar to people.