forked from RemoteSync/grafana-meta-monitoring-chart
Compare commits
7 Commits
combine_ci
...
fix_minio_
Author | SHA1 | Date | |
---|---|---|---|
|
cd42da2197 | ||
|
56cab04af8 | ||
|
ab42a96949 | ||
|
386ff25fca | ||
|
c6889131a7 | ||
|
2739bae0c0 | ||
|
cea8076b75 |
118
.github/workflows/check-for-dependency-updates.yaml
vendored
118
.github/workflows/check-for-dependency-updates.yaml
vendored
@@ -16,7 +16,7 @@ env:
|
|||||||
UPDATECLI_GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
UPDATECLI_GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
updateVersions:
|
updateLoki:
|
||||||
name: Update the Loki subchart
|
name: Update the Loki subchart
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Install Updatecli
|
- name: Install Updatecli
|
||||||
uses: updatecli/updatecli-action@v2
|
uses: updatecli/updatecli-action@v2
|
||||||
|
|
||||||
- name: Run Updatecli for Loki
|
- name: Run Updatecli
|
||||||
id: update-loki
|
id: update-loki
|
||||||
run: |
|
run: |
|
||||||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/loki.yaml
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/loki.yaml
|
||||||
@@ -34,7 +34,31 @@ jobs:
|
|||||||
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run Updatecli for Alloy
|
- name: Create pull request
|
||||||
|
if: steps.update-loki.outputs.changed == 'true'
|
||||||
|
uses: peter-evans/create-pull-request@v5
|
||||||
|
with:
|
||||||
|
title: "[dependency] Update the Loki subchart"
|
||||||
|
body: "Updates the Loki subchart"
|
||||||
|
base: main
|
||||||
|
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
||||||
|
committer: "GitHub <noreply@github.com>"
|
||||||
|
commit-message: Update loki
|
||||||
|
labels: dependencies
|
||||||
|
branch: chore/update-loki
|
||||||
|
delete-branch: true
|
||||||
|
|
||||||
|
updateGrafanaAlloy:
|
||||||
|
name: Update the Grafana Alloy subchart
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Updatecli
|
||||||
|
uses: updatecli/updatecli-action@v2
|
||||||
|
|
||||||
|
- name: Run Updatecli
|
||||||
id: update-grafana-alloy
|
id: update-grafana-alloy
|
||||||
run: |
|
run: |
|
||||||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/alloy.yaml
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/alloy.yaml
|
||||||
@@ -42,7 +66,31 @@ jobs:
|
|||||||
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run Updatecli for Mimir
|
- name: Create pull request
|
||||||
|
if: steps.update-grafana-alloy.outputs.changed == 'true'
|
||||||
|
uses: peter-evans/create-pull-request@v5
|
||||||
|
with:
|
||||||
|
title: "[dependency] Update the Grafana Alloy subchart"
|
||||||
|
body: "Updates the Grafana Alloy subchart"
|
||||||
|
base: main
|
||||||
|
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
||||||
|
committer: "GitHub <noreply@github.com>"
|
||||||
|
commit-message: Update Grafana Alloy
|
||||||
|
labels: dependencies
|
||||||
|
branch: chore/update-grafana-alloy
|
||||||
|
delete-branch: true
|
||||||
|
|
||||||
|
updateMimirDistributed:
|
||||||
|
name: Update the Mimir Distributed subchart
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Updatecli
|
||||||
|
uses: updatecli/updatecli-action@v2
|
||||||
|
|
||||||
|
- name: Run Updatecli
|
||||||
id: update-mimir-distributed
|
id: update-mimir-distributed
|
||||||
run: |
|
run: |
|
||||||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/mimir-distributed.yaml
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/mimir-distributed.yaml
|
||||||
@@ -50,7 +98,31 @@ jobs:
|
|||||||
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run Updatecli for Tempo
|
- name: Create pull request
|
||||||
|
if: steps.update-mimir-distributed.outputs.changed == 'true'
|
||||||
|
uses: peter-evans/create-pull-request@v5
|
||||||
|
with:
|
||||||
|
title: "[dependency] Update the Mimir Distributed subchart"
|
||||||
|
body: "Updates the Mimir Distributed subchart"
|
||||||
|
base: main
|
||||||
|
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
||||||
|
committer: "GitHub <noreply@github.com>"
|
||||||
|
commit-message: Update Mimir Distributed
|
||||||
|
labels: dependencies
|
||||||
|
branch: chore/update-mimir-distributed
|
||||||
|
delete-branch: true
|
||||||
|
|
||||||
|
updateTempoDistributed:
|
||||||
|
name: Update the Tempo Distributed subchart
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Updatecli
|
||||||
|
uses: updatecli/updatecli-action@v2
|
||||||
|
|
||||||
|
- name: Run Updatecli
|
||||||
id: update-tempo-distributed
|
id: update-tempo-distributed
|
||||||
run: |
|
run: |
|
||||||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/tempo-distributed.yaml
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/tempo-distributed.yaml
|
||||||
@@ -58,7 +130,31 @@ jobs:
|
|||||||
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run Updatecli for Minio
|
- name: Create pull request
|
||||||
|
if: steps.update-tempo-distributed.outputs.changed == 'true'
|
||||||
|
uses: peter-evans/create-pull-request@v5
|
||||||
|
with:
|
||||||
|
title: "[dependency] Update the Tempo Distributed subchart"
|
||||||
|
body: "Updates the tempo Distributed subchart"
|
||||||
|
base: main
|
||||||
|
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
||||||
|
committer: "GitHub <noreply@github.com>"
|
||||||
|
commit-message: Update Tempo Distributed
|
||||||
|
labels: dependencies
|
||||||
|
branch: chore/update-tempo-distributed
|
||||||
|
delete-branch: true
|
||||||
|
|
||||||
|
updateMinio:
|
||||||
|
name: Update the Minio subchart
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Updatecli
|
||||||
|
uses: updatecli/updatecli-action@v2
|
||||||
|
|
||||||
|
- name: Run Updatecli
|
||||||
id: update-minio
|
id: update-minio
|
||||||
run: |
|
run: |
|
||||||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/minio.yaml
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/minio.yaml
|
||||||
@@ -67,15 +163,15 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Create pull request
|
||||||
if: steps.update-loki.outputs.changed == 'true' || steps.update-grafana-alloy.outputs.changed == 'true' || steps.update-mimir-distributed.outputs.changed == 'true' || steps.update-tempo-distributed.outputs.changed == 'true' || steps.update-minio.outputs.changed == 'true'
|
if: steps.update-minio.outputs.changed == 'true'
|
||||||
uses: peter-evans/create-pull-request@v5
|
uses: peter-evans/create-pull-request@v5
|
||||||
with:
|
with:
|
||||||
title: "[dependency] Update the subcharts"
|
title: "[dependency] Update the Minio subchart"
|
||||||
body: "Updates the subcharts"
|
body: "Updates the Minio subchart"
|
||||||
base: main
|
base: main
|
||||||
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
||||||
committer: "GitHub <noreply@github.com>"
|
committer: "GitHub <noreply@github.com>"
|
||||||
commit-message: Update dependencies
|
commit-message: Update minio
|
||||||
labels: dependencies
|
labels: dependencies
|
||||||
branch: chore/update-dependencies
|
branch: chore/update-minio
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
@@ -49,6 +49,9 @@ spec:
|
|||||||
- containerPort: 7946
|
- containerPort: 7946
|
||||||
name: memberlist
|
name: memberlist
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: minio
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
httpGet:
|
httpGet:
|
||||||
|
@@ -180,7 +180,7 @@ metrics:
|
|||||||
# Additional metrics to retain
|
# Additional metrics to retain
|
||||||
extraMetrics: []
|
extraMetrics: []
|
||||||
|
|
||||||
# Set enabled = true to add the default logs/metrics/traces dashboards to the local Grafana
|
# Set enabled = true to add the default logs dashboards to the local Grafana
|
||||||
dashboards:
|
dashboards:
|
||||||
logs:
|
logs:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -189,11 +189,6 @@ dashboards:
|
|||||||
traces:
|
traces:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
global:
|
|
||||||
minio:
|
|
||||||
rootUser: "rootuser"
|
|
||||||
rootPassword: "rootpassword"
|
|
||||||
|
|
||||||
kubeStateMetrics:
|
kubeStateMetrics:
|
||||||
# Scrape https://github.com/kubernetes/kube-state-metrics by default
|
# Scrape https://github.com/kubernetes/kube-state-metrics by default
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -229,9 +224,9 @@ loki:
|
|||||||
common:
|
common:
|
||||||
storage:
|
storage:
|
||||||
s3:
|
s3:
|
||||||
access_key_id: "{{ .Values.global.minio.rootUser }}"
|
access_key_id: "${rootUser}"
|
||||||
endpoint: "{{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000"
|
endpoint: "{{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000"
|
||||||
secret_access_key: "{{ .Values.global.minio.rootPassword }}"
|
secret_access_key: "${rootPassword}"
|
||||||
compactor:
|
compactor:
|
||||||
retention_enabled: true
|
retention_enabled: true
|
||||||
delete_request_store: s3
|
delete_request_store: s3
|
||||||
@@ -254,8 +249,24 @@ loki:
|
|||||||
installOperator: false
|
installOperator: false
|
||||||
lokiCanary:
|
lokiCanary:
|
||||||
enabled: false
|
enabled: false
|
||||||
test:
|
write:
|
||||||
enabled: false
|
extraArgs:
|
||||||
|
- "-config.expand-env=true"
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "minio"
|
||||||
|
read:
|
||||||
|
extraArgs:
|
||||||
|
- "-config.expand-env=true"
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "minio"
|
||||||
|
backend:
|
||||||
|
extraArgs:
|
||||||
|
- "-config.expand-env=true"
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "minio"
|
||||||
|
|
||||||
alloy:
|
alloy:
|
||||||
alloy:
|
alloy:
|
||||||
@@ -292,29 +303,30 @@ alloy:
|
|||||||
mimir-distributed:
|
mimir-distributed:
|
||||||
minio:
|
minio:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
global:
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "minio"
|
||||||
mimir:
|
mimir:
|
||||||
structuredConfig:
|
structuredConfig:
|
||||||
alertmanager_storage:
|
alertmanager_storage:
|
||||||
s3:
|
s3:
|
||||||
bucket_name: mimir-ruler
|
bucket_name: mimir-ruler
|
||||||
access_key_id: "{{ .Values.global.minio.rootUser }}"
|
|
||||||
endpoint: "{{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000"
|
|
||||||
secret_access_key: "{{ .Values.global.minio.rootPassword }}"
|
|
||||||
insecure: true
|
|
||||||
blocks_storage:
|
blocks_storage:
|
||||||
backend: s3
|
backend: s3
|
||||||
s3:
|
s3:
|
||||||
bucket_name: mimir-tsdb
|
bucket_name: mimir-tsdb
|
||||||
access_key_id: "{{ .Values.global.minio.rootUser }}"
|
|
||||||
endpoint: "{{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000"
|
|
||||||
secret_access_key: "{{ .Values.global.minio.rootPassword }}"
|
|
||||||
insecure: true
|
|
||||||
ruler_storage:
|
ruler_storage:
|
||||||
s3:
|
s3:
|
||||||
bucket_name: mimir-ruler
|
bucket_name: mimir-ruler
|
||||||
access_key_id: "{{ .Values.global.minio.rootUser }}"
|
common:
|
||||||
|
storage:
|
||||||
|
backend: s3
|
||||||
|
s3:
|
||||||
|
bucket_name: mimir-ruler
|
||||||
|
access_key_id: "${rootUser}"
|
||||||
endpoint: "{{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000"
|
endpoint: "{{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000"
|
||||||
secret_access_key: "{{ .Values.global.minio.rootPassword }}"
|
secret_access_key: "${rootPassword}"
|
||||||
insecure: true
|
insecure: true
|
||||||
limits:
|
limits:
|
||||||
compactor_blocks_retention_period: 30d
|
compactor_blocks_retention_period: 30d
|
||||||
@@ -328,12 +340,39 @@ tempo-distributed:
|
|||||||
s3:
|
s3:
|
||||||
bucket: tempo
|
bucket: tempo
|
||||||
endpoint: "{{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000"
|
endpoint: "{{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000"
|
||||||
access_key: "{{ .Values.global.minio.rootUser }}"
|
access_key: "${rootUser}"
|
||||||
secret_key: "{{ .Values.global.minio.rootPassword }}"
|
secret_key: "${rootPassword}"
|
||||||
insecure: true
|
insecure: true
|
||||||
|
distributor:
|
||||||
|
extraArgs:
|
||||||
|
- "-config.expand-env=true"
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "minio"
|
||||||
|
ingester:
|
||||||
|
extraArgs:
|
||||||
|
- "-config.expand-env=true"
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "minio"
|
||||||
compactor:
|
compactor:
|
||||||
compaction:
|
extraArgs:
|
||||||
block_retention: 30d
|
- "-config.expand-env=true"
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "minio"
|
||||||
|
querier:
|
||||||
|
extraArgs:
|
||||||
|
- "-config.expand-env=true"
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "minio"
|
||||||
|
queryFrontend:
|
||||||
|
extraArgs:
|
||||||
|
- "-config.expand-env=true"
|
||||||
|
extraEnvFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: "minio"
|
||||||
traces:
|
traces:
|
||||||
otlp:
|
otlp:
|
||||||
http:
|
http:
|
||||||
@@ -342,8 +381,7 @@ tempo-distributed:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
rootUser: rootuser
|
existingSecret: "minio"
|
||||||
rootPassword: rootpassword
|
|
||||||
buckets:
|
buckets:
|
||||||
- name: loki-chunks
|
- name: loki-chunks
|
||||||
policy: none
|
policy: none
|
||||||
|
@@ -25,17 +25,17 @@
|
|||||||
```
|
```
|
||||||
kubectl create secret generic logs -n meta \
|
kubectl create secret generic logs -n meta \
|
||||||
--from-literal=username=<logs username> \
|
--from-literal=username=<logs username> \
|
||||||
--from-literal=password=<token>
|
--from-literal=password=<token> \
|
||||||
--from-literal=endpoint='https://logs-prod-us-central1.grafana.net/loki/api/v1/push'
|
--from-literal=endpoint='https://logs-prod-us-central1.grafana.net/loki/api/v1/push'
|
||||||
|
|
||||||
kubectl create secret generic metrics -n meta \
|
kubectl create secret generic metrics -n meta \
|
||||||
--from-literal=username=<metrics username> \
|
--from-literal=username=<metrics username> \
|
||||||
--from-literal=password=<token>
|
--from-literal=password=<token> \
|
||||||
--from-literal=endpoint='https://prometheus-us-central1.grafana.net/api/prom/push'
|
--from-literal=endpoint='https://prometheus-us-central1.grafana.net/api/prom/push'
|
||||||
|
|
||||||
kubectl create secret generic traces -n meta \
|
kubectl create secret generic traces -n meta \
|
||||||
--from-literal=username=<OTLP instance ID> \
|
--from-literal=username=<OTLP instance ID> \
|
||||||
--from-literal=password=<token>
|
--from-literal=password=<token> \
|
||||||
--from-literal=endpoint='https://otlp-gateway-prod-us-east-0.grafana.net/otlp'
|
--from-literal=endpoint='https://otlp-gateway-prod-us-east-0.grafana.net/otlp'
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -67,6 +67,14 @@
|
|||||||
kubectl create namespace meta
|
kubectl create namespace meta
|
||||||
```
|
```
|
||||||
|
|
||||||
|
1. Create a secret named `minio` with the user and password for the local Minio:
|
||||||
|
|
||||||
|
```
|
||||||
|
kubectl create secret generic minio -n meta \
|
||||||
|
--from-literal=rootPassword=<password> \
|
||||||
|
--from-literal=rootUser=<user>
|
||||||
|
```
|
||||||
|
|
||||||
1. Create a values.yaml file based on the [default one](../charts/meta-monitoring/values.yaml). An example minimal values.yaml looks like this:
|
1. Create a values.yaml file based on the [default one](../charts/meta-monitoring/values.yaml). An example minimal values.yaml looks like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user