-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add prometheus panels to grafana (#118)
* fix: Prometheus data-source authentication * feat: add panels for Prometheus metrics * Update terraform/monitoring/panels/app/identity/invalid_unregister_jwt.libsonnet Co-authored-by: Szymon Rząd <sz.rzad@gmail.com> * Update terraform/monitoring/panels/app/identity/invalid_register_cacao.libsonnet Co-authored-by: Szymon Rząd <sz.rzad@gmail.com> * Update terraform/monitoring/panels/app/invite/invalid_register_jwt.libsonnet Co-authored-by: Szymon Rząd <sz.rzad@gmail.com> * Update terraform/monitoring/panels/app/invite/invalid_unregister_jwt.libsonnet Co-authored-by: Szymon Rząd <sz.rzad@gmail.com> --------- Co-authored-by: Szymon Rząd <sz.rzad@gmail.com>
- Loading branch information
Showing
19 changed files
with
272 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
terraform/monitoring/panels/app/identity/invalid_register_cacao.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local grafana = import '../../../grafonnet-lib/grafana.libsonnet'; | ||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
local defaults = import '../../defaults.libsonnet'; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Identity - Invalid CACAO during Registration', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum(rate(invalid_identity_register_cacao{aws_ecs_task_family="%s"}[5m]))' % vars.ecs_task_family, | ||
refId = "sources", | ||
exemplar = true, | ||
)) | ||
} |
21 changes: 21 additions & 0 deletions
21
terraform/monitoring/panels/app/identity/invalid_unregister_jwt.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local grafana = import '../../../grafonnet-lib/grafana.libsonnet'; | ||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
local defaults = import '../../defaults.libsonnet'; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Identity - Invalid JWT during Unregistration', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum(rate(invalid_identity_unregister_jwt{aws_ecs_task_family="%s"}[5m]))' % vars.ecs_task_family, | ||
refId = "sources", | ||
exemplar = true, | ||
)) | ||
} |
21 changes: 21 additions & 0 deletions
21
terraform/monitoring/panels/app/identity/register.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local grafana = import '../../../grafonnet-lib/grafana.libsonnet'; | ||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
local defaults = import '../../defaults.libsonnet'; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Identity - Registrations', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum(rate(identity_register{aws_ecs_task_family="%s"}[5m]))' % vars.ecs_task_family, | ||
refId = "sources", | ||
exemplar = true, | ||
)) | ||
} |
21 changes: 21 additions & 0 deletions
21
terraform/monitoring/panels/app/identity/resolved.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local grafana = import '../../../grafonnet-lib/grafana.libsonnet'; | ||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
local defaults = import '../../defaults.libsonnet'; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Identity - Resolutions', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum(rate(identity_resolved{aws_ecs_task_family="%s"}[5m]))' % vars.ecs_task_family, | ||
refId = "sources", | ||
exemplar = true, | ||
)) | ||
} |
21 changes: 21 additions & 0 deletions
21
terraform/monitoring/panels/app/identity/unregister.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local grafana = import '../../../grafonnet-lib/grafana.libsonnet'; | ||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
local defaults = import '../../defaults.libsonnet'; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Identity - Unregistrations', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum(rate(identity_unregister{aws_ecs_task_family="%s"}[5m]))' % vars.ecs_task_family, | ||
refId = "sources", | ||
exemplar = true, | ||
)) | ||
} |
21 changes: 21 additions & 0 deletions
21
terraform/monitoring/panels/app/invite/invalid_register_jwt.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local grafana = import '../../../grafonnet-lib/grafana.libsonnet'; | ||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
local defaults = import '../../defaults.libsonnet'; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Invite - Invalid JWT during Registration', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum(rate(invalid_invite_register_jwt{aws_ecs_task_family="%s"}[5m]))' % vars.ecs_task_family, | ||
refId = "sources", | ||
exemplar = true, | ||
)) | ||
} |
21 changes: 21 additions & 0 deletions
21
terraform/monitoring/panels/app/invite/invalid_unregister_jwt.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local grafana = import '../../../grafonnet-lib/grafana.libsonnet'; | ||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
local defaults = import '../../defaults.libsonnet'; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Invite - Invalid JWT during Unregistration', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum(rate(invalid_invite_unregister_jwt{aws_ecs_task_family="%s"}[5m]))' % vars.ecs_task_family, | ||
refId = "sources", | ||
exemplar = true, | ||
)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local grafana = import '../../../grafonnet-lib/grafana.libsonnet'; | ||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
local defaults = import '../../defaults.libsonnet'; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Invite - Registrations', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum(rate(invite_register{aws_ecs_task_family="%s"}[5m]))' % vars.ecs_task_family, | ||
refId = "sources", | ||
exemplar = true, | ||
)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local grafana = import '../../../grafonnet-lib/grafana.libsonnet'; | ||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
local defaults = import '../../defaults.libsonnet'; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Invite - Resolutions', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum(rate(invite_resolved{aws_ecs_task_family="%s"}[5m]))' % vars.ecs_task_family, | ||
refId = "sources", | ||
exemplar = true, | ||
)) | ||
} |
21 changes: 21 additions & 0 deletions
21
terraform/monitoring/panels/app/invite/unregister.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local grafana = import '../../../grafonnet-lib/grafana.libsonnet'; | ||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
local defaults = import '../../defaults.libsonnet'; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Invite - Unregistrations', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum(rate(invite_unregister{aws_ecs_task_family="%s"}[5m]))' % vars.ecs_task_family, | ||
refId = "sources", | ||
exemplar = true, | ||
)) | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters