Skip to content

Instantly share code, notes, and snippets.

@multikatt
Last active September 12, 2023 20:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save multikatt/870cb2cb3290313f021b182b01c48495 to your computer and use it in GitHub Desktop.
Save multikatt/870cb2cb3290313f021b182b01c48495 to your computer and use it in GitHub Desktop.
Hostd Grafana
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": 2,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 11,
"x": 6,
"y": 0
},
"id": 8,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "9.5.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "increase(hostd_egress[$__range])",
"hide": false,
"legendFormat": "Uploaded",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "increase(hostd_ingress[$__range])",
"legendFormat": "Downloaded",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "increase(hostd_ingress[$__range]) + increase(hostd_egress[$__range])",
"hide": false,
"legendFormat": "Total",
"range": true,
"refId": "C"
}
],
"title": "Total data traffic",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"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": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 7,
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max",
"min",
"sum"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "increase(hostd_storage_reads[$__rate_interval])",
"legendFormat": "Reads",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "increase(hostd_storage_writes[$__rate_interval])",
"hide": false,
"legendFormat": "Writes",
"range": true,
"refId": "B"
}
],
"title": "Storage Operations",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"description": "",
"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": {
"linearThreshold": 3,
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 2,
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 8
},
"id": 1,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "builder",
"expr": "hostd_wallet_confirmed_siacoin_balance",
"legendFormat": "Confirmed Siacoin Balance",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "23328",
"hide": false,
"legendFormat": "Start Balance",
"range": true,
"refId": "B"
}
],
"title": "Balance",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"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",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 12,
"x": 0,
"y": 16
},
"id": 4,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(hostd_contract_count or hostd_active_contract_count)",
"format": "time_series",
"instant": false,
"legendFormat": "Active contracts",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_successful_contract_count",
"hide": false,
"legendFormat": "Successful",
"range": true,
"refId": "D"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_rejected_contract_count",
"format": "time_series",
"hide": false,
"legendFormat": "Rejected",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_failed_contract_count",
"hide": false,
"legendFormat": "Failed",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_pending_contract_count",
"hide": false,
"legendFormat": "Pending",
"range": true,
"refId": "E"
}
],
"title": "Contracts",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 40,
"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"
}
},
"decimals": 2,
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"Used"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 11,
"w": 12,
"x": 12,
"y": 16
},
"id": 2,
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max",
"min"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_total_storage",
"legendFormat": "Total",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_used_storage",
"hide": false,
"legendFormat": "Used",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_remaining_storage",
"hide": false,
"legendFormat": "Remaining",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_contract_storage",
"hide": false,
"legendFormat": "Contract",
"range": true,
"refId": "D"
}
],
"title": "Storage Capacity",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 40,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bps"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/.*Egress.*/"
},
"properties": [
{
"id": "custom.transform",
"value": "negative-Y"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 27
},
"id": 3,
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max",
"min"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "rate(hostd_ingress{}[$__rate_interval])*8 > 0",
"interval": "",
"legendFormat": "Ingress",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "rate(hostd_egress{}[$__rate_interval])*8 > 0",
"hide": false,
"interval": "",
"legendFormat": "Egress",
"range": true,
"refId": "B"
}
],
"title": "Bandwidth",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 27
},
"id": 5,
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max",
"min"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_locked_collateral",
"legendFormat": "Locked",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_risked_collateral",
"hide": false,
"legendFormat": "Risked",
"range": true,
"refId": "B"
}
],
"title": "Collateral",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 35
},
"id": 9,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_potential_storage",
"legendFormat": "Potential Storage",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_potential_rpc",
"hide": false,
"legendFormat": "Potential RPC",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_potential_ingress",
"hide": false,
"legendFormat": "Potential Ingress",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_potential_egress",
"hide": false,
"legendFormat": "Potential Egress",
"range": true,
"refId": "D"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_potential_registry_read",
"hide": false,
"legendFormat": "Potential Registry Reads",
"range": true,
"refId": "E"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_potential_registry_write",
"hide": false,
"legendFormat": "Potential Registry Writes",
"range": true,
"refId": "F"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_potential_storage + hostd_revenue_potential_rpc +hostd_revenue_potential_registry_read + hostd_revenue_potential_registry_write + hostd_revenue_potential_egress + hostd_revenue_potential_ingress",
"hide": false,
"legendFormat": "Total",
"range": true,
"refId": "G"
}
],
"title": "Potential revenue",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"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"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 35
},
"id": 10,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_earned_storage",
"legendFormat": "Earned Storage",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_earned_rpc",
"hide": false,
"legendFormat": "Earned RPC",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_earned_ingress",
"hide": false,
"legendFormat": "Earned Ingress",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_earned_egress",
"hide": false,
"legendFormat": "Earned Egress",
"range": true,
"refId": "D"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_earned_registry_read",
"hide": false,
"legendFormat": "Earned Registry Reads",
"range": true,
"refId": "E"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_earned_registry_write",
"hide": false,
"legendFormat": "Earned Registry Writes",
"range": true,
"refId": "F"
},
{
"datasource": {
"type": "prometheus",
"uid": "ae214d07-4661-4688-927f-03a32eb929b3"
},
"editorMode": "code",
"expr": "hostd_revenue_earned_storage + hostd_revenue_earned_rpc +hostd_revenue_earned_registry_read + hostd_revenue_earned_registry_write + hostd_revenue_earned_egress + hostd_revenue_earned_ingress",
"hide": false,
"legendFormat": "Total",
"range": true,
"refId": "G"
}
],
"title": "Earned revenue",
"type": "timeseries"
}
],
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Hostd",
"uid": "d4d179a9-b7b4-4689-b69a-9fbd4990dcd5",
"version": 18,
"weekStart": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment