-
Notifications
You must be signed in to change notification settings - Fork 336
feat(price-pusher): emit namespace label on all Prometheus metrics
#3720
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,9 +90,9 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "pyth_price_feeds_total{namespace=\"$chain\"}", | ||
| "expr": "pyth_price_feeds_total{chain=\"$chain\"}", | ||
| "instant": true, | ||
| "legendFormat": "{{namespace}}", | ||
| "legendFormat": "{{chain}}", | ||
| "range": false, | ||
| "refId": "A" | ||
| } | ||
|
|
@@ -169,9 +169,9 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "count(pyth_price_last_published_time{namespace=\"$chain\"})", | ||
| "expr": "count(pyth_price_last_published_time{chain=\"$chain\"})", | ||
| "instant": true, | ||
| "legendFormat": "{{namespace}}", | ||
| "legendFormat": "{{chain}}", | ||
| "range": false, | ||
| "refId": "A" | ||
| } | ||
|
|
@@ -252,7 +252,7 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "time() - pyth_price_last_published_time{namespace=\"$chain\"}", | ||
| "expr": "time() - pyth_price_last_published_time{chain=\"$chain\"}", | ||
| "instant": true, | ||
| "legendFormat": "{{alias}}", | ||
| "range": false, | ||
|
|
@@ -383,7 +383,7 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "pyth_price_last_published_time{namespace=\"$chain\"}", | ||
| "expr": "pyth_price_last_published_time{chain=\"$chain\"}", | ||
| "format": "table", | ||
| "instant": true, | ||
| "legendFormat": "__auto", | ||
|
|
@@ -396,7 +396,7 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "time() - pyth_price_last_published_time{namespace=\"$chain\"}", | ||
| "expr": "time() - pyth_price_last_published_time{chain=\"$chain\"}", | ||
| "format": "table", | ||
| "instant": true, | ||
| "legendFormat": "__auto", | ||
|
|
@@ -409,7 +409,7 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "pyth_price_update_attempts_total{status=\"success\", namespace=\"$chain\"}", | ||
| "expr": "pyth_price_update_attempts_total{status=\"success\", chain=\"$chain\"}", | ||
| "format": "table", | ||
| "instant": true, | ||
| "legendFormat": "__auto", | ||
|
|
@@ -606,7 +606,7 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "increase(pyth_price_update_attempts_total{status=\"success\", namespace=\"$chain\"}[$__range])", | ||
| "expr": "increase(pyth_price_update_attempts_total{status=\"success\", chain=\"$chain\"}[$__range])", | ||
| "legendFormat": "{{alias}} - Updates", | ||
| "range": true, | ||
| "refId": "A" | ||
|
|
@@ -732,7 +732,7 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "sum by (trigger) (increase(pyth_price_update_attempts_total{namespace=\"$chain\"}[$__range]))", | ||
| "expr": "sum by (trigger) (increase(pyth_price_update_attempts_total{chain=\"$chain\"}[$__range]))", | ||
| "instant": false, | ||
| "legendFormat": "{{trigger}}", | ||
| "range": true, | ||
|
|
@@ -819,7 +819,7 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "pyth_wallet_balance{namespace=\"$chain\"}", | ||
| "expr": "pyth_wallet_balance{chain=\"$chain\"}", | ||
| "instant": true, | ||
| "legendFormat": "{{wallet_address}}", | ||
| "range": false, | ||
|
|
@@ -915,7 +915,7 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "pyth_wallet_balance{namespace=\"$chain\"}", | ||
| "expr": "pyth_wallet_balance{chain=\"$chain\"}", | ||
| "legendFormat": "{{wallet_address}} ({{network}})", | ||
| "range": true, | ||
| "refId": "A" | ||
|
|
@@ -1024,7 +1024,7 @@ | |
| "uid": "edryyydtht14wa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "increase(pyth_price_update_attempts_total{status=\"error\", namespace=\"$chain\"}[$__range])", | ||
| "expr": "increase(pyth_price_update_attempts_total{status=\"error\", chain=\"$chain\"}[$__range])", | ||
| "legendFormat": "{{alias}} - Errors", | ||
| "range": true, | ||
| "refId": "A" | ||
|
|
@@ -1077,7 +1077,7 @@ | |
| "uid": "ads9ouz3jh4hsa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "{namespace=~\"$chain\"} | logfmt | json | msg =~ `.*(Price update successful|Transaction confirmed|Successfully updated price).*` | line_format `Tx Hash: {{.hash}}`", | ||
| "expr": "{chain=~\"$chain\"} | logfmt | json | msg =~ `.*(Price update successful|Transaction confirmed|Successfully updated price).*` | line_format `Tx Hash: {{.hash}}`", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 Loki stream selector assumes The Grafana dashboard Loki queries (e.g., Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| "queryType": "range", | ||
| "refId": "A" | ||
| } | ||
|
|
@@ -1127,7 +1127,7 @@ | |
| "uid": "ads9ouz3jh4hsa" | ||
| }, | ||
| "editorMode": "code", | ||
| "expr": "{namespace=~\"$chain\"} | logfmt", | ||
| "expr": "{chain=~\"$chain\"} | logfmt", | ||
| "queryType": "range", | ||
| "refId": "A" | ||
| } | ||
|
|
@@ -1164,7 +1164,7 @@ | |
| "uid": "ads9ouz3jh4hsa" | ||
| }, | ||
| "editorMode": "builder", | ||
| "expr": "{namespace=~\"$chain\"} | logfmt | detected_level = `error`", | ||
| "expr": "{chain=~\"$chain\"} | logfmt | detected_level = `error`", | ||
| "queryType": "range", | ||
| "refId": "A" | ||
| } | ||
|
|
@@ -1202,7 +1202,7 @@ | |
| "name": "chain", | ||
| "options": [], | ||
| "query": { | ||
| "label": "namespace", | ||
| "label": "chain", | ||
| "refId": "LokiVariableQueryEditor-VariableQuery", | ||
| "stream": "", | ||
| "type": 1 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -219,5 +219,5 @@ | |
| }, | ||
| "type": "module", | ||
| "types": "./dist/index.d.ts", | ||
| "version": "10.4.0" | ||
| "version": "10.5.0" | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Grafana table panel missing excludeByName entries for new
chaindefault label columnsAdding
chainas a default Prometheus label inapps/price_pusher/src/metrics.ts:38means that table-format queries in the "Price Feeds List" panel will now producechain,chain#B, andchain#Ccolumns (one per query ref). TheexcludeByNameblock already excludes the analogousapp/app#B/app#Ccolumns from the pre-existingappdefault label, but does not exclude the newchaincolumns. As a result, the table will display extra unwanted columns showing the chain value in every row.(Refers to lines 432-455)
Was this helpful? React with 👍 or 👎 to provide feedback.