Compare commits
15 Commits
main
...
test_branc
Author | SHA1 | Date | |
---|---|---|---|
|
cb31d42f57 | ||
|
e6db102da8 | ||
|
1a33ef0d2b | ||
|
0e95fcc5cb | ||
|
f5b0477a2d | ||
|
2939c3cd63 | ||
|
76c8884a3c | ||
|
edc556b074 | ||
|
e5e13ac517 | ||
|
8b9ed3c9f7 | ||
|
844708681f | ||
|
ce216cd558 | ||
|
0418d16a1b | ||
|
8cff0e0e75 | ||
|
65995dce4f |
76
.github/workflows/helm-ci.yml
vendored
76
.github/workflows/helm-ci.yml
vendored
@ -20,48 +20,48 @@ jobs:
|
|||||||
- name: Lint Yaml
|
- name: Lint Yaml
|
||||||
run: make helm-lint
|
run: make helm-lint
|
||||||
|
|
||||||
# call-test:
|
call-test:
|
||||||
# name: Test Helm Chart
|
name: Test Helm Chart
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout
|
- name: Checkout
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# with:
|
with:
|
||||||
# fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# - name: Set up Helm
|
- name: Set up Helm
|
||||||
# uses: azure/setup-helm@v3
|
uses: azure/setup-helm@v3
|
||||||
# with:
|
with:
|
||||||
# version: v3.8.2
|
version: v3.14.0
|
||||||
|
|
||||||
# # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
|
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
|
||||||
# # yamllint (https://github.com/adrienverge/yamllint) which require Python
|
# yamllint (https://github.com/adrienverge/yamllint) which require Python
|
||||||
# - name: Set up Python
|
- name: Set up Python
|
||||||
# uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
# with:
|
with:
|
||||||
# python-version: 3.9
|
python-version: 3.9
|
||||||
|
|
||||||
# - name: Set up chart-testing
|
- name: Set up chart-testing
|
||||||
# uses: helm/chart-testing-action@v2
|
uses: helm/chart-testing-action@v2
|
||||||
|
|
||||||
# - name: Run chart-testing (list-changed)
|
- name: Run chart-testing (list-changed)
|
||||||
# id: list-changed
|
id: list-changed
|
||||||
# run: |
|
run: |
|
||||||
# changed=$(ct list-changed --config "${CT_CONFIGFILE}")
|
changed=$(ct list-changed --config "${CT_CONFIGFILE}")
|
||||||
# if [[ -n "$changed" ]]; then
|
if [[ -n "$changed" ]]; then
|
||||||
# echo "changed=true" >> $GITHUB_OUTPUT
|
echo "changed=true" >> $GITHUB_OUTPUT
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# - name: Run chart-testing (lint)
|
- name: Run chart-testing (lint)
|
||||||
# run: ct lint --config "${CT_CONFIGFILE}" --check-version-increment=false
|
run: ct lint --config "${CT_CONFIGFILE}" --check-version-increment=false
|
||||||
|
|
||||||
# - name: Create kind cluster
|
- name: Create kind cluster
|
||||||
# uses: helm/kind-action@v1
|
uses: helm/kind-action@v1
|
||||||
# if: steps.list-changed.outputs.changed == 'true'
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
# with:
|
with:
|
||||||
# config: "${{ github.workspace }}/.github/configs/cluster-config.yaml"
|
config: "${{ github.workspace }}/.github/configs/cluster-config.yaml"
|
||||||
|
|
||||||
# - name: Run chart-testing (install)
|
- name: Run chart-testing (install)
|
||||||
# run: |
|
run: |
|
||||||
# changed=$(ct list-changed --config "${CT_CONFIGFILE}")
|
changed=$(ct list-changed --config "${CT_CONFIGFILE}")
|
||||||
# ct install --config "${CT_CONFIGFILE}"
|
ct install --config "${CT_CONFIGFILE}"
|
||||||
|
116
charts/meta-monitoring/ci/local-values.yaml
Normal file
116
charts/meta-monitoring/ci/local-values.yaml
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
namespacesToMonitor:
|
||||||
|
- loki
|
||||||
|
|
||||||
|
local:
|
||||||
|
grafana:
|
||||||
|
enabled: true
|
||||||
|
logs:
|
||||||
|
enabled: true
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
traces:
|
||||||
|
enabled: true
|
||||||
|
minio:
|
||||||
|
enabled: true
|
||||||
|
createSecret: false
|
||||||
|
|
||||||
|
cloud:
|
||||||
|
logs:
|
||||||
|
enabled: false
|
||||||
|
secret: logs
|
||||||
|
metrics:
|
||||||
|
enabled: false
|
||||||
|
secret: metrics
|
||||||
|
traces:
|
||||||
|
enabled: false
|
||||||
|
secret: traces
|
||||||
|
|
||||||
|
grafana:
|
||||||
|
ingress:
|
||||||
|
hosts:
|
||||||
|
- host: monitoring.example.com
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
|
||||||
|
minio:
|
||||||
|
existingSecret: ""
|
||||||
|
rootUser: "abcdefghi"
|
||||||
|
rootPassword: "defghijkl"
|
||||||
|
|
||||||
|
loki:
|
||||||
|
deploymentMode: SingleBinary
|
||||||
|
singleBinary:
|
||||||
|
replicas: 1
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 3
|
||||||
|
memory: 4Gi
|
||||||
|
requests:
|
||||||
|
cpu: 2
|
||||||
|
memory: 2Gi
|
||||||
|
extraEnv:
|
||||||
|
# Keep a little bit lower than memory limits
|
||||||
|
- name: GOMEMLIMIT
|
||||||
|
value: 3750MiB
|
||||||
|
|
||||||
|
chunksCache:
|
||||||
|
# default is 500MB, with limited memory keep this smaller
|
||||||
|
writebackSizeLimit: 10MB
|
||||||
|
|
||||||
|
# Zero out replica counts of other deployment modes
|
||||||
|
backend:
|
||||||
|
replicas: 0
|
||||||
|
read:
|
||||||
|
replicas: 0
|
||||||
|
write:
|
||||||
|
replicas: 0
|
||||||
|
|
||||||
|
ingester:
|
||||||
|
replicas: 0
|
||||||
|
querier:
|
||||||
|
replicas: 0
|
||||||
|
queryFrontend:
|
||||||
|
replicas: 0
|
||||||
|
queryScheduler:
|
||||||
|
replicas: 0
|
||||||
|
distributor:
|
||||||
|
replicas: 0
|
||||||
|
compactor:
|
||||||
|
replicas: 0
|
||||||
|
indexGateway:
|
||||||
|
replicas: 0
|
||||||
|
bloomCompactor:
|
||||||
|
replicas: 0
|
||||||
|
bloomGateway:
|
||||||
|
replicas: 0
|
||||||
|
|
||||||
|
mimir-distributed:
|
||||||
|
minio:
|
||||||
|
enabled: false
|
||||||
|
global:
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "meta-minio"
|
||||||
|
|
||||||
|
tempo-distributed:
|
||||||
|
distributor:
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "meta-minio"
|
||||||
|
ingester:
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "meta-minio"
|
||||||
|
compactor:
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "meta-minio"
|
||||||
|
querier:
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "meta-minio"
|
||||||
|
queryFrontend:
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "meta-minio"
|
@ -6,6 +6,5 @@ chart-dirs:
|
|||||||
chart-repos:
|
chart-repos:
|
||||||
- grafana=https://grafana.github.io/helm-charts
|
- grafana=https://grafana.github.io/helm-charts
|
||||||
- minio=https://charts.min.io
|
- minio=https://charts.min.io
|
||||||
helm-extra-args: --timeout 1200s
|
|
||||||
check-version-increment: false
|
check-version-increment: false
|
||||||
validate-maintainers: false
|
validate-maintainers: false
|
||||||
|
13
charts/meta-monitoring/templates/minio/secret.yaml
Normal file
13
charts/meta-monitoring/templates/minio/secret.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{{- if .Values.local.minio.createSecret }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: minio
|
||||||
|
namespace: {{ $.Release.Namespace }}
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": pre-install
|
||||||
|
"helm.sh/hook-weight": "-5"
|
||||||
|
data:
|
||||||
|
rootUser: dmFsdWUtMg0KDQo=
|
||||||
|
rootPassword: dmFsdWUtMg0KDQo=
|
||||||
|
{{- end }}
|
@ -51,7 +51,11 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
|
{{- if .Values.local.minio.enabled }}
|
||||||
|
name: {{ $.Release.Namespace }}-minio
|
||||||
|
{{- else }}
|
||||||
name: minio
|
name: minio
|
||||||
|
{{- end }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
httpGet:
|
httpGet:
|
||||||
|
@ -41,3 +41,4 @@
|
|||||||
{{- if empty .Values.metrics.retain -}}
|
{{- if empty .Values.metrics.retain -}}
|
||||||
{{- fail "All metrics will be collected, please specify some in metrics.retain" -}}
|
{{- fail "All metrics will be collected, please specify some in metrics.retain" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
@ -26,7 +26,8 @@ local:
|
|||||||
traces:
|
traces:
|
||||||
enabled: false
|
enabled: false
|
||||||
minio:
|
minio:
|
||||||
enabled: false # This should be set to true if any of the previous is enabled
|
enabled: false # This should be set to true if any of the previous is enabled
|
||||||
|
createSecret: false # This is used for testing, do not use in production
|
||||||
grafana:
|
grafana:
|
||||||
version: 10.4.2
|
version: 10.4.2
|
||||||
# Gateway ingress configuration
|
# Gateway ingress configuration
|
||||||
@ -52,14 +53,14 @@ grafana:
|
|||||||
# port:
|
# port:
|
||||||
# number: TODO
|
# number: TODO
|
||||||
# -- TLS configuration for the gateway ingress. Hosts passed through the `tpl` function to allow templating
|
# -- TLS configuration for the gateway ingress. Hosts passed through the `tpl` function to allow templating
|
||||||
#tls:
|
# tls:
|
||||||
# - secretName: grafana-tls
|
# - secretName: grafana-tls
|
||||||
# hosts:
|
# hosts:
|
||||||
# - monitoring.example.com
|
# - monitoring.example.com
|
||||||
logs:
|
logs:
|
||||||
# Adding regexes here will add a stage.replace block for logs. For more information see
|
# Adding regexes here will add a stage.replace block for logs. For more information see
|
||||||
# https://grafana.com/docs/agent/latest/flow/reference/components/loki.process/#stagereplace-block
|
# https://grafana.com/docs/agent/latest/flow/reference/components/loki.process/#stagereplace-block
|
||||||
piiRegexes: null # This example replaces the word after password with *****
|
piiRegexes: null # This example replaces the word after password with *****
|
||||||
# - expression: "password (\\\\S+)"
|
# - expression: "password (\\\\S+)"
|
||||||
# source: "" # Empty uses the log message
|
# source: "" # Empty uses the log message
|
||||||
# replace: "*****""
|
# replace: "*****""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user