Skip to content

Commit

Permalink
adapt to latest metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
toralf committed Apr 20, 2024
1 parent ad9c9e6 commit a7294ec
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 52 deletions.
29 changes: 17 additions & 12 deletions dashboards/tor-ddos.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "10.4.0"
"version": "10.4.2"
},
{
"type": "datasource",
Expand Down Expand Up @@ -169,7 +169,7 @@
"overrides": []
},
"gridPos": {
"h": 4,
"h": 3,
"w": 7,
"x": 0,
"y": 1
Expand All @@ -188,10 +188,13 @@
"values": false
},
"showPercentChange": false,
"text": {
"titleSize": 13
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand All @@ -201,7 +204,7 @@
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": false,
"expr": "tor_bug_reached{nickname=~\"$Nickname\"}",
"expr": "tor_bug_reached_count{nickname=~\"$Nickname\"}",
"format": "time_series",
"fullMetaSearch": false,
"includeNullMetadata": true,
Expand Down Expand Up @@ -276,7 +279,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -336,10 +339,10 @@
"overrides": []
},
"gridPos": {
"h": 5,
"h": 6,
"w": 7,
"x": 0,
"y": 5
"y": 4
},
"id": 83,
"options": {
Expand All @@ -355,9 +358,12 @@
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
"sizing": "auto",
"text": {
"titleSize": 13
}
},
"pluginVersion": "10.4.0",
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -909,8 +915,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -3170,6 +3175,6 @@
"timezone": "utc",
"title": "Tor DDoS",
"uid": "FgvRNta4k",
"version": 444,
"version": 446,
"weekStart": ""
}
54 changes: 20 additions & 34 deletions dashboards/tor-relay.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "10.4.0"
"version": "10.4.2"
},
{
"type": "datasource",
Expand Down Expand Up @@ -231,6 +231,7 @@
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 100,
"axisWidth": 80,
"barAlignment": 0,
"drawStyle": "line",
Expand Down Expand Up @@ -265,10 +266,6 @@
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
Expand Down Expand Up @@ -736,6 +733,7 @@
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMin": 0,
"axisWidth": 80,
"barAlignment": 0,
"drawStyle": "line",
Expand Down Expand Up @@ -1105,8 +1103,9 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg by(instance) (tor_bug_reached{instance=~\"$Instance\"})",
"expr": "avg by(instance) (tor_bug_reached_count{instance=~\"$Instance\"})",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"legendFormat": "__auto",
"range": true,
Expand Down Expand Up @@ -1286,8 +1285,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -1386,8 +1384,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -1486,8 +1483,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -1586,8 +1582,7 @@
}
]
},
"unit": "short",
"unitScale": true
"unit": "short"
},
"overrides": []
},
Expand Down Expand Up @@ -1686,8 +1681,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -1786,8 +1780,7 @@
}
]
},
"unit": "short",
"unitScale": true
"unit": "short"
},
"overrides": []
},
Expand Down Expand Up @@ -1827,7 +1820,7 @@
"useBackend": false
}
],
"title": "Connection",
"title": "Connections",
"type": "timeseries"
},
{
Expand Down Expand Up @@ -1887,8 +1880,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -1987,8 +1979,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -2087,8 +2078,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -2187,8 +2177,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -2287,8 +2276,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -2387,8 +2375,7 @@
}
]
},
"unit": "bytes",
"unitScale": true
"unit": "bytes"
},
"overrides": []
},
Expand Down Expand Up @@ -2487,8 +2474,7 @@
}
]
},
"unit": "none",
"unitScale": true
"unit": "none"
},
"overrides": []
},
Expand Down Expand Up @@ -3059,6 +3045,6 @@
"timezone": "",
"title": "Tor Relay",
"uid": "bb0ac200-1fab-4d04-a3b0-859d35ec9ee6",
"version": 303,
"version": 313,
"weekStart": ""
}
12 changes: 6 additions & 6 deletions dashboards/tor-snowflake-1m.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "10.4.0"
"version": "10.4.2"
},
{
"type": "datasource",
Expand Down Expand Up @@ -415,7 +415,7 @@
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 0.5,
"axisSoftMax": 0.3,
"axisSoftMin": 0,
"axisWidth": 80,
"barAlignment": 0,
Expand Down Expand Up @@ -758,16 +758,16 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes",
"unitScale": true
"unit": "bytes"
},
"overrides": []
},
Expand Down Expand Up @@ -874,6 +874,6 @@
"timezone": "",
"title": "Tor Snowflake 1m",
"uid": "b1cf61bb-53e2-44e9-9f96-af33116dee8a",
"version": 56,
"version": 57,
"weekStart": ""
}

0 comments on commit a7294ec

Please sign in to comment.