Skip to content

Commit

Permalink
merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
Kairat Abylkasymov authored and Kairat Abylkasymov committed May 26, 2024
2 parents ffc22c7 + 4098ed5 commit 504f1f8
Show file tree
Hide file tree
Showing 55 changed files with 2,518 additions and 1,015 deletions.
4 changes: 4 additions & 0 deletions cmd/devnet/services/polygon/heimdall.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ func (h *Heimdall) FetchMilestoneCount(ctx context.Context) (int64, error) {
return 0, fmt.Errorf("TODO")
}

func (h *Heimdall) FetchFirstMilestoneNum(ctx context.Context) (int64, error) {
return 0, fmt.Errorf("TODO")
}

func (h *Heimdall) FetchNoAckMilestone(ctx context.Context, milestoneID string) error {
return fmt.Errorf("TODO")
}
Expand Down
4 changes: 4 additions & 0 deletions cmd/devnet/services/polygon/heimdallsim/heimdall_simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ func (h *HeimdallSimulator) FetchMilestoneCount(ctx context.Context) (int64, err
return 0, errors.New("method FetchMilestoneCount not implemented")
}

func (h *HeimdallSimulator) FetchFirstMilestoneNum(ctx context.Context) (int64, error) {
return 0, errors.New("method FetchFirstMilestoneNum not implemented")
}

func (h *HeimdallSimulator) FetchNoAckMilestone(ctx context.Context, milestoneID string) error {
return errors.New("method FetchNoAckMilestone not implemented")
}
Expand Down
99 changes: 73 additions & 26 deletions cmd/prometheus/dashboards/erigon_internals.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,41 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "panel",
"id": "bargauge",
"name": "Bar gauge",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "10.4.2"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
Expand All @@ -24,7 +61,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 2,
"id": null,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -97,7 +134,7 @@
"mode": "off"
}
},
"decimals": 2,
"decimals": 3,
"mappings": [],
"thresholds": {
"mode": "absolute",
Expand Down Expand Up @@ -1444,7 +1481,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1542,7 +1580,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1809,7 +1848,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1916,7 +1956,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -2196,7 +2237,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -2308,7 +2350,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -2417,7 +2460,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -2540,7 +2584,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -2830,7 +2875,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -2997,7 +3043,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -3112,7 +3159,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -3212,7 +3260,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -3329,7 +3378,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -3441,7 +3491,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -5633,11 +5684,7 @@
"type": "custom"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
Expand Down Expand Up @@ -5668,15 +5715,15 @@
"auto_min": "10s",
"current": {
"selected": false,
"text": "1m",
"value": "1m"
"text": "30m",
"value": "30m"
},
"hide": 0,
"label": "Rate Interval",
"name": "rate_interval",
"options": [
{
"selected": true,
"selected": false,
"text": "1m",
"value": "1m"
},
Expand All @@ -5686,7 +5733,7 @@
"value": "10m"
},
{
"selected": false,
"selected": true,
"text": "30m",
"value": "30m"
},
Expand Down Expand Up @@ -5758,7 +5805,7 @@
]
},
"time": {
"from": "now-30m",
"from": "now-1h",
"to": "now"
},
"timepicker": {
Expand Down
Loading

0 comments on commit 504f1f8

Please sign in to comment.