forked from RemoteSync/grafana-meta-monitoring-chart
Compare commits
31 Commits
combine_ci
...
split_up_g
Author | SHA1 | Date | |
---|---|---|---|
|
57adbf43e2 | ||
|
add43ae974 | ||
|
52ec526718 | ||
|
8a5ed559a2 | ||
|
188cd7e56f | ||
|
9e4dbcd44a | ||
|
28daa27fca | ||
|
2de595baf4 | ||
|
95257b66d3 | ||
|
e9b0e57ef0 | ||
|
03609ebb35 | ||
|
7e38d19814 | ||
|
32272298d7 | ||
|
3879207e05 | ||
|
cd42da2197 | ||
|
56cab04af8 | ||
|
d938dbbfe5 | ||
|
e9125d1a9c | ||
|
076685ef06 | ||
|
b0451d626e | ||
|
90e949e89a | ||
|
06e176e720 | ||
|
d4c886ba9d | ||
|
643e73f5f1 | ||
|
7e65f3d9c9 | ||
|
26e0ad0b85 | ||
|
ab42a96949 | ||
|
386ff25fca | ||
|
c6889131a7 | ||
|
2739bae0c0 | ||
|
cea8076b75 |
30
.github/configs/updatecli.d/grafana.yaml
vendored
Normal file
30
.github/configs/updatecli.d/grafana.yaml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Bump grafana version specified in the values.yaml
|
||||||
|
sources:
|
||||||
|
latestGrafanaRelease:
|
||||||
|
name: Get latest grafana release on Github
|
||||||
|
kind: githubrelease
|
||||||
|
spec:
|
||||||
|
owner: grafana
|
||||||
|
repository: grafana
|
||||||
|
token: '{{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}'
|
||||||
|
versionfilter:
|
||||||
|
kind: latest
|
||||||
|
transformers:
|
||||||
|
- trimprefix: "v"
|
||||||
|
conditions:
|
||||||
|
grafanaImagePublished:
|
||||||
|
name: Ensure the latest Grafana is published on DockerHub
|
||||||
|
kind: dockerimage
|
||||||
|
source-id: latestGrafanaRelease
|
||||||
|
spec:
|
||||||
|
image: "grafana/grafana"
|
||||||
|
targets:
|
||||||
|
grafana:
|
||||||
|
name: Update Grafana version in values.yaml
|
||||||
|
kind: helmchart
|
||||||
|
spec:
|
||||||
|
file: values.yaml
|
||||||
|
key: $.grafana.version
|
||||||
|
name: charts/meta-monitoring
|
||||||
|
versionincrement: none
|
||||||
|
sourceid: latestGrafanaRelease
|
@@ -17,7 +17,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
updateVersions:
|
updateVersions:
|
||||||
name: Update the Loki subchart
|
name: Update the subcharts
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -79,3 +79,35 @@ jobs:
|
|||||||
labels: dependencies
|
labels: dependencies
|
||||||
branch: chore/update-dependencies
|
branch: chore/update-dependencies
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
|
||||||
|
updateGrafana:
|
||||||
|
name: Update the Grafana version
|
||||||
|
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
|
||||||
|
run: |
|
||||||
|
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/grafana.yaml
|
||||||
|
if ! git diff --exit-code > /dev/null; then
|
||||||
|
echo "changed=true" >> "${GITHUB_OUTPUT}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Create pull request
|
||||||
|
if: steps.update-grafana.outputs.changed == 'true'
|
||||||
|
uses: peter-evans/create-pull-request@v5
|
||||||
|
with:
|
||||||
|
title: "[dependency] Update the Grafana version"
|
||||||
|
body: "Updates the Grafana version"
|
||||||
|
base: main
|
||||||
|
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
|
||||||
|
committer: "GitHub <noreply@github.com>"
|
||||||
|
commit-message: Update Grafana version
|
||||||
|
labels: dependencies
|
||||||
|
branch: chore/update-minio
|
||||||
|
delete-branch: true
|
||||||
|
@@ -10,9 +10,9 @@ dependencies:
|
|||||||
version: 5.3.0
|
version: 5.3.0
|
||||||
- name: tempo-distributed
|
- name: tempo-distributed
|
||||||
repository: https://grafana.github.io/helm-charts
|
repository: https://grafana.github.io/helm-charts
|
||||||
version: 1.9.7
|
version: 1.9.9
|
||||||
- name: minio
|
- name: minio
|
||||||
repository: https://charts.min.io
|
repository: https://charts.min.io
|
||||||
version: 5.2.0
|
version: 5.2.0
|
||||||
digest: sha256:297f462812b6436834d8b82a028840bd55bd9e935b3d0a3e8206ac54a113be01
|
digest: sha256:5328702b5f6b0487aba8f7bc77d6abfcd5e094569e9205cd725971e3e31255dd
|
||||||
generated: "2024-05-07T09:22:16.438693788Z"
|
generated: "2024-05-08T07:03:21.797461955Z"
|
||||||
|
@@ -33,7 +33,7 @@ dependencies:
|
|||||||
condition: local.metrics.enabled
|
condition: local.metrics.enabled
|
||||||
- name: tempo-distributed
|
- name: tempo-distributed
|
||||||
repository: https://grafana.github.io/helm-charts
|
repository: https://grafana.github.io/helm-charts
|
||||||
version: 1.9.7
|
version: 1.9.9
|
||||||
condition: local.traces.enabled
|
condition: local.traces.enabled
|
||||||
- name: minio
|
- name: minio
|
||||||
repository: https://charts.min.io
|
repository: https://charts.min.io
|
||||||
|
Binary file not shown.
BIN
charts/meta-monitoring/charts/tempo-distributed-1.9.9.tgz
Normal file
BIN
charts/meta-monitoring/charts/tempo-distributed-1.9.9.tgz
Normal file
Binary file not shown.
@@ -48,7 +48,7 @@
|
|||||||
{{- define "agent.tempo_write_targets" -}}
|
{{- define "agent.tempo_write_targets" -}}
|
||||||
{{- $list := list }}
|
{{- $list := list }}
|
||||||
{{- if .Values.local.traces.enabled }}
|
{{- if .Values.local.traces.enabled }}
|
||||||
{{- $list = append $list ("otelcol.exporter.otlp.local.input") }}
|
{{- $list = append $list ("otelcol.exporter.otlphttp.local.input") }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.cloud.traces.enabled }}
|
{{- if .Values.cloud.traces.enabled }}
|
||||||
{{- $list = append $list ("otelcol.exporter.otlphttp.cloud.input") }}
|
{{- $list = append $list ("otelcol.exporter.otlphttp.cloud.input") }}
|
||||||
|
@@ -294,9 +294,7 @@ data:
|
|||||||
// We don't technically need this, but it shows how to change listen address and incoming port.
|
// We don't technically need this, but it shows how to change listen address and incoming port.
|
||||||
// In this case, the Agent is listening on all available bindable addresses on port 4317 (which is the
|
// In this case, the Agent is listening on all available bindable addresses on port 4317 (which is the
|
||||||
// default OTLP gRPC port) for the OTLP protocol.
|
// default OTLP gRPC port) for the OTLP protocol.
|
||||||
grpc {
|
grpc {}
|
||||||
endpoint = "0.0.0.0:4317"
|
|
||||||
}
|
|
||||||
|
|
||||||
// We define where to send the output of all ingested traces. In this case, to the OpenTelemetry batch processor
|
// We define where to send the output of all ingested traces. In this case, to the OpenTelemetry batch processor
|
||||||
// named 'default'.
|
// named 'default'.
|
||||||
@@ -345,6 +343,14 @@ data:
|
|||||||
}
|
}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.local.traces.enabled }}
|
||||||
|
otelcol.exporter.otlphttp "local" {
|
||||||
|
client {
|
||||||
|
endpoint = "http://{{- .Release.Name -}}-tempo-distributor.svc:4318"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.cloud.logs.enabled }}
|
{{- if .Values.cloud.logs.enabled }}
|
||||||
loki.write "cloud" {
|
loki.write "cloud" {
|
||||||
endpoint {
|
endpoint {
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{{- if and .Values.local.grafana.enabled (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled .Values.dashboards.traces.enabled) }}
|
{{- if and .Values.local.grafana.enabled .Values.dashboards.logs.enabled }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{{- if and .Values.local.grafana.enabled (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled .Values.dashboards.traces.enabled) }}
|
{{- if and .Values.local.grafana.enabled .Values.dashboards.logs.enabled }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
@@ -1,16 +1,4 @@
|
|||||||
{{- if .Values.local.grafana.enabled }}
|
{{- if .Values.local.grafana.enabled }}
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: grafana-pvc
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@@ -32,7 +20,7 @@ spec:
|
|||||||
- 0
|
- 0
|
||||||
containers:
|
containers:
|
||||||
- name: grafana
|
- name: grafana
|
||||||
image: grafana/grafana:10.0.0
|
image: grafana/grafana:{{- .Values.grafana.version }}
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
@@ -65,7 +53,7 @@ spec:
|
|||||||
name: grafana-pv
|
name: grafana-pv
|
||||||
- mountPath: /etc/grafana/provisioning/datasources
|
- mountPath: /etc/grafana/provisioning/datasources
|
||||||
name: datasources-provisioning
|
name: datasources-provisioning
|
||||||
{{- if or (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled) .Values.dashboards.traces.enabled }}
|
{{- if .Values.dashboards.logs.enabled }}
|
||||||
- mountPath: /etc/grafana/provisioning/dashboards
|
- mountPath: /etc/grafana/provisioning/dashboards
|
||||||
name: dashboards-provisioning
|
name: dashboards-provisioning
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -98,19 +86,4 @@ spec:
|
|||||||
- name: agent-dashboards-1
|
- name: agent-dashboards-1
|
||||||
configMap:
|
configMap:
|
||||||
name: agent-dashboards-1
|
name: agent-dashboards-1
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: grafana
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- port: 3000
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: http-grafana
|
|
||||||
selector:
|
|
||||||
app: grafana
|
|
||||||
sessionAffinity: None
|
|
||||||
type: ClusterIP # Make this configurable
|
|
||||||
{{- end }}
|
{{- end }}
|
12
charts/meta-monitoring/templates/grafana/grafana-pvc.yaml
Normal file
12
charts/meta-monitoring/templates/grafana/grafana-pvc.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{{- if .Values.local.grafana.enabled }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: grafana-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
{{- end }}
|
@@ -0,0 +1,15 @@
|
|||||||
|
{{- if .Values.local.grafana.enabled }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: grafana
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 3000
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: http-grafana
|
||||||
|
selector:
|
||||||
|
app: grafana
|
||||||
|
sessionAffinity: None
|
||||||
|
type: ClusterIP # Make this configurable
|
||||||
|
{{- end }}
|
@@ -1,5 +1,5 @@
|
|||||||
{{- if .Values.local.grafana.enabled }}
|
{{- if .Values.local.grafana.enabled }}
|
||||||
{{- if and .Values.local.grafana.enabled (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled .Values.dashboards.traces.enabled) }}
|
{{- if and .Values.local.grafana.enabled .Values.dashboards.logs.enabled }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@@ -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:
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{{- if .Values.local.metrics.enabled }}
|
{{- if .Values.local.metrics.enabled }}
|
||||||
{{- if and .Values.local.grafana.enabled (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled .Values.dashboards.traces.enabled) }}
|
{{- if and .Values.local.grafana.enabled .Values.dashboards.logs.enabled }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -10,11 +10,5 @@ data:
|
|||||||
{{- if .Values.dashboards.logs.enabled }}
|
{{- if .Values.dashboards.logs.enabled }}
|
||||||
{{ ($.Files.Glob "src/rules/loki-rules.yaml").AsConfig | indent 2 }}
|
{{ ($.Files.Glob "src/rules/loki-rules.yaml").AsConfig | indent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.dashboards.metrics.enabled }}
|
|
||||||
{{ ($.Files.Glob "src/rules/mimir-rules.yaml").AsConfig | indent 2 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.dashboards.traces.enabled }}
|
|
||||||
{{ ($.Files.Glob "src/rules/tempo-rules.yaml").AsConfig | indent 2 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@@ -3,7 +3,6 @@ namespacesToMonitor:
|
|||||||
- loki
|
- loki
|
||||||
# The name of the cluster where this will be installed
|
# The name of the cluster where this will be installed
|
||||||
clusterLabelValue: "meta-monitoring"
|
clusterLabelValue: "meta-monitoring"
|
||||||
|
|
||||||
# Set to true to write logs, metrics or traces to Grafana Cloud
|
# Set to true to write logs, metrics or traces to Grafana Cloud
|
||||||
# The secrets have to be created first
|
# The secrets have to be created first
|
||||||
cloud:
|
cloud:
|
||||||
@@ -16,7 +15,6 @@ cloud:
|
|||||||
traces:
|
traces:
|
||||||
enabled: true
|
enabled: true
|
||||||
secret: "traces"
|
secret: "traces"
|
||||||
|
|
||||||
# Set to true for a local version of logs, metrics or traces
|
# Set to true for a local version of logs, metrics or traces
|
||||||
local:
|
local:
|
||||||
grafana:
|
grafana:
|
||||||
@@ -29,8 +27,8 @@ local:
|
|||||||
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
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
|
version: 10.4.2
|
||||||
# Gateway ingress configuration
|
# Gateway ingress configuration
|
||||||
ingress:
|
ingress:
|
||||||
# -- Specifies whether an ingress for the gateway should be created
|
# -- Specifies whether an ingress for the gateway should be created
|
||||||
@@ -53,17 +51,13 @@ grafana:
|
|||||||
# - 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:
|
piiRegexes: null # This example replaces the word after password with *****
|
||||||
# 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: "*****""
|
||||||
|
|
||||||
# The lines matching these will be kept in Loki
|
# The lines matching these will be kept in Loki
|
||||||
retain:
|
retain:
|
||||||
# This shows the queries
|
# This shows the queries
|
||||||
@@ -78,7 +72,6 @@ logs:
|
|||||||
# - caller=push.go
|
# - caller=push.go
|
||||||
# Additional log lines to retain
|
# Additional log lines to retain
|
||||||
extraLogs: []
|
extraLogs: []
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
# The list of metrics to retain for logging dashboards
|
# The list of metrics to retain for logging dashboards
|
||||||
retain:
|
retain:
|
||||||
@@ -179,21 +172,10 @@ metrics:
|
|||||||
- promtail_custom_bad_words_total
|
- promtail_custom_bad_words_total
|
||||||
# Additional metrics to retain
|
# Additional metrics to retain
|
||||||
extraMetrics: []
|
extraMetrics: []
|
||||||
|
# Set enabled = true to add the default logs dashboards to the local Grafana
|
||||||
# Set enabled = true to add the default logs/metrics/traces dashboards to the local Grafana
|
|
||||||
dashboards:
|
dashboards:
|
||||||
logs:
|
logs:
|
||||||
enabled: true
|
enabled: true
|
||||||
metrics:
|
|
||||||
enabled: true
|
|
||||||
traces:
|
|
||||||
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
|
||||||
@@ -201,10 +183,8 @@ kubeStateMetrics:
|
|||||||
# https://artifacthub.io/packages/helm/prometheus-community/kube-state-metrics/
|
# https://artifacthub.io/packages/helm/prometheus-community/kube-state-metrics/
|
||||||
# is used. Change this if kube-state-metrics is installed somewhere else.
|
# is used. Change this if kube-state-metrics is installed somewhere else.
|
||||||
endpoint: kube-state-metrics.kube-state-metrics.svc.cluster.local:8080
|
endpoint: kube-state-metrics.kube-state-metrics.svc.cluster.local:8080
|
||||||
|
|
||||||
# The following are configuration for the dependencies.
|
# The following are configuration for the dependencies.
|
||||||
# These should usually not be changed.
|
# These should usually not be changed.
|
||||||
|
|
||||||
loki:
|
loki:
|
||||||
loki:
|
loki:
|
||||||
auth_enabled: false
|
auth_enabled: false
|
||||||
@@ -229,9 +209,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,9 +234,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:
|
||||||
clustering:
|
clustering:
|
||||||
@@ -288,37 +283,36 @@ alloy:
|
|||||||
maxReplicas: 30
|
maxReplicas: 30
|
||||||
targetMemoryUtilizationPercentage: 90
|
targetMemoryUtilizationPercentage: 90
|
||||||
targetCPUUtilizationPercentage: 90
|
targetCPUUtilizationPercentage: 90
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
tempo-distributed:
|
tempo-distributed:
|
||||||
tempo:
|
tempo:
|
||||||
structuredConfig:
|
structuredConfig:
|
||||||
@@ -328,22 +322,47 @@ 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:
|
||||||
enabled: true
|
enabled: true
|
||||||
grpc:
|
grpc:
|
||||||
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