-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: request record label with commitment mode and version (#109)
* fix: request record label with commitment mode and version * fix: lint * refactor: combine request metrics and write bad requests * feat: added docker compose services and provisioning * fix: commitment version type * refactor: commitment mode and version meta struct * chore: passing gosec with nosec directives * ci: add tests on expected commitment mode and cert version * fix: comments and labels
- Loading branch information
Showing
13 changed files
with
515 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,3 @@ jobs: | |
with: | ||
version: v1.60 | ||
args: --timeout 3m | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
services: | ||
eigenda_proxy: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: eigenda-proxy | ||
environment: | ||
- EIGENDA_PROXY_ADDR=0.0.0.0 | ||
- EIGENDA_PROXY_PORT=4242 | ||
- MEMSTORE_ENABLED=false | ||
- MEMSTORE_EXPIRATION=45m | ||
- EIGENDA_PROXY_SIGNER_PRIVATE_KEY_HEX=$PRIVATE_KEY | ||
- EIGENDA_PROXY_EIGENDA_DISPERSER_RPC=disperser-holesky.eigenda.xyz:443 | ||
- EIGENDA_PROXY_SERVICE_MANAGER_ADDR=0xD4A7E1Bd8015057293f0D0A557088c286942e84b | ||
- EIGENDA_PROXY_ETH_RPC=$ETH_RPC | ||
- EIGENDA_PROXY_ETH_CONFIRMATION_DEPTH=0 | ||
- EIGENDA_PROXY_METRICS_ADDR=0.0.0.0 | ||
- EIGENDA_PROXY_METRICS_ENABLED=true | ||
- EIGENDA_PROXY_METRICS_PORT=7300 | ||
ports: | ||
- 4242:4242 | ||
- 7300:7300 | ||
|
||
prometheus: | ||
image: prom/prometheus:latest | ||
container_name: prometheus | ||
volumes: | ||
- ./monitor/prometheus.yml:/etc/prometheus/prometheus.yml | ||
ports: | ||
- "9090:9090" | ||
command: | ||
- "--config.file=/etc/prometheus/prometheus.yml" | ||
|
||
grafana: | ||
image: grafana/grafana:latest | ||
container_name: grafana | ||
ports: | ||
- "127.0.0.1:3000:3000" | ||
volumes: | ||
- ./monitor/grafana/provisioning/:/etc/grafana/provisioning/:ro | ||
- ./monitor/grafana/dashboards:/var/lib/grafana/dashboards | ||
environment: | ||
- GF_SECURITY_ADMIN_PASSWORD=admin | ||
depends_on: | ||
- prometheus | ||
|
||
traffic-generator: | ||
image: alpine:latest | ||
build: scripts/ | ||
container_name: traffic_generator | ||
depends_on: | ||
- eigenda_proxy | ||
volumes: | ||
- ./scripts/:/scripts/ | ||
|
||
volumes: | ||
grafana-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,243 @@ | ||
{ | ||
"annotations": { | ||
"list": [ | ||
{ | ||
"builtIn": 1, | ||
"datasource": { | ||
"type": "grafana", | ||
"uid": "-- Grafana --" | ||
}, | ||
"enable": true, | ||
"hide": true, | ||
"iconColor": "rgba(0, 211, 255, 1)", | ||
"name": "Annotations & Alerts", | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"editable": true, | ||
"fiscalYearStartMonth": 0, | ||
"graphTooltip": 0, | ||
"id": 2, | ||
"links": [], | ||
"panels": [ | ||
{ | ||
"datasource": { | ||
"type": "prometheus", | ||
"uid": "ddshms3dlineoe" | ||
}, | ||
"fieldConfig": { | ||
"defaults": { | ||
"color": { | ||
"mode": "palette-classic" | ||
}, | ||
"custom": { | ||
"axisBorderShow": false, | ||
"axisCenteredZero": false, | ||
"axisColorMode": "text", | ||
"axisLabel": "", | ||
"axisPlacement": "auto", | ||
"barAlignment": 0, | ||
"drawStyle": "line", | ||
"fillOpacity": 0, | ||
"gradientMode": "none", | ||
"hideFrom": { | ||
"legend": false, | ||
"tooltip": false, | ||
"viz": false | ||
}, | ||
"insertNulls": false, | ||
"lineInterpolation": "linear", | ||
"lineWidth": 1, | ||
"pointSize": 5, | ||
"scaleDistribution": { | ||
"type": "linear" | ||
}, | ||
"showPoints": "auto", | ||
"spanNulls": false, | ||
"stacking": { | ||
"group": "A", | ||
"mode": "none" | ||
}, | ||
"thresholdsStyle": { | ||
"mode": "off" | ||
} | ||
}, | ||
"mappings": [], | ||
"thresholds": { | ||
"mode": "absolute", | ||
"steps": [ | ||
{ | ||
"color": "green", | ||
"value": null | ||
}, | ||
{ | ||
"color": "red", | ||
"value": 80 | ||
} | ||
] | ||
} | ||
}, | ||
"overrides": [] | ||
}, | ||
"gridPos": { | ||
"h": 10, | ||
"w": 12, | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"id": 3, | ||
"options": { | ||
"legend": { | ||
"calcs": [], | ||
"displayMode": "list", | ||
"placement": "bottom", | ||
"showLegend": true | ||
}, | ||
"tooltip": { | ||
"mode": "single", | ||
"sort": "none" | ||
} | ||
}, | ||
"targets": [ | ||
{ | ||
"datasource": { | ||
"type": "prometheus", | ||
"uid": "ddshms3dlineoe" | ||
}, | ||
"editorMode": "code", | ||
"expr": "eigenda_proxy_default_rpc_server_requests_total{method=\"/put/\"}", | ||
"instant": false, | ||
"legendFormat": "{{__name__}}", | ||
"range": true, | ||
"refId": "A" | ||
} | ||
], | ||
"title": "/put requests total", | ||
"type": "timeseries" | ||
}, | ||
{ | ||
"datasource": { | ||
"type": "prometheus", | ||
"uid": "ddshms3dlineoe" | ||
}, | ||
"fieldConfig": { | ||
"defaults": { | ||
"color": { | ||
"mode": "thresholds" | ||
}, | ||
"mappings": [], | ||
"thresholds": { | ||
"mode": "absolute", | ||
"steps": [ | ||
{ | ||
"color": "green", | ||
"value": null | ||
}, | ||
{ | ||
"color": "red", | ||
"value": 80 | ||
} | ||
] | ||
} | ||
}, | ||
"overrides": [] | ||
}, | ||
"gridPos": { | ||
"h": 10, | ||
"w": 12, | ||
"x": 12, | ||
"y": 0 | ||
}, | ||
"id": 4, | ||
"options": { | ||
"displayMode": "gradient", | ||
"maxVizHeight": 300, | ||
"minVizHeight": 16, | ||
"minVizWidth": 8, | ||
"namePlacement": "auto", | ||
"orientation": "horizontal", | ||
"reduceOptions": { | ||
"calcs": [ | ||
"lastNotNull" | ||
], | ||
"fields": "", | ||
"values": false | ||
}, | ||
"showUnfilled": true, | ||
"sizing": "auto", | ||
"valueMode": "color" | ||
}, | ||
"pluginVersion": "11.1.0", | ||
"targets": [ | ||
{ | ||
"datasource": { | ||
"type": "prometheus", | ||
"uid": "ddshms3dlineoe" | ||
}, | ||
"editorMode": "code", | ||
"expr": "eigenda_proxy_default_rpc_server_request_duration_seconds_bucket{method=\"/put/\"}", | ||
"format": "heatmap", | ||
"instant": false, | ||
"legendFormat": "__auto", | ||
"range": true, | ||
"refId": "A" | ||
} | ||
], | ||
"title": "/put requests duration", | ||
"type": "bargauge" | ||
}, | ||
{ | ||
"datasource": { | ||
"type": "loki", | ||
"uid": "loki-datasource" | ||
}, | ||
"gridPos": { | ||
"h": 8, | ||
"w": 24, | ||
"x": 0, | ||
"y": 10 | ||
}, | ||
"id": 2, | ||
"options": { | ||
"dedupStrategy": "none", | ||
"enableLogDetails": true, | ||
"prettifyLogMessage": false, | ||
"showCommonLabels": false, | ||
"showLabels": false, | ||
"showTime": false, | ||
"sortOrder": "Descending", | ||
"wrapLogMessage": false | ||
}, | ||
"targets": [ | ||
{ | ||
"datasource": { | ||
"type": "loki", | ||
"uid": "loki-datasource" | ||
}, | ||
"editorMode": "builder", | ||
"expr": "{container=\"ops-bedrock-da-server-1\"} |= ``", | ||
"queryType": "range", | ||
"refId": "A" | ||
} | ||
], | ||
"title": "logs", | ||
"type": "logs" | ||
} | ||
], | ||
"schemaVersion": 39, | ||
"tags": [], | ||
"templating": { | ||
"list": [] | ||
}, | ||
"time": { | ||
"from": "now-6h", | ||
"to": "now" | ||
}, | ||
"timepicker": {}, | ||
"timezone": "browser", | ||
"title": "EigenDA Proxy", | ||
"uid": "ddw5n232n5vy8e", | ||
"version": 1, | ||
"weekStart": "" | ||
} |
Oops, something went wrong.