### Description
This PR uses templating for datasource. i.e. no need to keep
<prometheus> inside the dashboard json file which should be manually
replaced by users.
### Drive-by changes
<!--
Are there any minor or drive-by changes also included?
-->
### Related issues
<!--
- Fixes #[issue number here]
-->
### Backward compatibility
<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?
Yes/No
-->
### Testing
<!--
What kind of testing have these changes undergone?
None/Manual/Unit Tests
-->
Co-authored-by: josedev-union <josedev-union@users.noreply.github.com>
Co-authored-by: Mattie Conover <git@mconover.dev>
"expr":"max(hyperlane_block_height{agent=\"validator\", }) by (chain)",
"expr":"max(hyperlane_block_height{agent=\"validator\", }) by (chain)",
@ -196,7 +196,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"fieldConfig":{
"fieldConfig":{
"defaults":{
"defaults":{
@ -242,7 +242,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"exemplar":false,
"exemplar":false,
@ -260,7 +260,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"description":"Count of messages signed per time window",
"description":"Count of messages signed per time window",
"fieldConfig":{
"fieldConfig":{
@ -333,7 +333,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"expr":"max by (chain)(hyperlane_latest_checkpoint{agent=\"validator\", chain=~\"$chain\", phase=\"validator_processed\"}) - max by (chain)(hyperlane_latest_checkpoint{agent=\"validator\", chain=~\"$chain\", phase=\"validator_processed\"} offset $bucket)",
"expr":"max by (chain)(hyperlane_latest_checkpoint{agent=\"validator\", chain=~\"$chain\", phase=\"validator_processed\"}) - max by (chain)(hyperlane_latest_checkpoint{agent=\"validator\", chain=~\"$chain\", phase=\"validator_processed\"} offset $bucket)",
@ -349,7 +349,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"description":"If running multiple validator instances, the difference between the latest and earliest observed checkpoints for each chain.",
"description":"If running multiple validator instances, the difference between the latest and earliest observed checkpoints for each chain.",
"fieldConfig":{
"fieldConfig":{
@ -424,7 +424,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"expr":"max by(chain) (hyperlane_latest_checkpoint{agent=\"validator\", chain=~\"$chain\", phase=\"validator_observed\"}) - min by (chain)(hyperlane_latest_checkpoint{agent=\"validator\", chain=~\"$chain\", phase=\"validator_observed\"})",
"expr":"max by(chain) (hyperlane_latest_checkpoint{agent=\"validator\", chain=~\"$chain\", phase=\"validator_observed\"}) - min by (chain)(hyperlane_latest_checkpoint{agent=\"validator\", chain=~\"$chain\", phase=\"validator_observed\"})",
@ -440,7 +440,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"fieldConfig":{
"fieldConfig":{
"defaults":{
"defaults":{
@ -523,7 +523,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"exemplar":false,
"exemplar":false,
@ -541,7 +541,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"fieldConfig":{
"fieldConfig":{
"defaults":{
"defaults":{
@ -612,7 +612,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"exemplar":false,
"exemplar":false,
@ -629,7 +629,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"description":"Total number of contract calls made by chain for a period",
"description":"Total number of contract calls made by chain for a period",
"fieldConfig":{
"fieldConfig":{
@ -706,7 +706,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"expr":"sum by (chain)(increase(hyperlane_contract_call_count{ chain=~\"$chain\", agent=\"validator\"}[$bucket]))",
"expr":"sum by (chain)(increase(hyperlane_contract_call_count{ chain=~\"$chain\", agent=\"validator\"}[$bucket]))",
@ -722,7 +722,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"description":"The rate at which we are making contract calls.",
"description":"The rate at which we are making contract calls.",
"fieldConfig":{
"fieldConfig":{
@ -799,7 +799,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"expr":"sum by (chain) (rate(hyperlane_contract_call_count{agent=\"validator\"}[$__rate_interval]))",
"expr":"sum by (chain) (rate(hyperlane_contract_call_count{agent=\"validator\"}[$__rate_interval]))",
@ -815,7 +815,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"description":"The average contract call duration by chain",
"description":"The average contract call duration by chain",
"fieldConfig":{
"fieldConfig":{
@ -892,7 +892,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"expr":"avg by (chain)(rate(hyperlane_contract_call_count{agent=\"validator\",chain=~\"$chain\"}[$__rate_interval]) - rate(hyperlane_contract_call_duration_seconds{agent=\"validator\",chain=~\"$chain\"}[$__rate_interval]))",
"expr":"avg by (chain)(rate(hyperlane_contract_call_count{agent=\"validator\",chain=~\"$chain\"}[$__rate_interval]) - rate(hyperlane_contract_call_duration_seconds{agent=\"validator\",chain=~\"$chain\"}[$__rate_interval]))",
@ -918,7 +918,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"description":"",
"description":"",
"fieldConfig":{
"fieldConfig":{
@ -994,7 +994,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"expr":"sum by (contract_name, function_name)(increase(hyperlane_contract_call_count{ chain=~\"$chain\", agent=\"validator\"}[$bucket]))",
"expr":"sum by (contract_name, function_name)(increase(hyperlane_contract_call_count{ chain=~\"$chain\", agent=\"validator\"}[$bucket]))",
@ -1010,7 +1010,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"description":"",
"description":"",
"fieldConfig":{
"fieldConfig":{
@ -1086,7 +1086,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"expr":"sum by (function_name,contract_name)(rate(hyperlane_contract_call_count{agent=\"validator\",chain=~\"$chain\"}[$__rate_interval]))",
"expr":"sum by (function_name,contract_name)(rate(hyperlane_contract_call_count{agent=\"validator\",chain=~\"$chain\"}[$__rate_interval]))",
@ -1102,7 +1102,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"description":"",
"description":"",
"fieldConfig":{
"fieldConfig":{
@ -1178,7 +1178,7 @@
{
{
"datasource":{
"datasource":{
"type":"prometheus",
"type":"prometheus",
"uid":"<prometheus>"
"uid":"$datasource"
},
},
"editorMode":"code",
"editorMode":"code",
"expr":"avg by (function_name,contract_name)(rate(hyperlane_contract_call_count{agent=\"validator\",chain=~\"$chain\"}[$__rate_interval]) - rate(hyperlane_contract_call_duration_seconds{agent=\"validator\",chain=~\"$chain\"}[$__rate_interval]))",
"expr":"avg by (function_name,contract_name)(rate(hyperlane_contract_call_count{agent=\"validator\",chain=~\"$chain\"}[$__rate_interval]) - rate(hyperlane_contract_call_duration_seconds{agent=\"validator\",chain=~\"$chain\"}[$__rate_interval]))",