1
0
Fork 0

suspend metrics forwarding due to cardinality concerns

This commit is contained in:
Massaki Archambault 2022-05-26 13:14:50 -04:00
parent 50c584a468
commit 56ffc03025
2 changed files with 33 additions and 26 deletions

View File

@ -4,8 +4,8 @@ metadata:
name: prometheus name: prometheus
spec: spec:
serviceAccountName: prometheus serviceAccountName: prometheus
retention: 1d retention: 30d
retentionSize: 5GB retentionSize: 9GB
ruleSelector: ruleSelector:
matchLabels: matchLabels:
monitor: prometheus monitor: prometheus
@ -18,15 +18,15 @@ spec:
probeSelector: probeSelector:
matchLabels: matchLabels:
monitor: prometheus monitor: prometheus
remoteWrite: # remoteWrite:
- url: changeme # - url: changeme
basicAuth: # basicAuth:
username: # username:
name: grafana-cloud-credentials # name: grafana-cloud-credentials
key: username # key: username
password: # password:
name: grafana-cloud-credentials # name: grafana-cloud-credentials
key: password # key: password
securityContext: securityContext:
runAsGroup: 65534 runAsGroup: 65534
runAsNonRoot: true runAsNonRoot: true
@ -34,8 +34,15 @@ spec:
fsGroup: 65534 fsGroup: 65534
resources: resources:
requests: requests:
cpu: 500m cpu: 1000m
memory: 500Mi memory: 1Gi
limits: limits:
cpu: 1000m cpu: 1000m
memory: 500Mi memory: 1Gi
storage:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi

View File

@ -62,13 +62,13 @@ secretGenerator:
behavior: replace behavior: replace
literals: literals:
- password=${ssm:/k3s/prod/nextcloud/redis/password} - password=${ssm:/k3s/prod/nextcloud/redis/password}
- name: grafana-cloud-credentials # - name: grafana-cloud-credentials
type: Opaque # type: Opaque
namespace: monitoring # namespace: monitoring
behavior: replace # behavior: replace
literals: # literals:
- username=${ssm:/k3s/prod/monitoring/grafana-cloud/username} # - username=${ssm:/k3s/prod/monitoring/grafana-cloud/username}
- password=${ssm:/k3s/prod/monitoring/grafana-cloud/password} # - password=${ssm:/k3s/prod/monitoring/grafana-cloud/password}
# allow "kubectl apply -l managed-by=kustomize --prune ..." # allow "kubectl apply -l managed-by=kustomize --prune ..."
commonLabels: commonLabels:
@ -84,11 +84,11 @@ patchesJson6902:
kind: Deployment kind: Deployment
name: nextcloud name: nextcloud
path: patches/nextcloud-deployment-patch.yaml path: patches/nextcloud-deployment-patch.yaml
- target: # - target:
version: v1 # version: v1
kind: Prometheus # kind: Prometheus
name: prometheus # name: prometheus
path: patches/prometheus-patch.yaml # path: patches/prometheus-patch.yaml
# patchesStrategicMerge: # patchesStrategicMerge:
# - patches/blackbox-exporter-probe-patch.yaml # - patches/blackbox-exporter-probe-patch.yaml