Skip to content

Commit

Permalink
fix: add memory stats
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-a16z committed Oct 18, 2023
1 parent ec2711d commit eb8f123
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-experts-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/hubble": minor
---

add memory stats
188 changes: 161 additions & 27 deletions apps/hubble/grafana/grafana-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"id": 1,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -75,7 +75,9 @@
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
Expand Down Expand Up @@ -129,7 +131,9 @@
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
Expand Down Expand Up @@ -373,7 +377,9 @@
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
Expand Down Expand Up @@ -429,7 +435,9 @@
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
Expand Down Expand Up @@ -599,7 +607,9 @@
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
Expand Down Expand Up @@ -713,17 +723,19 @@
"showLegend": true
},
"tooltip": {
"mode": "single",
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": "Graphite",
"refCount": 0,
"refId": "A",
"target": "stats.gauges.hubble.gossip.peers.inbound"
},
{
"datasource": "Graphite",
"hide": false,
"refCount": 0,
"refId": "B",
Expand Down Expand Up @@ -870,7 +882,9 @@
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": ["sum"],
"calcs": [
"sum"
],
"fields": "",
"values": false
},
Expand Down Expand Up @@ -923,7 +937,9 @@
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
Expand Down Expand Up @@ -1173,7 +1189,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1258,7 +1275,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1301,13 +1319,120 @@
"title": "DB Size on disk",
"type": "timeseries"
},
{
"datasource": "Graphite",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": 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
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 43
},
"id": 33,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.0.3",
"targets": [
{
"datasource": "Graphite",
"refCount": 0,
"refId": "A",
"target": "stats.gauges.hubble.memory.external"
},
{
"datasource": "Graphite",
"hide": false,
"refCount": 0,
"refId": "B",
"target": "stats.gauges.hubble.memory.heap_total"
},
{
"datasource": "Graphite",
"hide": false,
"refCount": 0,
"refId": "C",
"target": "stats.gauges.hubble.memory.heap_used"
},
{
"datasource": "Graphite",
"hide": false,
"refCount": 0,
"refId": "D",
"target": "stats.gauges.hubble.memory.rss"
}
],
"title": "Memory Usage",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 43
"y": 51
},
"id": 15,
"panels": [],
Expand Down Expand Up @@ -1357,7 +1482,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1397,7 +1523,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 44
"y": 52
},
"id": 16,
"options": {
Expand Down Expand Up @@ -1465,7 +1591,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1505,7 +1632,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 44
"y": 52
},
"id": 17,
"options": {
Expand Down Expand Up @@ -1537,7 +1664,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 52
"y": 60
},
"id": 28,
"panels": [],
Expand Down Expand Up @@ -1586,7 +1713,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand All @@ -1601,7 +1729,7 @@
"h": 10,
"w": 7,
"x": 0,
"y": 53
"y": 61
},
"id": 30,
"options": {
Expand Down Expand Up @@ -1669,7 +1797,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1698,7 +1827,7 @@
"h": 10,
"w": 9,
"x": 7,
"y": 53
"y": 61
},
"id": 27,
"options": {
Expand Down Expand Up @@ -1766,7 +1895,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand All @@ -1781,7 +1911,7 @@
"h": 10,
"w": 8,
"x": 16,
"y": 53
"y": 61
},
"id": 29,
"options": {
Expand Down Expand Up @@ -1855,15 +1985,17 @@
"h": 9,
"w": 7,
"x": 0,
"y": 63
"y": 71
},
"id": 32,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": ["sum"],
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
Expand All @@ -1888,7 +2020,9 @@
{
"id": "reduce",
"options": {
"reducers": ["lastNotNull"]
"reducers": [
"lastNotNull"
]
}
}
],
Expand All @@ -1912,4 +2046,4 @@
"uid": "af04c037-bd8f-484a-b93e-0cb4b7d3b026",
"version": 4,
"weekStart": ""
}
}
Loading

0 comments on commit eb8f123

Please sign in to comment.