Skip to content

Commit

Permalink
feat(2737): dashboard and doc updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
koekiebox committed Aug 5, 2024
1 parent a8b7932 commit 38f47a3
Show file tree
Hide file tree
Showing 2 changed files with 175 additions and 65 deletions.
237 changes: 172 additions & 65 deletions localenv/telemetry/grafana/provisioning/dashboards/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,46 @@
},
{
"datasource": {
"type": "tempo",
"uid": "P214B5B846CF3925F"
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "The total for all outgoing transaction fees.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"mode": "palette-classic"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"inspect": 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": {
Expand All @@ -158,68 +184,38 @@
"x": 12,
"y": 0
},
"id": 4,
"id": 6,
"interval": "15s",
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": ["sum"],
"show": false
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"showHeader": true,
"sortBy": [
{
"desc": true,
"displayName": "Duration"
}
]
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.1.0",
"targets": [
{
"datasource": {
"type": "tempo",
"uid": "P214B5B846CF3925F"
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"filters": [
{
"id": "9bab4a0a",
"operator": "=",
"scope": "span"
},
{
"id": "service-name",
"operator": "=",
"scope": "resource",
"tag": "service.name",
"value": ["RAFIKI_NETWORK"],
"valueType": "string"
},
{
"id": "span-name",
"operator": "=",
"scope": "span",
"tag": "name",
"value": [],
"valueType": "string"
},
{
"id": "min-duration",
"operator": ">",
"tag": "duration",
"value": "100ms",
"valueType": "duration"
}
],
"limit": 20,
"queryType": "traceqlSearch",
"refId": "A",
"tableType": "traces"
"editorMode": "code",
"expr": "(increase(transactions_fee_amount_total[30s]) * 0.5 * 0.0001)",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Traces > 100ms",
"type": "table"
"title": "Transaction Fee Amount",
"type": "timeseries"
},
{
"datasource": {
Expand Down Expand Up @@ -319,6 +315,113 @@
"title": "Transaction Count",
"type": "timeseries"
},
{
"datasource": {
"type": "tempo",
"uid": "P214B5B846CF3925F"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 8
},
"id": 4,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": [
{
"desc": true,
"displayName": "Duration"
}
]
},
"pluginVersion": "11.1.3",
"targets": [
{
"datasource": {
"type": "tempo",
"uid": "P214B5B846CF3925F"
},
"filters": [
{
"id": "9bab4a0a",
"operator": "=",
"scope": "span"
},
{
"id": "service-name",
"operator": "=",
"scope": "resource",
"tag": "service.name",
"value": [
"RAFIKI_NETWORK"
],
"valueType": "string"
},
{
"id": "span-name",
"operator": "=",
"scope": "span",
"tag": "name",
"value": [],
"valueType": "string"
},
{
"id": "min-duration",
"operator": ">",
"tag": "duration",
"value": "100ms",
"valueType": "duration"
}
],
"limit": 20,
"queryType": "traceqlSearch",
"refId": "A",
"tableType": "traces"
}
],
"title": "Traces > 100ms",
"type": "table"
},
{
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -362,15 +465,17 @@
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["lastNotNull"],
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.1.0",
"pluginVersion": "11.1.3",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -457,15 +562,17 @@
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["lastNotNull"],
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.1.0",
"pluginVersion": "11.1.3",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -538,4 +645,4 @@
"uid": "fdr58stwkr6yof",
"version": 1,
"weekStart": ""
}
}
3 changes: 3 additions & 0 deletions packages/documentation/src/content/docs/telemetry/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ Currently collected metrics:
- `transactions_amount` - Counter metric
- Description: “Amount sent through the network”.
- This amount metric increases by the amount sent in each ILP packet.
- `payment_fees` - Counter metric
- Description: “Fee amount sent through the network”.
- This fee amount metric increases by the (amount sent minus receive amount) for an outgoing payment.
- `ilp_pay_time_ms` - Histogram metric
- Description: “Time to complete an ILP payment”
- This histogram metric records the time taken to make an ILP payment.
Expand Down

0 comments on commit 38f47a3

Please sign in to comment.