Skip to content

Commit d950598

Browse files
Merge branch 'main' into chore/tempo-helm/memcached-v1639
Signed-off-by: Fabian <[email protected]>
2 parents de7af44 + 43cde6d commit d950598

File tree

10 files changed

+34
-9
lines changed

10 files changed

+34
-9
lines changed

charts/grafana-mcp/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: grafana-mcp
3-
version: 0.1.2
3+
version: 0.1.3
44
appVersion: latest
55
kubeVersion: "^1.8.0-0"
66
description: MCP server for Grafana.

charts/grafana-mcp/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ spec:
101101
env:
102102
- name: GRAFANA_URL
103103
value: {{ .Values.grafana.url | quote }}
104-
- name: GRAFANA_API_KEY
104+
{{- if or .Values.grafana.apiKey .Values.grafana.apiKeySecret.name }}
105+
- name: GRAFANA_SERVICE_ACCOUNT_TOKEN
105106
valueFrom:
106107
secretKeyRef:
107108
{{- if .Values.grafana.apiKey }}
@@ -111,6 +112,7 @@ spec:
111112
name: {{ .Values.grafana.apiKeySecret.name }}
112113
key: {{ .Values.grafana.apiKeySecret.key }}
113114
{{- end }}
115+
{{- end }}
114116
{{- range $key, $value := .Values.env }}
115117
- name: {{ $key | quote }}
116118
value: {{ $value | quote }}

charts/grafana/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: grafana
3-
version: 9.4.4
3+
version: 10.0.0
44
appVersion: 12.1.1
55
kubeVersion: "^1.8.0-0"
66
description: The leading tool for querying and visualizing time series and metrics.

charts/grafana/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ to `global.imageRegistry`. If you were not previously setting `global.image.regi
5353
is required on upgrade. If you were previously setting `global.image.registry`, you will
5454
need to instead set `global.imageRegistry`.
5555

56+
### To 10.0.0
57+
58+
Static alerting resources now support Helm templating. This means that alerting resources loaded from external files (`alerting.*.files`) are now processed by the Helm template engine.
59+
60+
If you already use template expressions intended for Alertmanager (for example, `{{ $labels.instance }}`), these must now be escaped to avoid unintended Helm evaluation. To escape them, wrap the braces with an extra layer like this:
61+
62+
`{{ "{{" }} $labels.instance {{ "}}" }}`
63+
64+
This ensures the expressions are preserved for Alertmanager instead of being rendered by Helm.
65+
5666
## Configuration
5767

5868
| Parameter | Description | Default |
@@ -681,7 +691,7 @@ The two possibilities for static alerting resource provisioning are:
681691
* The format of the files is defined in the [Grafana documentation](https://grafana.com/docs/grafana/next/alerting/set-up/provision-alerting-resources/file-provisioning/) on file provisioning.
682692
* The chart supports importing YAML and JSON files.
683693
* The filename must be unique, otherwise one volume mount will overwrite the other.
684-
* In case of inlining, double curly braces that arise from the Grafana configuration format and are not intended as templates for the chart must be escaped.
694+
* Alerting configurations support Helm templating. Double curly braces that arise from the Grafana configuration format and are not intended as templates for the chart must be escaped.
685695
* The number of total files under `alerting:` is not limited. Each file will end up as a volume mount in the corresponding provisioning folder of the deployed Grafana instance.
686696
* The file size for each import is limited by what the function `.Files.Get` can handle, which suffices for most cases.
687697

charts/grafana/templates/_config.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ grafana.ini: |
5555

5656
{{- range $key, $value := .Values.alerting }}
5757
{{- if (hasKey $value "file") }}
58-
{{ $key }}:
59-
{{- toYaml ( $files.Get $value.file ) | nindent 2 }}
58+
{{ $key }}: |
59+
{{- tpl ($files.Get $value.file) $root | nindent 2 }}
6060
{{- else if (or (hasKey $value "secret") (hasKey $value "secretFile"))}}
6161
{{/* will be stored inside secret generated by "configSecret.yaml"*/}}
6262
{{- else }}

charts/grafana/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ envFromSecrets: []
569569
## prefix: prefix
570570
## optional: true
571571

572-
## The names of conifgmaps in the same kubernetes namespace which contain values to be added to the environment
572+
## The names of configmaps in the same kubernetes namespace which contain values to be added to the environment
573573
## Each entry should contain a name key, and can optionally specify whether the configmap must be defined with an optional key.
574574
## Name is templated.
575575
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#configmapenvsource-v1-core

charts/tempo-distributed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: tempo-distributed
33
description: Grafana Tempo in MicroService mode
44
type: application
5-
version: 1.47.2
5+
version: 1.47.4
66
appVersion: 2.8.2
77
engine: gotpl
88
home: https://grafana.com/docs/tempo/latest/

charts/tempo-distributed/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tempo-distributed
22

3-
![Version: 1.47.2](https://img.shields.io/badge/Version-1.47.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.2](https://img.shields.io/badge/AppVersion-2.8.2-informational?style=flat-square)
3+
![Version: 1.47.4](https://img.shields.io/badge/Version-1.47.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.2](https://img.shields.io/badge/AppVersion-2.8.2-informational?style=flat-square)
44

55
Grafana Tempo in MicroService mode
66

@@ -372,6 +372,7 @@ The memcached default args are removed and should be provided manually. The sett
372372
| distributor.config.log_discarded_spans.include_all_attributes | bool | `false` | |
373373
| distributor.config.log_received_spans | object | `{"enabled":false,"filter_by_status_error":false,"include_all_attributes":false}` | Enable to log every received span to help debug ingestion or calculate span error distributions using the logs |
374374
| distributor.config.log_received_traces | string | `nil` | WARNING: Deprecated. Use log_received_spans instead. |
375+
| distributor.config.max_attribute_bytes | int | `0` | Trace Attribute bytes limit. This is the maximum number of bytes that can be used in a trace.0 for no limit. |
375376
| distributor.extraArgs | list | `[]` | Additional CLI args for the distributor |
376377
| distributor.extraContainers | list | `[]` | Containers to add to the distributor pod |
377378
| distributor.extraEnv | list | `[]` | Environment variables to add to the distributor pods |
@@ -384,6 +385,7 @@ The memcached default args are removed and should be provided manually. The sett
384385
| distributor.image.repository | string | `nil` | Docker image repository for the distributor image. Overrides `tempo.image.repository` |
385386
| distributor.image.tag | string | `nil` | Docker image tag for the distributor image. Overrides `tempo.image.tag` |
386387
| distributor.initContainers | list | `[]` | Init containers to add to the distributor pods |
388+
| distributor.lifecycle | object | `{}` | Container lifecycle hooks for the distributor |
387389
| distributor.maxUnavailable | int | `1` | Pod Disruption Budget maxUnavailable |
388390
| distributor.minReadySeconds | int | `10` | Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating |
389391
| distributor.nodeSelector | object | `{}` | Node selector for distributor pods |

charts/tempo-distributed/templates/distributor/deployment-distributor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ spec:
146146
securityContext:
147147
{{- toYaml . | nindent 12 }}
148148
{{- end }}
149+
{{- with .Values.distributor.lifecycle }}
150+
lifecycle:
151+
{{- toYaml . | nindent 12 }}
152+
{{- end }}
149153
volumeMounts:
150154
- mountPath: /conf
151155
name: config

charts/tempo-distributed/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,8 @@ distributor:
553553
resources: {}
554554
# -- Grace period to allow the distributor to shutdown before it is killed
555555
terminationGracePeriodSeconds: 30
556+
# -- Container lifecycle hooks for the distributor
557+
lifecycle: {}
556558
# -- topologySpread for distributor pods. Passed through `tpl` and, thus, to be configured as string
557559
# @default -- Defaults to allow skew no more then 1 node per AZ
558560
topologySpreadConstraints: |
@@ -610,6 +612,8 @@ distributor:
610612
filter_by_status_error: false
611613
# -- Disables write extension with inactive ingesters
612614
extend_writes: null
615+
# -- Trace Attribute bytes limit. This is the maximum number of bytes that can be used in a trace.0 for no limit.
616+
max_attribute_bytes: 0
613617
# Configures usage trackers in the distributor which expose metrics of ingested traffic grouped by configurable
614618
# attributes exposed on /usage_metrics.
615619
cost_attribution:
@@ -1453,6 +1457,9 @@ config: |
14531457
{{- if .Values.distributor.config.extend_writes }}
14541458
extend_writes: {{ .Values.distributor.config.extend_writes }}
14551459
{{- end }}
1460+
{{- if .Values.distributor.config.max_attribute_bytes }}
1461+
max_attribute_bytes: {{ .Values.distributor.config.max_attribute_bytes }}
1462+
{{- end }}
14561463
querier:
14571464
frontend_worker:
14581465
frontend_address: {{ include "tempo.resourceName" (dict "ctx" . "component" "query-frontend-discovery") }}:9095

0 commit comments

Comments
 (0)