Skip to content
Open
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
6 changes: 6 additions & 0 deletions @
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Merge branch 'main' into darren/chore/minor-dashboard-improvements
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.24.2

require (
github.com/ethereum/go-ethereum v1.14.7
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/influxdata/influxdb-client-go/v2 v2.14.0
github.com/kouhin/envflag v0.0.0-20150818174321-0e9a86061649
github.com/pkg/errors v0.8.1-0.20171216070316-e881fd58d78e
Expand All @@ -26,7 +27,6 @@ require (
github.com/gorilla/mux v1.8.1 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/hashicorp/golang-lru v0.0.0-20160813221303-0a025b7e63ad // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/holiman/uint256 v1.3.0 // indirect
github.com/huin/goupnp v0.0.0-20171109214107-dceda08e705b // indirect
github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=
golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=
golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
Expand Down
39 changes: 26 additions & 13 deletions grafana/dashboards/dpos-current-validator-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"color": {
"mode": "thresholds"
},
"decimals": 0,
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
Expand Down Expand Up @@ -137,6 +137,10 @@
"pluginVersion": "10.4.19",
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "B87265B08D314AF"
},
"query": "latestRecord = from(bucket: \"${bucket}\")\n |> range(start: 2015-01-01T00:00:00Z, stop: 2100-01-01T00:00:00Z)\n |> filter(fn: (r) => r[\"_measurement\"] == \"individual_validators\")\n |> filter(fn: (r) => r[\"_field\"] == \"validator_staked\")\n |> group()\n |> last()\n |> findRecord(fn: (key) => true, idx: 0)\n\nlatestTime = latestRecord._time\n\nfrom(bucket: \"${bucket}\")\n |> range(start: latestTime)\n |> filter(fn: (r) => r[\"_measurement\"] == \"individual_validators\")\n |> filter(fn: (r) => r[\"status\"] == \"active\")\n |> filter(fn: (r) => r[\"_field\"] == \"validator_staked\" or r[\"_field\"] == \"delegators_staked\")\n |> group()\n |> sum(column: \"_value\")\n |> map(fn: (r) => ({ _value: float(v: r._value) * float(v: ${vet_price})}))",
"refId": "A"
}
Expand Down Expand Up @@ -398,6 +402,7 @@
"color": {
"mode": "thresholds"
},
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
Expand All @@ -408,7 +413,7 @@
}
]
},
"unit": "locale"
"unit": "currencyUSD"
},
"overrides": []
},
Expand Down Expand Up @@ -442,11 +447,15 @@
"pluginVersion": "10.4.19",
"targets": [
{
"query": "latestRecord = from(bucket: \"${bucket}\")\n |> range(start: 2015-01-01T00:00:00Z, stop: 2100-01-01T00:00:00Z)\n |> filter(fn: (r) => r[\"_measurement\"] == \"individual_validators\")\n |> filter(fn: (r) => r[\"_field\"] == \"validator_staked\")\n |> group()\n |> last()\n |> findRecord(fn: (key) => true, idx: 0)\n\nlatestTime = latestRecord._time\n\nfrom(bucket: \"${bucket}\")\n |> range(start: latestTime)\n |> filter(fn: (r) => r[\"_measurement\"] == \"individual_validators\")\n |> filter(fn: (r) => r[\"status\"] == \"active\")\n |> filter(fn: (r) => r[\"_field\"] == \"validator_staked\")\n |> group()\n |> sum(column: \"_value\")",
"datasource": {
"type": "influxdb",
"uid": "B87265B08D314AF"
},
"query": "latestRecord = from(bucket: \"${bucket}\")\n |> range(start: 2015-01-01T00:00:00Z, stop: 2100-01-01T00:00:00Z)\n |> filter(fn: (r) => r[\"_measurement\"] == \"individual_validators\")\n |> filter(fn: (r) => r[\"_field\"] == \"validator_staked\")\n |> group()\n |> last()\n |> findRecord(fn: (key) => true, idx: 0)\n\nlatestTime = latestRecord._time\n\nfrom(bucket: \"${bucket}\")\n |> range(start: latestTime)\n |> filter(fn: (r) => r[\"_measurement\"] == \"individual_validators\")\n |> filter(fn: (r) => r[\"status\"] == \"active\")\n |> filter(fn: (r) => r[\"_field\"] == \"validator_staked\")\n |> group()\n |> sum(column: \"_value\")\n |> map(fn: (r) => ({ r with _value: float(v: r._value) * float(v: ${vet_price})}))",
"refId": "A"
}
],
"title": "Validator TVL (VET)",
"title": "Validator TVL (USD)",
"type": "stat"
},
{
Expand Down Expand Up @@ -520,7 +529,7 @@
"color": {
"mode": "thresholds"
},
"decimals": 0,
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
Expand Down Expand Up @@ -565,6 +574,10 @@
"pluginVersion": "10.4.19",
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "B87265B08D314AF"
},
"query": "latestRecord = from(bucket: \"${bucket}\")\n |> range(start: 2015-01-01T00:00:00Z, stop: 2100-01-01T00:00:00Z)\n |> filter(fn: (r) => r[\"_measurement\"] == \"individual_validators\")\n |> filter(fn: (r) => r[\"_field\"] == \"validator_staked\")\n |> group()\n |> last()\n |> findRecord(fn: (key) => true, idx: 0)\n\nlatestTime = latestRecord._time\n\nfrom(bucket: \"${bucket}\")\n |> range(start: latestTime)\n |> filter(fn: (r) => r[\"_measurement\"] == \"individual_validators\")\n |> filter(fn: (r) => r[\"status\"] == \"active\")\n |> filter(fn: (r) => r[\"_field\"] == \"delegators_staked\")\n |> group()\n |> sum(column: \"_value\")\n |> map(fn: (r) => ({ _value: float(v: r._value) * float(v: ${vet_price})}))",
"refId": "A"
}
Expand All @@ -582,7 +595,7 @@
"color": {
"mode": "thresholds"
},
"decimals": 0,
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
Expand Down Expand Up @@ -648,7 +661,7 @@
"color": {
"mode": "thresholds"
},
"decimals": 0,
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
Expand Down Expand Up @@ -714,7 +727,7 @@
"color": {
"mode": "thresholds"
},
"decimals": 0,
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
Expand Down Expand Up @@ -780,7 +793,7 @@
"color": {
"mode": "thresholds"
},
"decimals": 0,
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
Expand Down Expand Up @@ -846,7 +859,7 @@
"color": {
"mode": "thresholds"
},
"decimals": 0,
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
Expand Down Expand Up @@ -3243,13 +3256,13 @@
]
},
"time": {
"from": "now-3h",
"from": "now-5m",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "DPOS - Current Validator Overview",
"title": "DPOS - Current Overview",
"uid": "detluapo628zkf",
"version": 1,
"version": 9,
"weekStart": ""
}
Loading