mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
feat: rework hass monitoring
This commit is contained in:
@@ -4,15 +4,15 @@ metadata:
|
||||
name: home-automation
|
||||
namespace: home-automation
|
||||
stringData:
|
||||
prometheus-token: ENC[AES256_GCM,data:O/5thoV3TePb9+yS8WQJEdQjh9B6QgJ0K6XznEz79wKPCcjKrPPLsIYkJmWO2qOYjvyVSMOLLjx8S/3GPhNtVBBQ75W3IxRKG4tY2h9poVcJjccidFkdq3h9PZsyipSKHxk10Da1BbZh6Sf390SbJAzThGNAMvyyurLMdz+tUHtSy0tJMkzdZaiaM/OOlMN1X9/fe8J8RVZftWBiMIVuL/4QYdgCE/m5iwnjubwb9Uy87LgQBhah,iv:tXGnsIQotYJaslqFpPBmxJRoBSFhel0rR+wRA8V4NTk=,tag:IUcC0yAzyHiX8/iiAIbexw==,type:str]
|
||||
prometheus-token: ENC[AES256_GCM,data:kdbgWt5uSPdmTPAoDeVf1sfP6DQc88lfv90FlmDT5FeviX/Ph5JgjAbqOrwXxV8IN9HL2Vi1v3mbHeR5BCH8reteSKB/0OtCA+MxdQoIxQYxFjGIYffXhAZnChR3+ClqqS/MS1YyR9U8SRmRR9JTMJ9sjIjhVBbJKfFBDxC3uaQ0uqXIjCoSjET+tJuMMHM6cZsiExNM0orxSb0bVNw2BYEUR8qTtDIDsBATygvMKVx5021YwUtG,iv:iTUpNDajPUoIs7/Uz6U4jNgU7ei0j/9qPunctKrHJgc=,tag:YiAFDl1tPT9SEatyZyCJfQ==,type:str]
|
||||
sops:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
azure_kv: []
|
||||
hc_vault: []
|
||||
age: []
|
||||
lastmodified: "2021-08-20T16:21:09Z"
|
||||
mac: ENC[AES256_GCM,data:E8aMNQ1WQPmHuAYIYkawU9oQWRyjkF4XLdHWQLlroRGXNMhQcujMp8gfllXdrCnq2xL6iy6LogmqbxCcbboaJsC5mYP9wICkPCmRSt970TzkLY8nUZISSo41z0TIG4h7GKS3/K2sfMMYfenuOUIYajPR7DadGVKUkVUso2c88JU=,iv:UM0kWhJQo1ArwYsEmCeNyNBzQGeYHhDK/tNV8ipAg5I=,tag:PdHnyxjf9HBweq1lnmsjBQ==,type:str]
|
||||
lastmodified: "2022-02-06T21:49:07Z"
|
||||
mac: ENC[AES256_GCM,data:yjZ4XYoEurOdoaHlRtA8Tz2glnxmfdrsx2HX6bX2iBhfBysdUwnFxUHRes8HpYO8dG+jKDWV59LJ1+GeTiulscEFwbeBrdd2G7+4j8bQXzn3z9uGjAS0rv1BS8BOnTtpylkSuDw3hRokQrhBaIqRck85R6RhEE3ZytVXWybIYcY=,iv:nhlh53cddpOcLthdNpLtwmAdHaTqhsTAiBAJWki+CrU=,tag:s1h54s0mNXt7yIS8c4e3PA==,type:str]
|
||||
pgp:
|
||||
- created_at: "2021-08-20T16:21:08Z"
|
||||
enc: |
|
||||
|
@@ -9,12 +9,13 @@
|
||||
"pluginName": "Prometheus"
|
||||
}
|
||||
],
|
||||
"__elements": [],
|
||||
"__requires": [
|
||||
{
|
||||
"type": "grafana",
|
||||
"id": "grafana",
|
||||
"name": "Grafana",
|
||||
"version": "8.0.5"
|
||||
"version": "8.3.4"
|
||||
},
|
||||
{
|
||||
"type": "datasource",
|
||||
@@ -38,18 +39,24 @@
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"target": {
|
||||
"limit": 100,
|
||||
"matchAny": false,
|
||||
"tags": [],
|
||||
"type": "dashboard"
|
||||
},
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"editable": false,
|
||||
"fiscalYearStartMonth": 0,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
"links": [],
|
||||
"liveNow": false,
|
||||
"panels": [
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
@@ -68,6 +75,9 @@
|
||||
"viz": false
|
||||
},
|
||||
"lineInterpolation": "linear",
|
||||
"lineStyle": {
|
||||
"fill": "solid"
|
||||
},
|
||||
"lineWidth": 1,
|
||||
"pointSize": 5,
|
||||
"scaleDistribution": {
|
||||
@@ -111,7 +121,11 @@
|
||||
"id": 6,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": ["mean", "max", "min"],
|
||||
"calcs": [
|
||||
"mean",
|
||||
"max",
|
||||
"min"
|
||||
],
|
||||
"displayMode": "table",
|
||||
"placement": "right"
|
||||
},
|
||||
@@ -122,36 +136,46 @@
|
||||
"pluginVersion": "8.0.5",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "hass_sensor_temperature_celsius{entity=~\"sensor.temperature_living_room_temperature\"}",
|
||||
"expr": "sum(hass_sensor_temperature_celsius{entity=\"sensor.temperature_living_room_temperature\"})",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "Salon",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "hass_sensor_temperature_celsius{entity=~\"sensor.temperature_bedroom_temperature\"}",
|
||||
"expr": "sum(hass_sensor_temperature_celsius{entity=~\"sensor.temperature_bedroom_temperature\"})",
|
||||
"hide": false,
|
||||
"interval": "",
|
||||
"legendFormat": "Chambre 1",
|
||||
"refId": "B"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "hass_sensor_temperature_celsius{entity=~\"sensor.temperature_office_temperature\"}",
|
||||
"expr": "sum(hass_sensor_temperature_celsius{entity=~\"sensor.temperature_office_temperature\"})",
|
||||
"hide": false,
|
||||
"interval": "",
|
||||
"legendFormat": "Bureau",
|
||||
"refId": "C"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "Home",
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@@ -214,7 +238,10 @@
|
||||
"id": 7,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": ["mean", "max"],
|
||||
"calcs": [
|
||||
"mean",
|
||||
"max"
|
||||
],
|
||||
"displayMode": "table",
|
||||
"placement": "right"
|
||||
},
|
||||
@@ -225,28 +252,37 @@
|
||||
"pluginVersion": "8.0.5",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "hass_sensor_power_w{entity=\"sensor.servers_plug_switch_electricity_power\"}",
|
||||
"expr": "sum(hass_sensor_power_w{entity=\"sensor.servers_plug_switch_electricity_power\"})",
|
||||
"interval": "",
|
||||
"legendFormat": "Servers",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "hass_sensor_power_w{entity=\"sensor.bureau_plug_switch_electricity_power\"}",
|
||||
"expr": "sum(hass_sensor_power_w{entity=\"sensor.bureau_plug_switch_electricity_power\"})",
|
||||
"hide": false,
|
||||
"interval": "",
|
||||
"legendFormat": "claude-fixe",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "Computers",
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
@@ -308,7 +344,10 @@
|
||||
"id": 8,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": ["mean", "max"],
|
||||
"calcs": [
|
||||
"mean",
|
||||
"max"
|
||||
],
|
||||
"displayMode": "table",
|
||||
"placement": "right"
|
||||
},
|
||||
@@ -342,15 +381,15 @@
|
||||
"refId": "C"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "Home Cinema",
|
||||
"type": "timeseries"
|
||||
}
|
||||
],
|
||||
"schemaVersion": 30,
|
||||
"schemaVersion": 34,
|
||||
"style": "dark",
|
||||
"tags": ["home-assistant"],
|
||||
"tags": [
|
||||
"home-assistant"
|
||||
],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
@@ -374,5 +413,6 @@
|
||||
"timezone": "",
|
||||
"title": "Home-Assistant",
|
||||
"uid": "sn-bOoWMk",
|
||||
"version": 1
|
||||
"version": 1,
|
||||
"weekStart": ""
|
||||
}
|
@@ -9,12 +9,13 @@
|
||||
"pluginName": "Prometheus"
|
||||
}
|
||||
],
|
||||
"__elements": [],
|
||||
"__requires": [
|
||||
{
|
||||
"type": "grafana",
|
||||
"id": "grafana",
|
||||
"name": "Grafana",
|
||||
"version": "8.0.5"
|
||||
"version": "8.3.4"
|
||||
},
|
||||
{
|
||||
"type": "datasource",
|
||||
@@ -38,18 +39,28 @@
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"target": {
|
||||
"limit": 100,
|
||||
"matchAny": false,
|
||||
"tags": [],
|
||||
"type": "dashboard"
|
||||
},
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"editable": false,
|
||||
"fiscalYearStartMonth": 0,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
"links": [],
|
||||
"liveNow": false,
|
||||
"panels": [
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
@@ -111,7 +122,11 @@
|
||||
"id": 5,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": ["mean", "max", "min"],
|
||||
"calcs": [
|
||||
"mean",
|
||||
"max",
|
||||
"min"
|
||||
],
|
||||
"displayMode": "table",
|
||||
"placement": "right"
|
||||
},
|
||||
@@ -129,13 +144,14 @@
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "OPNsense - CPU",
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
@@ -203,7 +219,11 @@
|
||||
"id": 2,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": ["mean", "max", "min"],
|
||||
"calcs": [
|
||||
"mean",
|
||||
"max",
|
||||
"min"
|
||||
],
|
||||
"displayMode": "table",
|
||||
"placement": "right"
|
||||
},
|
||||
@@ -222,14 +242,11 @@
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "k3s Nodes - CPU",
|
||||
"transformations": [],
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
@@ -291,7 +308,11 @@
|
||||
"id": 6,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": ["mean", "max", "min"],
|
||||
"calcs": [
|
||||
"mean",
|
||||
"max",
|
||||
"min"
|
||||
],
|
||||
"displayMode": "hidden",
|
||||
"placement": "right"
|
||||
},
|
||||
@@ -302,22 +323,26 @@
|
||||
"pluginVersion": "8.0.5",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"exemplar": true,
|
||||
"expr": "hass_sensor_temperature_celsius{entity=~\"sensor.temperature_servers_temperature\"}",
|
||||
"expr": "sum(hass_sensor_temperature_celsius{entity=~\"sensor.temperature_servers_temperature\"})",
|
||||
"interval": "",
|
||||
"legendFormat": "datacenter",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "Datacenter",
|
||||
"type": "timeseries"
|
||||
}
|
||||
],
|
||||
"schemaVersion": 30,
|
||||
"schemaVersion": 34,
|
||||
"style": "dark",
|
||||
"tags": ["homelab"],
|
||||
"tags": [
|
||||
"homelab"
|
||||
],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
@@ -341,5 +366,6 @@
|
||||
"timezone": "",
|
||||
"title": "Homelab / Temperatures",
|
||||
"uid": "aEY0BVGnz",
|
||||
"version": 1
|
||||
"version": 1,
|
||||
"weekStart": ""
|
||||
}
|
@@ -1,539 +0,0 @@
|
||||
{
|
||||
"__inputs": [
|
||||
{
|
||||
"name": "DS_PROMETHEUS",
|
||||
"label": "Prometheus",
|
||||
"description": "",
|
||||
"type": "datasource",
|
||||
"pluginId": "prometheus",
|
||||
"pluginName": "Prometheus"
|
||||
}
|
||||
],
|
||||
"__requires": [
|
||||
{
|
||||
"type": "grafana",
|
||||
"id": "grafana",
|
||||
"name": "Grafana",
|
||||
"version": "8.1.0"
|
||||
},
|
||||
{
|
||||
"type": "datasource",
|
||||
"id": "prometheus",
|
||||
"name": "Prometheus",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
{
|
||||
"type": "panel",
|
||||
"id": "stat",
|
||||
"name": "Stat",
|
||||
"version": ""
|
||||
},
|
||||
{
|
||||
"type": "panel",
|
||||
"id": "timeseries",
|
||||
"name": "Time series",
|
||||
"version": ""
|
||||
}
|
||||
],
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"target": {
|
||||
"limit": 100,
|
||||
"matchAny": false,
|
||||
"tags": [],
|
||||
"type": "dashboard"
|
||||
},
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": false,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
"iteration": 1630311640136,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"collapsed": false,
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"gridPos": {
|
||||
"h": 1,
|
||||
"w": 24,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"id": 6,
|
||||
"panels": [],
|
||||
"repeat": "pair",
|
||||
"title": "${pair}",
|
||||
"type": "row"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "semi-dark-red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "dark-green",
|
||||
"value": 20
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "percent"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 6,
|
||||
"w": 3,
|
||||
"x": 0,
|
||||
"y": 1
|
||||
},
|
||||
"id": 4,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "area",
|
||||
"justifyMode": "auto",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"text": {},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"pluginVersion": "8.1.0",
|
||||
"targets": [
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "terra_pool_pairs_apr{slug=\"${pair}\"}",
|
||||
"instant": true,
|
||||
"interval": "",
|
||||
"legendFormat": "",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "APR",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"decimals": 3,
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "dark-green",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "currencyUSD"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 3,
|
||||
"w": 2,
|
||||
"x": 3,
|
||||
"y": 1
|
||||
},
|
||||
"id": 9,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "area",
|
||||
"justifyMode": "auto",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"text": {},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"pluginVersion": "8.1.0",
|
||||
"targets": [
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "terra_pool_pairs_liquidity{slug=\"${pair}\"}",
|
||||
"instant": true,
|
||||
"interval": "",
|
||||
"legendFormat": "",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Liquidity",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"custom": {
|
||||
"axisLabel": "",
|
||||
"axisPlacement": "auto",
|
||||
"axisSoftMax": 200,
|
||||
"axisSoftMin": 0,
|
||||
"barAlignment": 0,
|
||||
"drawStyle": "line",
|
||||
"fillOpacity": 20,
|
||||
"gradientMode": "none",
|
||||
"hideFrom": {
|
||||
"legend": false,
|
||||
"tooltip": false,
|
||||
"viz": false
|
||||
},
|
||||
"lineInterpolation": "linear",
|
||||
"lineStyle": {
|
||||
"fill": "solid"
|
||||
},
|
||||
"lineWidth": 2,
|
||||
"pointSize": 5,
|
||||
"scaleDistribution": {
|
||||
"type": "linear"
|
||||
},
|
||||
"showPoints": "auto",
|
||||
"spanNulls": true,
|
||||
"stacking": {
|
||||
"group": "A",
|
||||
"mode": "none"
|
||||
},
|
||||
"thresholdsStyle": {
|
||||
"mode": "off"
|
||||
}
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 20
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "percent"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "APR"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "color",
|
||||
"value": {
|
||||
"fixedColor": "dark-yellow",
|
||||
"mode": "fixed"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 19,
|
||||
"x": 5,
|
||||
"y": 1
|
||||
},
|
||||
"id": 2,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": [],
|
||||
"displayMode": "hidden",
|
||||
"placement": "bottom"
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "single"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "sum(terra_pool_pairs_apr{slug=\"${pair}\"})",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "APR",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "APR",
|
||||
"type": "timeseries"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"decimals": 3,
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "dark-green",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "currencyUSD"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 3,
|
||||
"w": 2,
|
||||
"x": 3,
|
||||
"y": 4
|
||||
},
|
||||
"id": 10,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "area",
|
||||
"justifyMode": "auto",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"last"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"text": {},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"pluginVersion": "8.1.0",
|
||||
"targets": [
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "terra_pool_pairs_vol_24h{slug=\"${pair}\"}",
|
||||
"instant": true,
|
||||
"interval": "",
|
||||
"legendFormat": "",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"title": "Volume (24h)",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"datasource": "${DS_PROMETHEUS}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
},
|
||||
"custom": {
|
||||
"axisLabel": "",
|
||||
"axisPlacement": "auto",
|
||||
"barAlignment": 0,
|
||||
"drawStyle": "line",
|
||||
"fillOpacity": 20,
|
||||
"gradientMode": "none",
|
||||
"hideFrom": {
|
||||
"legend": false,
|
||||
"tooltip": false,
|
||||
"viz": false
|
||||
},
|
||||
"lineInterpolation": "linear",
|
||||
"lineStyle": {
|
||||
"fill": "solid"
|
||||
},
|
||||
"lineWidth": 2,
|
||||
"pointSize": 5,
|
||||
"scaleDistribution": {
|
||||
"type": "linear"
|
||||
},
|
||||
"showPoints": "auto",
|
||||
"spanNulls": true,
|
||||
"stacking": {
|
||||
"group": "A",
|
||||
"mode": "none"
|
||||
},
|
||||
"thresholdsStyle": {
|
||||
"mode": "off"
|
||||
}
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "dark-green",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"unit": "currencyUSD"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "Liquidity"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "color",
|
||||
"value": {
|
||||
"fixedColor": "dark-blue",
|
||||
"mode": "fixed"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byName",
|
||||
"options": "Volume (24h)"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "color",
|
||||
"value": {
|
||||
"fixedColor": "dark-orange",
|
||||
"mode": "fixed"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 19,
|
||||
"x": 5,
|
||||
"y": 10
|
||||
},
|
||||
"id": 11,
|
||||
"options": {
|
||||
"legend": {
|
||||
"calcs": [],
|
||||
"displayMode": "list",
|
||||
"placement": "bottom"
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "single"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "sum(terra_pool_pairs_liquidity{slug=\"${pair}\"})",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "Liquidity",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"exemplar": false,
|
||||
"expr": "sum(terra_pool_pairs_vol_24h{slug=\"${pair}\"})",
|
||||
"hide": false,
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "Volume (24h)",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"title": "Stats",
|
||||
"type": "timeseries"
|
||||
}
|
||||
],
|
||||
"schemaVersion": 30,
|
||||
"style": "dark",
|
||||
"tags": [
|
||||
"crypto",
|
||||
"terra"
|
||||
],
|
||||
"templating": {
|
||||
"list": [
|
||||
{
|
||||
"allValue": null,
|
||||
"current": {
|
||||
"selected": true,
|
||||
"text": [
|
||||
"bluna-luna",
|
||||
"meth-beth"
|
||||
],
|
||||
"value": [
|
||||
"bluna-luna",
|
||||
"meth-beth"
|
||||
]
|
||||
},
|
||||
"description": null,
|
||||
"error": null,
|
||||
"hide": 0,
|
||||
"includeAll": false,
|
||||
"label": null,
|
||||
"multi": true,
|
||||
"name": "pair",
|
||||
"options": [
|
||||
{
|
||||
"selected": true,
|
||||
"text": "bluna-luna",
|
||||
"value": "bluna-luna"
|
||||
},
|
||||
{
|
||||
"selected": true,
|
||||
"text": "meth-beth",
|
||||
"value": "meth-beth"
|
||||
}
|
||||
],
|
||||
"query": "bluna-luna,meth-beth",
|
||||
"queryValue": "",
|
||||
"skipUrlSync": false,
|
||||
"type": "custom"
|
||||
}
|
||||
]
|
||||
},
|
||||
"time": {
|
||||
"from": "now-7d",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {},
|
||||
"timezone": "",
|
||||
"title": "Terra",
|
||||
"uid": "2A-Ckrn7z",
|
||||
"version": 1
|
||||
}
|
@@ -136,9 +136,6 @@ spec:
|
||||
sonarr:
|
||||
url: https://raw.githubusercontent.com/k8s-at-home/grafana-dashboards/main/sonarr.json
|
||||
datasource: Prometheus
|
||||
terra:
|
||||
url: https://raw.githubusercontent.com/auricom/home-cluster/main/cluster/apps/monitoring/kube-prometheus-stack/grafana-dashboards/terra.json
|
||||
datasource: Prometheus
|
||||
deploymentStrategy:
|
||||
type: Recreate
|
||||
persistence:
|
||||
@@ -280,13 +277,13 @@ spec:
|
||||
- targets: ["${LOCAL_LAN_TRUENAS}:9273"]
|
||||
labels:
|
||||
app: "truenas"
|
||||
# - job_name: "truenas-remote"
|
||||
# scrape_interval: 60s
|
||||
# metrics_path: "/metrics"
|
||||
# static_configs:
|
||||
# - targets: ["${LOCAL_LAN_TRUENAS_REMOTE}:9273"]
|
||||
# labels:
|
||||
# app: "truenas-remote"
|
||||
- job_name: "truenas-remote"
|
||||
scrape_interval: 60s
|
||||
metrics_path: "/metrics"
|
||||
static_configs:
|
||||
- targets: ["${LOCAL_LAN_TRUENAS_REMOTE}:9273"]
|
||||
labels:
|
||||
app: "truenas-remote"
|
||||
# Example scrape config for probing ingresses via the Blackbox Exporter.
|
||||
#
|
||||
# The relabeling allows the actual ingress scrape endpoint to be configured
|
||||
|
@@ -51,7 +51,6 @@ stringData:
|
||||
SECRET_HASS_LATITUDE: ENC[AES256_GCM,data:ik+tndAS+JtYhQbddiWvkZc=,iv:mEuA19JFIHaJvQe5CWXS7krxIPYjcw+qh7gQJGaOTlQ=,tag:/u/QPonVyG8yqh01cIUr+A==,type:str]
|
||||
SECRET_HASS_LONGITUDE: ENC[AES256_GCM,data:uMCRLH3w+9k+Gm+zNVfPot0=,iv:2RF8hDR9nIlMhVQqo2Yz1i/iJ6mAOpvsA0I2A/omLnc=,tag:toyVXFYVy65lFVJFX6U/Zg==,type:str]
|
||||
SECRET_HASS_ELEVATION: ENC[AES256_GCM,data:fiI=,iv:Sy5NdLA7Ic8bGKEtN2Jjhmh4nnwV/KieTh0sHXvE5us=,tag:U5OzDIP70eA9JkLEEpeQWw==,type:str]
|
||||
SECRET_HASS_TOKEN: ENC[AES256_GCM,data:26Q/IXtj8k/GKTZ9o1EQbIoghM/c9h7iviJoFRmXYDlgAIYUkxM5K+EGUnMH1hVn0s+zQSh61gT1xs+nNIQiB++2EQSySHT9zE5rOQuWxaiHnckuQYuGegEc0zdPD+nL7T3Hg528s43uXKDB30kotBWYMAQWkEw4vWI5RAEzs5KM0OlZosrhcWNkbU6yV5CfM95+a0dfkCF8G8Yj7PlbpTwo9hH+KMz/DfrLNeJBn+C707+pp8XK,iv:eMb+nyAmve+MEJ2m9RrnqgRMMnx7RHfmqIZF9UYcPpo=,tag:DyiWpA4KzUqKGO9Ku3u6ig==,type:str]
|
||||
SECRET_HEALTHCHECKS_DB_PASSWORD: ENC[AES256_GCM,data:zyO/WDvr7IFobDE7s9X38g==,iv:pEaxCH0iwNfscKXnKZlGeGWcJcfMAxMTf4AbFGO8xLM=,tag:jTsRH7K/O9577xytS2uZpw==,type:str]
|
||||
SECRET_HEALTHECKS_SECRET_KEY: ENC[AES256_GCM,data:ChWTKr7WxvvqOEQnZQIfUE2WXRyhnyPOW94m2f3SJ04=,iv:BV7nYDs3E/Fs1NSx233Qt0JzGCvcQgIyu7szSxPt2LQ=,tag:fKH4//rd1fPhMP7Jd/l+6A==,type:str]
|
||||
SECRET_HEALTHCHECKS_SUPERUSER_EMAIL: ENC[AES256_GCM,data:iyo6ZDYI3FHewj0NlktZcwscKlKQ3FpJq9+n,iv:RwFX+UYaW4MpJwf9ehma3IPeWyOkXWLHBLoPIFmi+Jc=,tag:A2BbNIPOS6rfr+kJGtqarw==,type:str]
|
||||
@@ -95,8 +94,8 @@ sops:
|
||||
azure_kv: []
|
||||
hc_vault: []
|
||||
age: []
|
||||
lastmodified: "2021-12-12T21:02:34Z"
|
||||
mac: ENC[AES256_GCM,data:UJAqhSriN80gQVYzW4ASjfSaFgyOGBM0JYQxmLtst+i94m+4wN6xNkHgd1RFZb4aOXzPx/hJ63Gq/fZKbQHE8KFJcKq+CwjMESIdna61lqElHc6B8k4ifPw/Pk4CL6qP61lLTPb+xpT/p9R6nzqxYkiQU28p2HOjdpMVt+Iik3I=,iv:w8yRZtClrkAc/eKOSA7AaT1/j4RYIbBv9zHhCpxXqPY=,tag:wyLe6Xzh8LJJBGE37NFVWA==,type:str]
|
||||
lastmodified: "2022-02-06T21:47:43Z"
|
||||
mac: ENC[AES256_GCM,data:CGc7Phg+zG1MGJraXAgsj9/XhhURV4+Sk/EqOzrx490mbSmrXedSn2pHT3jg7OqKG5aLM3yqU3B2Tx1vEq48O1/VCpgMtc2NElCZA/3saDqTr6Qxgee9LoLXUPygvbQAfcCK9pHSkK3mAFVz42faDp0fE2OPsdCpkIY7zjLZp5Y=,iv:79bh+5fX+r4oNkw+07fh17kqNBCe7uuC4QQh2s4W040=,tag:MnfSm2decRsgkGHIs1NhiQ==,type:str]
|
||||
pgp:
|
||||
- created_at: "2021-07-17T21:14:34Z"
|
||||
enc: |
|
||||
|
Reference in New Issue
Block a user