Compare commits

...

23 Commits

Author SHA1 Message Date
Michel Hollands
ef05e599e6 comment out Test Helm Chart CI step for now
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2024-03-26 17:30:42 +00:00
Michel Hollands
a586e753da Merge pull request #18 from grafana/add_create_kind_cluster_to_ci
Add create kind cluster to ci
2023-10-19 10:52:13 +01:00
Michel Hollands
76908c1e9e Turn on cloud metrics and traces by default
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-10-19 10:47:12 +01:00
Michel Hollands
bc5cdadb9f Rename file and do not run ruler when no mimir
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-10-19 10:28:59 +01:00
Michel Hollands
687c77c0f6 Use cloud
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-10-19 09:31:59 +01:00
Michel Hollands
2a0b14ee45 Merge pull request #19 from grafana/add_30_day_retention
Use 30 days retention instead of 24 hours
2023-10-18 13:22:08 +01:00
Michel Hollands
7e06d611a7 Use 30 days retention instead of 24 hours
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-10-18 11:42:53 +01:00
Michel Hollands
f4934d6007 Remove space
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-10-18 11:35:54 +01:00
Michel Hollands
427764278c Merge pull request #17 from grafana/add_lint_to_ci
Add lint to ci
2023-08-23 12:22:17 +01:00
Michel Hollands
1093e91741 Change namespace name
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:45:57 +01:00
Michel Hollands
1ed196299b Increase timeout
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:44:31 +01:00
Michel Hollands
faa0015c11 Install locally by default
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:28:47 +01:00
Michel Hollands
53416e042c Use correct namespace
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:26:35 +01:00
Michel Hollands
d804da13f1 Add test install
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:20:20 +01:00
Michel Hollands
8c0b68fe02 Fix kind.config
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:13:16 +01:00
Michel Hollands
99bb8f13c2 Apply linting 5
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:10:36 +01:00
Michel Hollands
26ff679cbb Apply linting 4
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:06:52 +01:00
Michel Hollands
fb3e3ece1b Apply linting 3
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:05:21 +01:00
Michel Hollands
7a5358b322 Apply linting 2
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:03:29 +01:00
Michel Hollands
9c92e18efe Apply linting
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 11:02:07 +01:00
Michel Hollands
ffe220590d Update dependencies
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 10:58:54 +01:00
Michel Hollands
e3708ce3fe Add ct.yaml
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 10:44:43 +01:00
Michel Hollands
3149f4df9b Add install step
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
2023-08-18 10:22:14 +01:00
9 changed files with 101 additions and 33 deletions

View File

@@ -18,3 +18,49 @@ jobs:
- name: Lint Yaml
run: make helm-lint
# call-test:
# name: Test Helm Chart
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Set up Helm
# uses: azure/setup-helm@v3
# with:
# version: v3.8.2
# # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
# # yamllint (https://github.com/adrienverge/yamllint) which require Python
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: 3.7
# - name: Set up chart-testing
# uses: helm/chart-testing-action@v2.4.0
# - name: Run chart-testing (list-changed)
# id: list-changed
# run: |
# changed=$(ct list-changed --config "${CT_CONFIGFILE}")
# if [[ -n "$changed" ]]; then
# echo "changed=true" >> $GITHUB_OUTPUT
# fi
# - name: Run chart-testing (lint)
# run: ct lint --config "${CT_CONFIGFILE}" --check-version-increment=false
# - name: Create kind cluster
# uses: helm/kind-action@v1.8.0
# if: steps.list-changed.outputs.changed == 'true'
# with:
# config: tools/kind.config
# - name: Run chart-testing (install)
# run: |
# changed=$(ct list-changed --config "${CT_CONFIGFILE}")
# ct install --config "${CT_CONFIGFILE}"

View File

@@ -14,5 +14,5 @@ dependencies:
- name: minio
repository: https://charts.min.io
version: 5.0.11
digest: sha256:4b04084e6fe821c4d481017b2430f7c8cd782a5d60830dd3a24eb8f10a9ece09
generated: "2023-06-29T14:25:07.247853+01:00"
digest: sha256:da0e744b5046eb7972e0bf82d1d0ba4786e9600af63b65f35b16118105248074
generated: "2023-08-18T10:58:08.978123+01:00"

View File

