feat(prometheus): add more config options to GUI (#1398)
* feat(prometheus): add more config options to GUI * move to core
This commit is contained in:
@@ -20,7 +20,7 @@ sources:
|
|||||||
- https://github.com/prometheus-community/helm-charts
|
- https://github.com/prometheus-community/helm-charts
|
||||||
- https://github.com/prometheus-operator/kube-prometheus
|
- https://github.com/prometheus-operator/kube-prometheus
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.10
|
version: 1.0.0
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- metrics
|
- metrics
|
||||||
@@ -24,6 +24,98 @@ questions:
|
|||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
|
||||||
|
- variable: operator
|
||||||
|
group: "App Configuration"
|
||||||
|
label: "Operator Settings"
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: enabled
|
||||||
|
label: "Enable"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
show_subquestions_if: true
|
||||||
|
subquestions:
|
||||||
|
- variable: logLevel
|
||||||
|
label: "Log Level"
|
||||||
|
description: "Log level for Operator"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "info"
|
||||||
|
|
||||||
|
|
||||||
|
- variable: prometheus
|
||||||
|
group: "App Configuration"
|
||||||
|
label: "Prometheus Settings"
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: enabled
|
||||||
|
label: "Enable"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
show_subquestions_if: true
|
||||||
|
subquestions:
|
||||||
|
- variable: logLevel
|
||||||
|
label: "Log Level"
|
||||||
|
description: "Log level for Prometheus"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "info"
|
||||||
|
- variable: retention
|
||||||
|
label: "Retention"
|
||||||
|
description: "Metrics retention days"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "31d"
|
||||||
|
- variable: retentionSize
|
||||||
|
label: "Max Retention Size"
|
||||||
|
description: "Maximum size of metrics"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: disableCompaction
|
||||||
|
label: "Disable Compaction"
|
||||||
|
description: "Disable the compaction of the Prometheus TSDB"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
- variable: walCompression
|
||||||
|
label: "WAL Compression"
|
||||||
|
description: "Enable compression of the write-ahead log using Snappy"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
|
|
||||||
|
- variable: alertmanager
|
||||||
|
group: "App Configuration"
|
||||||
|
label: "Alertmanager Settings"
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: enabled
|
||||||
|
label: "Enable"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
show_subquestions_if: true
|
||||||
|
subquestions:
|
||||||
|
- variable: logLevel
|
||||||
|
label: "Log Level"
|
||||||
|
description: "Log level for Alertmanager"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "info"
|
||||||
|
- variable: retention
|
||||||
|
label: "Retention"
|
||||||
|
description: "Metrics retention days"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "240h"
|
||||||
|
|
||||||
|
|
||||||
- variable: service
|
- variable: service
|
||||||
group: "Networking and Services"
|
group: "Networking and Services"
|
||||||
@@ -528,7 +528,7 @@ prometheus:
|
|||||||
probeNamespaceSelector: {}
|
probeNamespaceSelector: {}
|
||||||
## @param prometheus.retention Metrics retention days
|
## @param prometheus.retention Metrics retention days
|
||||||
##
|
##
|
||||||
retention: 10d
|
retention: 31d
|
||||||
## @param prometheus.retentionSize Maximum size of metrics
|
## @param prometheus.retentionSize Maximum size of metrics
|
||||||
##
|
##
|
||||||
retentionSize: ""
|
retentionSize: ""
|
||||||
@@ -1062,7 +1062,7 @@ alertmanager:
|
|||||||
configMaps: []
|
configMaps: []
|
||||||
## @param alertmanager.retention Metrics retention days
|
## @param alertmanager.retention Metrics retention days
|
||||||
##
|
##
|
||||||
retention: 120h
|
retention: 240h
|
||||||
## @param alertmanager.storageSpec Alertmanager StorageSpec for persistent data
|
## @param alertmanager.storageSpec Alertmanager StorageSpec for persistent data
|
||||||
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/user-guides/storage.md
|
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/user-guides/storage.md
|
||||||
##
|
##
|
||||||
Reference in New Issue
Block a user