Skip to content

Commit

Permalink
Merge pull request #222 from appuio/feat/configure-metrics-server
Browse files Browse the repository at this point in the history
Add config section `metricsServer`
  • Loading branch information
simu authored Dec 4, 2024
2 parents f0b386f + becc500 commit 5b95999
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 24 deletions.
1 change: 1 addition & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ parameters:
k8sPrometheusAdapter: {}
openshiftStateMetrics: {}
thanosQuerier: {}
metricsServer: {}
configsUserWorkload:
alertmanager:
enabled: true
Expand Down
27 changes: 3 additions & 24 deletions docs/modules/ROOT/pages/references/parameters.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -81,29 +81,7 @@ A parameter to enable https://docs.openshift.com/container-platform/latest/monit

[horizontal]
type:: dictionary
default::
+
[source,yaml]
----
prometheusK8s:
remoteWrite: []
_remoteWrite: {}
externalLabels:
cluster_id: ${cluster:name}
tenant_id: ${cluster:tenant}
retention: 8d
volumeClaimTemplate:
spec:
resources:
requests:
storage: 50Gi
alertmanagerMain:
volumeClaimTemplate:
spec:
resources:
requests:
storage: 2Gi
----
default:: https://github.com/appuio/component-openshift4-monitoring/blob/master/class/defaults.yml[See `class/defaults.yml`]

A dictionary holding the configurations for the https://docs.openshift.com/container-platform/latest/monitoring/configuring-the-monitoring-stack.html#configuring-the-monitoring-stack_configuring-the-monitoring-stack[monitoring components].

Expand All @@ -123,7 +101,8 @@ This table shows the monitoring components you can configure and the keys used t
|openshift-state-metrics|`openshiftStateMetrics`
|Grafana|`grafana`
|Telemeter Client|`telemeterClient`
|Prometheus Adapter|`k8sPrometheusAdapter`
|Prometheus Adapter (for OpenShift 4.15 and older)|`k8sPrometheusAdapter`
|Metrics Server (for OpenShift 4.16 and newer)|`metricsServer`
|Thanos Querier|`thanosQuerier`
|====

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ data:
"kubeStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"metricsServer":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
"openshiftStateMetrics":
"nodeSelector":
"node-role.kubernetes.io/infra": ""
Expand Down

0 comments on commit 5b95999

Please sign in to comment.