@@ -25,21 +25,21 @@ appVersion: "0.0.1"
dependencies:
- name: loki
repository: https://grafana.github.io/helm-charts
repository: https://grafana.github.io/helm-charts
version: "5.8.0"
condition: local.logs.enabled
- name: grafana-agent
repository: https://grafana.github.io/helm-charts
repository: https://grafana.github.io/helm-charts
version: "0.15.0"
- name: mimir-distributed
repository: https://grafana.github.io/helm-charts
repository: https://grafana.github.io/helm-charts
version: "4.4.1"
condition: local.metrics.enabled
- name: tempo-distributed
repository: https://grafana.github.io/helm-charts
repository: https://grafana.github.io/helm-charts
version: "1.4.7"
condition: local.traces.enabled
- name: minio
repository: https://charts.min.io
version: "5.0.11"
condition: local.minio.enabled
condition: local.minio.enabled

View File

@@ -0,0 +1,11 @@
---
remote: origin
target-branch: main
chart-dirs:
- charts
chart-repos:
- grafana=https://grafana.github.io/helm-charts
- minio=https://charts.min.io
helm-extra-args: --timeout 1200s
check-version-increment: false
validate-maintainers: false

View File

@@ -1,9 +1,10 @@
{{- if .Values.local.metrics.enabled }}
{{- if or (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled) .Values.dashboards.traces.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: meta-mimir-ruler-for-dashboards
namespace: meta
namespace: {{ $.Release.Namespace }}
spec:
progressDeadlineSeconds: 600
replicas: 1
@@ -24,7 +25,7 @@ spec:
app.kubernetes.io/component: ruler-for-dashboards
app.kubernetes.io/instance: meta
app.kubernetes.io/name: mimir
namespace: meta
namespace: {{ $.Release.Namespace }}
spec:
containers:
- args:
@@ -91,8 +92,6 @@ spec:
runAsUser: 10001
seccompProfile:
type: RuntimeDefault
serviceAccount: meta-mimir
serviceAccountName: meta-mimir
terminationGracePeriodSeconds: 180
topologySpreadConstraints:
- labelSelector:
@@ -124,3 +123,4 @@ spec:
name: rules
name: rules
{{- end }}
{{- end }}

View File

@@ -1,3 +1,4 @@
{{- if .Values.local.metrics.enabled }}
{{- if or (or .Values.dashboards.logs.enabled .Values.dashboards.metrics.enabled) .Values.dashboards.traces.enabled }}
---
apiVersion: v1
@@ -16,3 +17,4 @@ data:
{{ ($.Files.Glob "src/rules/tempo-rules.yaml").AsConfig | indent 2 }}
{{- end }}
{{- end }}
{{- end }}

View File

@@ -6,6 +6,24 @@ namespacesToMonitor:
# The name of the cluster where this will be installed
clusterName: "meta-monitoring"
# Set to true to write logs, metrics or traces to Grafana Cloud
cloud:
logs:
enabled: true
endpoint: to_be_changed
username: to_be_changed
password: to_be_changed
metrics:
enabled: true
endpoint: to_be_changed
username: to_be_changed
password: to_be_changed
traces:
enabled: true
endpoint: to_be_changed
username: to_be_changed
password: to_be_changed
# Set to true for a local version of logs, metrics or traces
local:
logs:
@@ -17,24 +35,6 @@ local:
minio:
enabled: false # This should be set to true if any of the previous is enabled
# Set to true to write logs, metrics or traces to Grafana Cloud
cloud:
logs:
enabled: true
endpoint:
username:
password:
metrics:
enabled: true
endpoint:
username:
password:
traces:
enabled: true
endpoint:
username:
password:
# 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
logs:
@@ -90,7 +90,7 @@ loki:
compactor:
retention_enabled: true
limits_config:
retention_period: 24h
retention_period: 30d
monitoring:
dashboards:
enabled: false
@@ -142,7 +142,7 @@ mimir-distributed:
secret_access_key: "{{ .Values.global.minio.rootPassword }}"
insecure: true
limits:
compactor_blocks_retention_period: 24h
compactor_blocks_retention_period: 30d
tempo-distributed:
tempo:
@@ -158,7 +158,7 @@ tempo-distributed:
insecure: true
compactor:
compaction:
block_retention: 24h
block_retention: 30d
traces:
otlp:
http:
@@ -193,4 +193,4 @@ minio:
cpu: 100m
memory: 128Mi
# Changed the mc config path to '/tmp' from '/etc' as '/etc' is only writable by root and OpenShift will not permit this.
configPathmc: "/tmp/minio/mc/"
configPathmc: "/tmp/minio/mc/"

9
tools/kind.config Normal file
View File

@@ -0,0 +1,9 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: meta
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker