Skip to content

Commit

Permalink
config fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Weifeng Wang <[email protected]>
  • Loading branch information
qclaogui committed Mar 9, 2024
1 parent 3b29d4a commit fd44271
Show file tree
Hide file tree
Showing 15 changed files with 94 additions and 98 deletions.
15 changes: 7 additions & 8 deletions kubernetes/microservices-mode/logs/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,21 @@ secretGenerator:
literals:
- LOKI_S3_SECRET_ACCESS_KEY=VD538OYxSEiGD4I9mmFfqFMCGq1vIiGm


configMapGenerator:
- name: grafana-datasources
- name: agent-config
namespace: monitoring-system
options:
labels:
grafana_datasource: "1"
disableNameSuffixHash: true
files:
- datasources.yaml=configs/grafana-datasources-loki.yaml
- configs/config.river

- name: agent-config
- name: grafana-datasources
namespace: monitoring-system
options:
disableNameSuffixHash: true
labels:
grafana_datasource: "1"
files:
- configs/config.river
- datasources.yaml=configs/grafana-datasources-loki.yaml

- name: loki-distributed
namespace: logging-system
Expand Down
8 changes: 4 additions & 4 deletions kubernetes/microservices-mode/metrics/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ configMapGenerator:
files:
- datasources.yaml=configs/grafana-datasources-mimir.yaml

- name: mimir-distributed-runtime
- name: mimir-distributed-config
namespace: monitoring-system
behavior: replace
files:
- configs/runtime.yaml
- name: mimir-distributed-config
- mimir.yaml=configs/mimir-distributed.yaml
- name: mimir-distributed-runtime
namespace: monitoring-system
behavior: replace
files:
- mimir.yaml=configs/mimir-distributed.yaml
- configs/runtime.yaml
- name: mimir-distributed-alertmanager-fallback-config
namespace: monitoring-system
behavior: replace
Expand Down
16 changes: 7 additions & 9 deletions kubernetes/microservices-mode/profiles/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,26 @@ resources:
- pyroscope

secretGenerator:
# https://grafana.com/docs/pyroscope/latest/configure-server/reference-configuration-parameters/#s3_storage_backend
- name: pyroscope-env
namespace: profiles-system
literals:
- PYROSCOPE_STORAGE_S3_SECRET_ACCESS_KEY=VD538OYxSEiGD4I9mmFfqFMCGq1vIiGm


configMapGenerator:
- name: grafana-datasources
- name: agent-config
namespace: monitoring-system
options:
labels:
grafana_datasource: "1"
disableNameSuffixHash: true
files:
- datasources.yaml=configs/grafana-datasources-pyroscope.yaml
- configs/config.river

- name: agent-config
- name: grafana-datasources
namespace: monitoring-system
options:
disableNameSuffixHash: true
labels:
grafana_datasource: "1"
files:
- configs/config.river
- datasources.yaml=configs/grafana-datasources-pyroscope.yaml

- name: pyroscope-config
namespace: profiles-system
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/microservices-mode/traces/configs/mimir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ compactor:
tenant_cleanup_delay: 1m

memberlist:
join_members: [ gossip-ring-headless:7946 ]
join_members: [ mimir-memberlist:7946 ]

ingester:
ring:
Expand Down
6 changes: 3 additions & 3 deletions kubernetes/microservices-mode/traces/k8s-all-in-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10372,7 +10372,7 @@ data:
tenant_cleanup_delay: 1m

memberlist:
join_members: [ gossip-ring-headless:7946 ]
join_members: [ mimir-memberlist:7946 ]

ingester:
ring:
Expand Down Expand Up @@ -10403,7 +10403,7 @@ data:
native_histograms_ingestion_enabled: true
kind: ConfigMap
metadata:
name: mimir-config-k2d48ck5kh
name: mimir-config-t97g8cg2gc
namespace: monitoring-system
---
apiVersion: v1
Expand Down Expand Up @@ -44055,7 +44055,7 @@ spec:
terminationGracePeriodSeconds: 60
volumes:
- configMap:
name: mimir-config-k2d48ck5kh
name: mimir-config-t97g8cg2gc
name: mimir-config
- configMap:
name: runtime-config-88gg5gk88d
Expand Down
15 changes: 7 additions & 8 deletions kubernetes/microservices-mode/traces/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,20 @@ secretGenerator:
- MIMIR_S3_SECRET_ACCESS_KEY=VD538OYxSEiGD4I9mmFfqFMCGq1vIiGm

