Skip to content

Commit

Permalink
fix: dashboard import (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltitanb authored Oct 16, 2024
1 parent 1dc63e2 commit 6566724
Show file tree
Hide file tree
Showing 3 changed files with 937 additions and 28 deletions.
45 changes: 18 additions & 27 deletions grafana/dashboards/dashboard.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{
"__inputs": [
{
"name": "DS_CB-PROMETHEUS",
"label": "cb-prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__inputs": [],
"__elements": {},
"__requires": [
{
Expand Down Expand Up @@ -62,7 +53,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -117,7 +108,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"disableTextWrap": false,
"editorMode": "code",
Expand Down Expand Up @@ -154,7 +145,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -237,7 +228,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"editorMode": "code",
"expr": "sum(increase(cb_pbs_relay_status_code_total{http_status_code=~\"2..\", endpoint=\"$endpoint\"}[1h])) by (relay_id)",
Expand All @@ -253,7 +244,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -336,7 +327,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"editorMode": "code",
"expr": "sum(increase(cb_pbs_relay_status_code_total{http_status_code=~\"4..|5..\", endpoint=\"$endpoint\"}[1h])) by (relay_id)",
Expand All @@ -352,7 +343,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -435,7 +426,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"editorMode": "code",
"expr": "sum(increase(cb_pbs_beacon_node_status_code_total{http_status_code=~\"2..\", endpoint=\"$endpoint\"}[1h]))",
Expand All @@ -451,7 +442,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -534,7 +525,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"editorMode": "code",
"expr": "sum(increase(cb_pbs_beacon_node_status_code_total{http_status_code=~\"4..|5..\", endpoint=\"$endpoint\"}[1h]))",
Expand All @@ -550,7 +541,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -634,7 +625,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"disableTextWrap": false,
"editorMode": "code",
Expand All @@ -654,7 +645,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -738,7 +729,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"disableTextWrap": false,
"editorMode": "code",
Expand All @@ -758,7 +749,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -842,7 +833,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_CB-PROMETHEUS}"
"uid": "cb_prometheus"
},
"disableTextWrap": false,
"editorMode": "code",
Expand Down Expand Up @@ -912,7 +903,7 @@
"timepicker": {},
"timezone": "browser",
"title": "PBS Metrics",
"uid": "cb_prometheus",
"uid": "cb_pbs_metrics",
"version": 2,
"weekStart": ""
}
2 changes: 1 addition & 1 deletion grafana/datasources/datasources.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: 1

datasources:
- name: cb-prometheus
- name: cb_prometheus
type: prometheus
uid: cb_prometheus
access: proxy
Expand Down
Loading

0 comments on commit 6566724

Please sign in to comment.