fix(prometheus): more thoroughly show services on SCALE

This commit is contained in:
kjeld Schouten-Lebbing
2021-11-22 20:33:27 +01:00
parent 2feb3d9ae7
commit 8325149a19
3 changed files with 184 additions and 5 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
type: application
version: 0.0.1
version: 0.0.2
annotations:
truecharts.org/catagories: |
- metrics
+180 -1
View File
@@ -38,7 +38,186 @@ questions:
schema:
type: boolean
default: false
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
schema:
type: dict
attrs:
- variable: main
label: "Main Service"
description: "The serving the Prometheus WebUI"
schema:
type: dict
attrs:
# Include{serviceSelector}
- variable: main
label: "Main Service Port Configuration"
schema:
type: dict
attrs:
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: enabled
label: "Enable the port"
schema:
type: boolean
default: true
- variable: protocol
label: "Port Type"
schema:
type: string
default: "HTTP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 9090
- variable: port
label: "Port"
description: "This port exposes the container port on the service"
schema:
type: int
default: 10086
required: true
- variable: promop
label: "Operator Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
schema:
type: dict
attrs:
# Include{serviceSelector}
- variable: promop
label: "Operator Service Port Configuration"
schema:
type: dict
attrs:
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: enabled
label: "Enable the port"
schema:
type: boolean
default: true
- variable: protocol
label: "Port Type"
schema:
type: string
default: "HTTP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 8080
- variable: port
label: "Port"
description: "This port exposes the container port on the service"
schema:
type: int
default: 10089
required: true
- variable: alertmanager
label: "Main Service"
description: "alertmanager service "
schema:
type: dict
attrs:
# Include{serviceSelector}
- variable: alertmanager
label: "alertmanager Service Port Configuration"
schema:
type: dict
attrs:
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: enabled
label: "Enable the port"
schema:
type: boolean
default: true
- variable: protocol
label: "Port Type"
schema:
type: string
default: "HTTP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 9093
- variable: port
label: "Port"
description: "This port exposes the container port on the service"
schema:
type: int
default: 10087
required: true
# Include{serviceExpert}
# Include{serviceList}
+3 -3
View File
@@ -24,7 +24,7 @@ service:
prometheus: '{{ template "kube-prometheus.prometheus.fullname" . }}'
ports:
main:
port: 9090
port: 10086
targetPort: 9090
protocol: HTTP
promop:
@@ -32,7 +32,7 @@ service:
ports:
promop:
enabled: true
port: 8080
port: 10089
targetPort: 8080
protocol: HTTP
alertmanager:
@@ -41,7 +41,7 @@ service:
alertmanager: '{{ template "kube-prometheus.alertmanager.fullname" . }}'
ports:
alertmanager:
port: 9093
port: 10087
targetPort: 9093
protocol: HTTP
thanos: