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

[LocalNet] Use pocketdex for dashboards #893

Merged
merged 3 commits into from
Oct 30, 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
4 changes: 4 additions & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ helm_resource(
"--set=logs.format=" + str(localnet_config["validator"]["logs"]["format"]),
"--set=serviceMonitor.enabled=" + str(localnet_config["observability"]["enabled"]),
"--set=development.delve.enabled=" + str(localnet_config["validator"]["delve"]["enabled"]),
"--set=image.repository=poktrolld",
],
image_deps=["poktrolld"],
image_keys=[("image.repository", "image.tag")],
Expand All @@ -259,6 +260,7 @@ for x in range(localnet_config["relayminers"]["count"]):
"--set=metrics.serviceMonitor.enabled=" + str(localnet_config["observability"]["enabled"]),
"--set=development.delve.enabled=" + str(localnet_config["relayminers"]["delve"]["enabled"]),
"--set=logLevel=" + str(localnet_config["relayminers"]["logs"]["level"]),
"--set=image.repository=poktrolld",
],
image_deps=["poktrolld"],
image_keys=[("image.repository", "image.tag")],
Expand Down Expand Up @@ -300,6 +302,7 @@ for x in range(localnet_config["appgateservers"]["count"]):
"--set=metrics.serviceMonitor.enabled=" + str(localnet_config["observability"]["enabled"]),
"--set=development.delve.enabled=" + str(localnet_config["appgateservers"]["delve"]["enabled"]),
"--set=logLevel=" + str(localnet_config["appgateservers"]["logs"]["level"]),
"--set=image.repository=poktrolld",
],
image_deps=["poktrolld"],
image_keys=[("image.repository", "image.tag")],
Expand Down Expand Up @@ -342,6 +345,7 @@ for x in range(localnet_config["gateways"]["count"]):
"--set=metrics.serviceMonitor.enabled=" + str(localnet_config["observability"]["enabled"]),
"--set=development.delve.enabled=" + str(localnet_config["gateways"]["delve"]["enabled"]),
"--set=logLevel=" + str(localnet_config["gateways"]["logs"]["level"]),
"--set=image.repository=poktrolld",
],
image_deps=["poktrolld"],
image_keys=[("image.repository", "image.tag")],
Expand Down
3 changes: 2 additions & 1 deletion cmd/poktrolld/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ func initAppConfig() (string, interface{}) {
srvCfg.MinGasPrices = "0.000000001upokt" // Also adjust ignite's `config.yml`.
srvCfg.Mempool.MaxTxs = 10000
srvCfg.Telemetry.Enabled = true
srvCfg.Telemetry.PrometheusRetentionTime = 60 * 10 // in seconds. This turns on Prometheus support.
// Positive value turns on prometheus support. Prometheus metrics are removed from the exporter when retention time is reached.
srvCfg.Telemetry.PrometheusRetentionTime = 60 * 60 * 24 // in seconds.
srvCfg.Telemetry.MetricsSink = "mem"
srvCfg.Pruning = "nothing" // archiving node by default
srvCfg.API.Enable = true
Expand Down
15 changes: 6 additions & 9 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ validators:
# minimum-gas-prices: 0.000000001upokt
telemetry:
enabled: true
prometheus-retention-time: "10" # seconds. Let's see if block time * 5 gives a better data.
poktroll:
telemetry:
# "high" produces a lot of timeseries. Only suitable for small networks such as LocalNet.
Expand Down Expand Up @@ -143,13 +142,13 @@ genesis:
denom: upokt
bank:
supply:
- amount: "1003000204"
- amount: "1102000204"
denom: upokt
balances:
# Application module
- address: pokt1rl3gjgzexmplmds3tq3r3yk84zlwdl6djzgsvm
coins:
- amount: "1000068" # Equals to the total of all app stakes below
- amount: "100000068" # Equals to the total of all app stakes below
denom: upokt
# Supplier module
- address: pokt1j40dzzmn6cn9kxku7a5tjnud6hv37vesr5ccaa
Expand All @@ -175,9 +174,8 @@ genesis:
denom: upokt
applicationList:
- address: pokt1mrqt5f7qh8uxs27cjm9t7v9e74a9vvdnq5jva4
delegatee_gateway_addresses: [
pokt15vzxjqklzjtlz7lahe8z2dfe9nm5vxwwmscne4
]
delegatee_gateway_addresses:
[pokt15vzxjqklzjtlz7lahe8z2dfe9nm5vxwwmscne4]
service_configs:
- service_id: anvil
stake:
Expand All @@ -186,9 +184,8 @@ genesis:
amount: "100000068" # ~100 POKT
denom: upokt
- address: pokt184zvylazwu4queyzpl0gyz9yf5yxm2kdhh9hpm
delegatee_gateway_addresses: [
pokt15vzxjqklzjtlz7lahe8z2dfe9nm5vxwwmscne4
]
delegatee_gateway_addresses:
[pokt15vzxjqklzjtlz7lahe8z2dfe9nm5vxwwmscne4]
service_configs:
- service_id: rest
stake:
Expand Down
38 changes: 32 additions & 6 deletions localnet/grafana-dashboards/cosmos_sdk_insights.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -349,7 +349,7 @@
"unit": "s"
}
},
"pluginVersion": "11.2.1",
"pluginVersion": "11.2.2+security-01",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -472,7 +472,7 @@
"editorMode": "code",
"expr": "sum(poktroll_proof_validation{job=\"$job\"}) by (quantile)",
"instant": false,
"legendFormat": "{{module}}: q{{quantile}}",
"legendFormat": " q{{quantile}}",
"range": true,
"refId": "A"
},
Expand All @@ -485,7 +485,7 @@
"expr": "sum(poktroll_proof_validation_sum{job=\"$job\"}) / sum(poktroll_proof_validation_count{job=\"$job\"})",
"hide": false,
"instant": false,
"legendFormat": "{{module}}: avg",
"legendFormat": "avg",
"range": true,
"refId": "B"
}
Expand Down Expand Up @@ -1050,7 +1050,20 @@
]
}
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "D"
},
"properties": [
{
"id": "custom.lineWidth",
"value": 3
}
]
}
]
},
"gridPos": {
"h": 6,
Expand Down Expand Up @@ -1109,6 +1122,19 @@
"legendFormat": "slashed by {{module}}",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "sum(increase(poktroll_minted_tokens{job=\"$job\"}[1m])) - sum(increase(poktroll_burned_tokens{job=\"$job\"}[1m]))",
"hide": false,
"instant": false,
"legendFormat": "Minted total (minus burned)",
"range": true,
"refId": "D"
}
],
"title": "Minted / Burned / Slashed Tokens",
Expand Down Expand Up @@ -1208,7 +1234,7 @@
"refId": "A"
}
],
"title": "Compute Units",
"title": "Claims",
"type": "timeseries"
}
],
Expand Down
Loading
Loading