configMapGenerator:
- name: grafana-datasources
namespace: monitoring-system
options:
labels:
grafana_datasource: "1"
files:
- datasources.yaml=configs/grafana-datasources-tempo.yaml

- name: agent-config
namespace: monitoring-system
options:
disableNameSuffixHash: true
files:
- configs/config.river

- name: grafana-datasources
namespace: monitoring-system
options:
labels:
grafana_datasource: "1"
files:
- datasources.yaml=configs/grafana-datasources-tempo.yaml

- name: tempo-distributed-config
namespace: tracing-system
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/monolithic-mode/all-in-one/configs/mimir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ compactor:
tenant_cleanup_delay: 1m

memberlist:
join_members: [ gossip-ring-headless:7946 ]
join_members: [ mimir-memberlist:7946 ]

ingester:
ring:
Expand Down
28 changes: 14 additions & 14 deletions kubernetes/monolithic-mode/all-in-one/k8s-all-in-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4593,7 +4593,7 @@ kind: ConfigMap
metadata:
labels:
grafana_datasource: "1"
name: grafana-datasources
name: grafana-datasources-757dh59h8m
namespace: monitoring-system
---
apiVersion: v1
Expand Down Expand Up @@ -29670,7 +29670,7 @@ data:
tenant_cleanup_delay: 1m

memberlist:
join_members: [ gossip-ring-headless:7946 ]
join_members: [ mimir-memberlist:7946 ]

ingester:
ring:
Expand Down Expand Up @@ -29701,7 +29701,7 @@ data:
native_histograms_ingestion_enabled: true
kind: ConfigMap
metadata:
name: mimir-config
name: mimir-config-t97g8cg2gc
namespace: monitoring-system
---
apiVersion: v1
Expand Down Expand Up @@ -62738,7 +62738,7 @@ data:
ruler_max_rule_groups_per_tenant: 100
kind: ConfigMap
metadata:
name: runtime-config
name: runtime-config-88gg5gk88d
namespace: monitoring-system
---
apiVersion: v1
Expand Down Expand Up @@ -62892,7 +62892,7 @@ data:
LOKI_S3_SECRET_ACCESS_KEY: VkQ1MzhPWXhTRWlHRDRJOW1tRmZxRk1DR3ExdklpR20=
kind: Secret
metadata:
name: loki-env
name: loki-env-58m52b99kc
namespace: logging-system
type: Opaque
---
Expand All @@ -62901,7 +62901,7 @@ data:
MIMIR_S3_SECRET_ACCESS_KEY: VkQ1MzhPWXhTRWlHRDRJOW1tRmZxRk1DR3ExdklpR20=
kind: Secret
metadata:
name: mimir-env
name: mimir-env-92ddctt858
namespace: monitoring-system
type: Opaque
---
Expand All @@ -62910,7 +62910,7 @@ data:
PYROSCOPE_STORAGE_S3_SECRET_ACCESS_KEY: VkQ1MzhPWXhTRWlHRDRJOW1tRmZxRk1DR3ExdklpR20=
kind: Secret
metadata:
name: pyroscope-env
name: pyroscope-env-h982fgc652
namespace: profiles-system
type: Opaque
---
Expand All @@ -62924,7 +62924,7 @@ data:
TEMPO_S3_SECRET_KEY: VkQ1MzhPWXhTRWlHRDRJOW1tRmZxRk1DR3ExdklpR20=
kind: Secret
metadata:
name: tempo-env
name: tempo-env-gk54k88t7g
namespace: tracing-system
type: Opaque
---
Expand Down Expand Up @@ -63240,7 +63240,7 @@ spec:
fieldPath: status.podIP
envFrom:
- secretRef:
name: mimir-env
name: mimir-env-92ddctt858
image: docker.io/grafana/mimir:2.11.0
imagePullPolicy: IfNotPresent
name: mimir
Expand Down Expand Up @@ -63270,10 +63270,10 @@ spec:
terminationGracePeriodSeconds: 60
volumes:
- configMap:
name: mimir-config
name: mimir-config-t97g8cg2gc
name: mimir-config
- configMap:
name: runtime-config
name: runtime-config-88gg5gk88d
name: runtime-config
---
apiVersion: apps/v1
Expand Down Expand Up @@ -63338,7 +63338,7 @@ spec:
- -config.expand-env=true
envFrom:
- secretRef:
name: loki-env
name: loki-env-58m52b99kc
image: docker.io/grafana/loki:2.9.5
imagePullPolicy: IfNotPresent
name: loki
Expand Down Expand Up @@ -63460,7 +63460,7 @@ spec:
- -log.level=debug
envFrom:
- secretRef:
name: pyroscope-env
name: pyroscope-env-h982fgc652
image: grafana/pyroscope:1.4.0
imagePullPolicy: IfNotPresent
name: pyroscope
Expand Down Expand Up @@ -63545,7 +63545,7 @@ spec:
- -config.expand-env=true
envFrom:
- secretRef:
name: tempo-env
name: tempo-env-gk54k88t7g
image: grafana/tempo:2.4.0
imagePullPolicy: IfNotPresent
name: tempo
Expand Down
35 changes: 18 additions & 17 deletions kubernetes/monolithic-mode/all-in-one/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ resources:
- ../../../monitoring-mixins/mimir-mixin/deploy
# - ../../../monitoring-mixins/tempo-mixin/deploy

