Skip to content

Commit

Permalink
Initial Kube Prometheus Stack for on-prem
Browse files Browse the repository at this point in the history
  • Loading branch information
danmanners committed Sep 10, 2023
1 parent 3499061 commit e727645
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 31 deletions.
12 changes: 10 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"extends": [
"config:base"
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"regexManagers": [
{
"fileMatch": ["(^|/)\\.github/workflows/.+\\.ya?ml"],
"matchStrings": [
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\n.*(?<currentValue>v[0-9.]+)"
],
"datasourceTemplate": "github-releases"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@ commonAnnotations:
argocd.argoproj.io/sync-options: Replace=true

resources:
# renovate: datasource=github-releases depName=prometheus-operator/prometheus-operator
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.63.0/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagerconfigs.yaml
# renovate: datasource=github-releases depName=prometheus-operator/prometheus-operator
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.63.0/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml
# renovate: datasource=github-releases depName=prometheus-operator/prometheus-operator
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.63.0/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml
# renovate: datasource=github-releases depName=prometheus-operator/prometheus-operator
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.63.0/example/prometheus-operator-crd/monitoring.coreos.com_probes.yaml
# renovate: datasource=github-releases depName=prometheus-operator/prometheus-operator
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.63.0/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
# renovate: datasource=github-releases depName=prometheus-operator/prometheus-operator
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.63.0/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml
# renovate: datasource=github-releases depName=prometheus-operator/prometheus-operator
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.63.0/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
# renovate: datasource=github-releases depName=prometheus-operator/prometheus-operator
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.63.0/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ grafana:
annotations:
cert-manager.io/cluster-issuer: acme-prod
hosts:
- grafana.cloud.danmanners.com
- grafana.homelab.danmanners.com
tls:
- secretName: grafana-cert
hosts:
- grafana.cloud.danmanners.com
- grafana.homelab.danmanners.com


kubelet:
Expand All @@ -39,29 +39,6 @@ kubelet:
- node
targetLabel: instance

# kubeControllerManager:
# enabled: true
# endpoints:
# - 10.200.0.51
# - 10.200.0.52
# - 10.200.0.53
# kubeScheduler:
# enabled: true
# endpoints:
# - 10.200.0.51
# - 10.200.0.52
# - 10.200.0.53
# kubeEtcd:
# enabled: true
# endpoints:
# - 10.200.0.51
# - 10.200.0.52
# - 10.200.0.53
# service:
# enabled: true
# port: 2381
# targetPort: 2381

nodeExporter:
serviceMonitor:
relabelings:
Expand All @@ -78,17 +55,17 @@ prometheus:
serviceMonitorSelectorNilUsesHelmValues: false
podMonitorSelectorNilUsesHelmValues: false
probeSelectorNilUsesHelmValues: false
retention: 7d
retentionSize: "9GB"
retention: 10d
retentionSize: "10GB"
walCompression: true
resources:
requests:
memory: 400Mi
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: "gp3-xfs"
storageClassName: "ceph-rbd"
resources:
requests:
storage: 20Gi
storage: 30Gi

0 comments on commit e727645

Please sign in to comment.