diff --git a/cluster/apps/default/cdn/helm-release.yaml b/cluster/apps/default/cdn/helm-release.yaml index d782b6d..e63863a 100644 --- a/cluster/apps/default/cdn/helm-release.yaml +++ b/cluster/apps/default/cdn/helm-release.yaml @@ -53,7 +53,7 @@ spec: data: enabled: true type: hostPath - hostPath: /mnt/MainPool/Kubernetes/cdn + hostPath: /mnt/MainPool/Kubernetes/cdn/data readOnly: true mountPath: /data config: diff --git a/cluster/apps/download/radarr/dashboard.yaml b/cluster/apps/download/radarr/dashboard.yaml deleted file mode 100644 index aa785b3..0000000 --- a/cluster/apps/download/radarr/dashboard.yaml +++ /dev/null @@ -1,523 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: radarr-grafana-dashboard - namespace: monitoring - labels: - grafana_dashboard: "1" -data: - radarr-metrics.json: |- - { - "__inputs": [ - { - "name": "DS_VICTORIA", - "label": "Victoria", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__elements": {}, - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "9.4.7" - }, - { - "type": "panel", - "id": "piechart", - "name": "Pie chart", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "description": "This is a dashboard for Radarr v3 (exportarr does not work with Radarr v2). You will need to install exportarr (https://github.com/onedr0p/exportarr) in order to use this dashboard.\r\n\r\nBased on: https://grafana.com/grafana/dashboards/12530", - "editable": true, - "fiscalYearStartMonth": 0, - "gnetId": 12896, - "graphTooltip": 0, - "id": null, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "victoria-metrics-server" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 6, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "victoria-metrics-server" - }, - "refId": "A" - } - ], - "title": "Movies Information", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 4, - "x": 0, - "y": 1 - }, - "id": 16, - "interval": "", - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "expr": "radrr_queue_total OR on() vector(0)", - "format": "time_series", - "instant": true, - "interval": "", - "legendFormat": "Queued", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "expr": "radarr_history_total", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Completed", - "refId": "B" - } - ], - "title": "Downloads", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 7, - "x": 4, - "y": 1 - }, - "id": 8, - "interval": "", - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "radarr_movie_missing_total", - "instant": true, - "interval": "", - "legendFormat": "Missing", - "range": false, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "radarr_movie_monitored_total", - "instant": true, - "interval": "", - "legendFormat": "Monitored", - "range": false, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "radarr_movie_total", - "instant": true, - "interval": "", - "legendFormat": "Total", - "range": false, - "refId": "B" - } - ], - "title": "Movies", - "type": "stat" - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "victoria-metrics-server" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 6 - }, - "id": 12, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "victoria-metrics-server" - }, - "refId": "A" - } - ], - "title": "Storage", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 0, - "y": 7 - }, - "id": 10, - "interval": "", - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "radarr_movie_filesize_total", - "instant": true, - "interval": "", - "legendFormat": "", - "range": false, - "refId": "A" - } - ], - "title": "Storage Used", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 3, - "y": 7 - }, - "id": 17, - "links": [], - "maxDataPoints": 1, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sort_desc(sum(radarr_movie_quality_total) by (quality))", - "instant": true, - "interval": "", - "legendFormat": "{{ quality }}", - "range": false, - "refId": "A" - } - ], - "title": "Episode quality", - "type": "piechart" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 3, - "x": 0, - "y": 12 - }, - "id": 13, - "interval": "", - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "radarr_rootfolder_freespace_bytes", - "instant": true, - "interval": "", - "legendFormat": "{{ path }}", - "range": false, - "refId": "A" - } - ], - "title": "Storage Available", - "type": "stat" - } - ], - "refresh": "5s", - "revision": 1, - "schemaVersion": 38, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ] - }, - "timezone": "", - "title": "Radarr", - "uid": "F2vfZUNGz", - "version": 1, - "weekStart": "" - } \ No newline at end of file diff --git a/cluster/apps/download/radarr/kustomization.yaml b/cluster/apps/download/radarr/kustomization.yaml index 57a2b3e..3f72535 100644 --- a/cluster/apps/download/radarr/kustomization.yaml +++ b/cluster/apps/download/radarr/kustomization.yaml @@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./helm-release.yaml -- ./radarr-exportarr-metrics.yaml -- ./dashboard.yaml \ No newline at end of file +- ./radarr-exportarr-metrics.yaml \ No newline at end of file diff --git a/cluster/apps/download/sonarr/dashboard.yaml b/cluster/apps/download/sonarr/dashboard.yaml deleted file mode 100644 index f539118..0000000 --- a/cluster/apps/download/sonarr/dashboard.yaml +++ /dev/null @@ -1,678 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: sonarr-grafana-dashboard - namespace: monitoring - labels: - grafana_dashboard: "1" -data: - sonarr-metrics.json: |- - { - "__inputs": [ - { - "name": "DS_VICTORIA", - "label": "Victoria", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__elements": {}, - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "9.4.7" - }, - { - "type": "panel", - "id": "piechart", - "name": "Pie chart", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "description": "This is a dashboard for Sonarr v3 (exportarr does not work with Sonarr v2). You will need to install exportarr (https://github.com/onedr0p/exportarr) in order to use this dashboard.", - "editable": true, - "fiscalYearStartMonth": 0, - "gnetId": 12530, - "graphTooltip": 0, - "id": null, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "victoria-metrics-server" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 6, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "victoria-metrics-server" - }, - "refId": "A" - } - ], - "title": "Show Information", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 3, - "x": 0, - "y": 1 - }, - "id": 16, - "interval": "", - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "expr": "sonarr_queue_total OR on() vector(0)", - "instant": true, - "interval": "", - "legendFormat": "Queued", - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "expr": "sonarr_history_total", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "Completed", - "refId": "B" - } - ], - "title": "Downloads", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 3, - "x": 3, - "y": 1 - }, - "id": 8, - "interval": "", - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sonarr_series_monitored_total", - "instant": true, - "interval": "", - "legendFormat": "Monitored", - "range": false, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sonarr_series_total", - "instant": true, - "interval": "", - "legendFormat": "Total", - "range": false, - "refId": "B" - } - ], - "title": "Series", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 3, - "x": 6, - "y": 1 - }, - "id": 15, - "interval": "", - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sonarr_season_monitored_total", - "instant": true, - "interval": "", - "legendFormat": "Monitored", - "range": false, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sonarr_season_total", - "instant": true, - "interval": "", - "legendFormat": "Total", - "range": false, - "refId": "B" - } - ], - "title": "Seasons", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 3, - "x": 9, - "y": 1 - }, - "id": 14, - "interval": "", - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sonarr_episode_downloaded_total", - "instant": true, - "interval": "", - "legendFormat": "Downloaded", - "range": false, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sonarr_episode_total", - "instant": true, - "interval": "", - "legendFormat": "Total", - "range": false, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sonarr_episode_missing_total", - "instant": true, - "interval": "", - "legendFormat": "Missing", - "range": false, - "refId": "C" - } - ], - "title": "Episodes", - "type": "stat" - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "victoria-metrics-server" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 8 - }, - "id": 12, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "victoria-metrics-server" - }, - "refId": "A" - } - ], - "title": "Storage", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 9 - }, - "id": 10, - "interval": "", - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sonarr_series_filesize_bytes", - "instant": true, - "interval": "", - "legendFormat": "", - "range": false, - "refId": "A" - } - ], - "title": "Storage Used", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 9, - "x": 3, - "y": 9 - }, - "id": 17, - "links": [], - "maxDataPoints": 1, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sort_desc(sum(sonarr_episode_quality_total) by (quality))", - "instant": true, - "interval": "", - "legendFormat": "{{ quality }}", - "range": false, - "refId": "A" - } - ], - "title": "Episode quality", - "type": "piechart" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgb(255, 255, 255)", - "value": null - } - ] - }, - "unit": "decbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 3, - "x": 0, - "y": 13 - }, - "id": 13, - "interval": "", - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.4.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIA}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sonarr_rootfolder_freespace_bytes", - "format": "time_series", - "instant": true, - "interval": "", - "legendFormat": "{{ path }}", - "range": false, - "refId": "A" - } - ], - "title": "Storage Available", - "transformations": [], - "type": "stat" - } - ], - "refresh": "5s", - "revision": 1, - "schemaVersion": 38, - "style": "dark", - "tags": [], - "templating": { - "list": [] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ] - }, - "timezone": "", - "title": "Sonarr", - "uid": "vGjT_QWMk", - "version": 4, - "weekStart": "" - } \ No newline at end of file diff --git a/cluster/apps/download/sonarr/kustomization.yaml b/cluster/apps/download/sonarr/kustomization.yaml index 6e8a643..c57d177 100644 --- a/cluster/apps/download/sonarr/kustomization.yaml +++ b/cluster/apps/download/sonarr/kustomization.yaml @@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./helm-release.yaml -- ./sonarr-exportarr-metrics.yaml -- ./dashboard.yaml \ No newline at end of file +- ./sonarr-exportarr-metrics.yaml \ No newline at end of file