-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
835e3e5
commit 4d687a7
Showing
24 changed files
with
320 additions
and
43 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "terraform/monitoring/grafonnet-lib"] | ||
path = terraform/monitoring/grafonnet-lib | ||
url = [email protected]:WalletConnect/grafonnet-lib.git |
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 |
---|---|---|
|
@@ -96,6 +96,7 @@ pub async fn handler( | |
token: body.token, | ||
always_raw, | ||
}, | ||
state.metrics.as_ref(), | ||
) | ||
.await?; | ||
|
||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,55 @@ | ||
local grafana = import 'grafonnet-lib/grafana.libsonnet'; | ||
local panels = import 'panels/panels.libsonnet'; | ||
|
||
local dashboard = grafana.dashboard; | ||
local row = grafana.row; | ||
local annotation = grafana.annotation; | ||
local layout = grafana.layout; | ||
|
||
local ds = { | ||
prometheus: { | ||
type: 'prometheus', | ||
uid: std.extVar('prometheus_uid'), | ||
}, | ||
cloudwatch: { | ||
type: 'cloudwatch', | ||
uid: std.extVar('cloudwatch_uid'), | ||
}, | ||
}; | ||
local vars = { | ||
namespace: 'Push', | ||
environment: std.extVar('environment'), | ||
notifications: std.parseJson(std.extVar('notifications')), | ||
}; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
local height = 8; | ||
local pos = grafana.layout.pos(height); | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
dashboard.new( | ||
title = std.extVar('dashboard_title'), | ||
uid = std.extVar('dashboard_uid'), | ||
editable = true, | ||
graphTooltip = dashboard.graphTooltips.sharedCrosshair, | ||
timezone = dashboard.timezones.utc, | ||
) | ||
.addAnnotation( | ||
annotation.new( | ||
target = { | ||
limit: 100, | ||
matchAny: false, | ||
tags: [], | ||
type: 'dashboard', | ||
}, | ||
) | ||
) | ||
|
||
.addPanels(layout.generate_grid([ | ||
////////////////////////////////////////////////////////////////////////////// | ||
row.new('Application'), | ||
panels.app.postgres_query_rate(ds, vars) { gridPos: pos._6 }, | ||
panels.app.postgres_query_latency(ds, vars) { gridPos: pos._6 }, | ||
])) |
Submodule grafonnet-lib
added at
aa25c4
Oops, something went wrong.