Skip to content

Commit

Permalink
fix max value hack
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Mar 21, 2023
1 parent ae1330e commit 9379c25
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions dashboards/autorelay/autorelay.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,32 @@
},
"editorMode": "code",
"expr": "libp2p_autorelay_desired_reservations",
"hide": true,
"hide": false,
"legendFormat": "__auto",
"range": true,
"refId": "B"
"refId": "config-query"
}
],
"title": "Current Reservations",
"transformations": [
{
"id": "configFromData",
"options": {
"applyTo": {
"id": "byFrameRefID",
"options": "A"
},
"configRefId": "config-query",
"mappings": [
{
"fieldName": "{__name__=\"libp2p_autorelay_desired_reservations\", instance=\"localhost:5001\", job=\"kubo\"}",
"handlerKey": "max",
"reducerId": "lastNotNull"
}
]
}
}
],
"type": "gauge"
},
{
Expand Down Expand Up @@ -856,13 +875,13 @@
"list": []
},
"time": {
"from": "now-5m",
"from": "now-1h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "libp2p Autorelay",
"uid": "deQ_uf-4k",
"version": 2,
"version": 5,
"weekStart": ""
}

0 comments on commit 9379c25

Please sign in to comment.