generatorOptions:
disableNameSuffixHash: true

secretGenerator:
- name: loki-env
namespace: logging-system
Expand Down Expand Up @@ -49,27 +46,34 @@ secretGenerator:
- PYROSCOPE_STORAGE_S3_SECRET_ACCESS_KEY=VD538OYxSEiGD4I9mmFfqFMCGq1vIiGm

configMapGenerator:
- name: grafana-datasources
- name: agent-config
namespace: monitoring-system
options:
labels:
grafana_datasource: "1"
disableNameSuffixHash: true
files:
- datasources.yaml=configs/grafana-datasources-all-in-one.yaml
- configs/config.river

- name: agent-config
- name: grafana-datasources
namespace: monitoring-system
options:
disableNameSuffixHash: true
labels:
grafana_datasource: "1"
files:
- configs/config.river
- datasources.yaml=configs/grafana-datasources-all-in-one.yaml

- name: loki-config
namespace: logging-system
behavior: replace
files:
- config.yaml=configs/loki.yaml

- name: tempo
namespace: tracing-system
behavior: replace
files:
- configs/tempo.yaml
- overrides.yaml=configs/tempo-overrides.yaml

- name: mimir-config
namespace: monitoring-system
files:
Expand All @@ -85,22 +89,19 @@ configMapGenerator:
files:
- config.yaml=configs/pyroscope.yaml

- name: tempo
namespace: tracing-system
behavior: replace
files:
- configs/tempo.yaml
- overrides.yaml=configs/tempo-overrides.yaml

# replace nginx-templates and nginx-env configMap
- name: nginx-templates
namespace: gateway
options:
disableNameSuffixHash: true
files:
- configs/gateway_loki.conf.template
- configs/gateway_mimir.conf.template
- configs/gateway_pyroscope.conf.template
- configs/gateway_tempo.conf.template
- name: nginx-env
namespace: gateway
options:
disableNameSuffixHash: true
envs:
- configs/nginx.env
14 changes: 7 additions & 7 deletions kubernetes/monolithic-mode/logs/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ secretGenerator:
- LOKI_S3_SECRET_ACCESS_KEY=VD538OYxSEiGD4I9mmFfqFMCGq1vIiGm

configMapGenerator:
- name: grafana-datasources
- name: agent-config
namespace: monitoring-system
options:
labels:
grafana_datasource: "1"
disableNameSuffixHash: true
files:
- datasources.yaml=configs/grafana-datasources-loki.yaml
- configs/config.river

- name: agent-config
- name: grafana-datasources
namespace: monitoring-system
options:
disableNameSuffixHash: true
labels:
grafana_datasource: "1"
files:
- configs/config.river
- datasources.yaml=configs/grafana-datasources-loki.yaml

- name: loki-config
namespace: logging-system
Expand Down
Loading

0 comments on commit fd44271

Please sign in to comment.