Skip to content
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 dashboard import #160

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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