Skip to content

Commit

Permalink
Merge branch 'main' into pvc
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Bálint <[email protected]>
  • Loading branch information
martinbalint authored Dec 9, 2024
2 parents a98880e + c6ee65a commit 44fa37d
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
{{- $requestedReplicas := .ctx.Values.ingester.replicas -}}
{{- $replicaPerZone := div (add $requestedReplicas $numberOfZones -1) $numberOfZones -}}
{{- range $idx, $rolloutZone := .ctx.Values.ingester.zoneAwareReplication.zones -}}
{{- $_ := set $zonesMap $rolloutZone.name (dict
"affinity" (($rolloutZone.extraAffinity | default (dict)) | mergeOverwrite (include "ingester.zoneAntiAffinity" (dict "rolloutZoneName" $rolloutZone.name "topologyKey" $.ctx.Values.ingester.zoneAwareReplication.topologyKey) | fromYaml))
"nodeSelector" ($rolloutZone.nodeSelector | default (dict) )
"replicas" $replicaPerZone
"storageClass" $rolloutZone.storageClass
) -}}
{{- $extraAffinity := $rolloutZone.extraAffinity | default (dict) -}}
{{- $zoneAntiAffinity := include "ingester.zoneAntiAffinity" (dict "rolloutZoneName" $rolloutZone.name "topologyKey" $.ctx.Values.ingester.zoneAwareReplication.topologyKey) | fromYaml -}}
{{- $mergedAffinity := mergeOverwrite $extraAffinity $zoneAntiAffinity -}}
{{- $_ := set $zonesMap $rolloutZone.name (dict "affinity" $mergedAffinity "nodeSelector" ($rolloutZone.nodeSelector | default (dict)) "replicas" $replicaPerZone "storageClass" $rolloutZone.storageClass) -}}
{{- end -}}
{{- else -}}
{{- $_ := set $zonesMap "" $defaultZone -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/tempo-vulture/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: tempo-vulture
description: Grafana Tempo Vulture - A tool to monitor Tempo performance.
type: application
version: 0.7.0
version: 0.7.1
appVersion: 2.6.1
engine: gotpl
home: https://grafana.com/docs/tempo/latest/
Expand Down
16 changes: 8 additions & 8 deletions charts/tempo-vulture/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tempo-vulture

![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.1](https://img.shields.io/badge/AppVersion-2.6.1-informational?style=flat-square)
![Version: 0.7.1](https://img.shields.io/badge/Version-0.7.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.1](https://img.shields.io/badge/AppVersion-2.6.1-informational?style=flat-square)

Grafana Tempo Vulture - A tool to monitor Tempo performance.

Expand Down Expand Up @@ -64,20 +64,20 @@ tempoAddress:
| nodeSelector | object | `{}` | Node selector for vulture pods |
| podAnnotations | object | `{}` | Common annotations for all pods |
| podLabels | object | `{}` | Common labels for all pods |
| podMonitor.annotations | object | `{}` | PodMonitor annotations |
| podMonitor.enabled | bool | `false` | If enabled, PodMonitor resources for Prometheus Operator are created |
| podMonitor.interval | string | `nil` | PodMonitor scrape interval |
| podMonitor.labels | object | `{}` | Additional PodMonitor labels |
| podMonitor.namespace | string | `nil` | Alternative namespace for PodMonitor resources |
| podMonitor.namespaceSelector | object | `{}` | Namespace selector for PodMonitor resources |
| podMonitor.scrapeTimeout | string | `nil` | PodMonitor scrape timeout in Go duration format (e.g. 15s) |
| replicas | int | `1` | Number of replicas of Tempo Vulture |
| resources | object | `{}` | Resource requests and limits for the vulture |
| revisionHistoryLimit | int | `10` | The number of old ReplicaSets to retain to allow rollback |
| serviceAccount.annotations | object | `{}` | Annotations for the service account |
| serviceAccount.create | bool | `true` | Specifies whether a ServiceAccount should be created |
| serviceAccount.imagePullSecrets | list | `[]` | Image pull secrets for the service account |
| serviceAccount.name | string | `nil` | The name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template |
| serviceMonitor.annotations | object | `{}` | ServiceMonitor annotations |
| serviceMonitor.enabled | bool | `false` | If enabled, ServiceMonitor resources for Prometheus Operator are created |
| serviceMonitor.interval | string | `nil` | ServiceMonitor scrape interval |
| serviceMonitor.labels | object | `{}` | Additional ServiceMonitor labels |
| serviceMonitor.namespace | string | `nil` | Alternative namespace for ServiceMonitor resources |
| serviceMonitor.namespaceSelector | object | `{}` | Namespace selector for ServiceMonitor resources |
| serviceMonitor.scrapeTimeout | string | `nil` | ServiceMonitor scrape timeout in Go duration format (e.g. 15s) |
| tempoAddress.push | string | `nil` | the url towards your Tempo distributor, e.g. http://distributor |
| tempoAddress.query | string | `nil` | the url towards your Tempo query-frontend, e.g. http://query-frontend:3100 |
| tolerations | list | `[]` | Tolerations for vulture pods |
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- with .Values.serviceMonitor }}
{{- with .Values.podMonitor}}
{{- if .enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
kind: PodMonitor
metadata:
name: {{ include "tempo-vulture.fullname" $ }}
{{- with .namespace }}
Expand All @@ -24,7 +24,7 @@ spec:
selector:
matchLabels:
{{- include "tempo-vulture.selectorLabels" $ | nindent 6 }}
endpoints:
podMetricsEndpoints:
- port: prom-metrics
{{- with .interval }}
interval: {{ . }}
Expand Down
19 changes: 0 additions & 19 deletions charts/tempo-vulture/templates/service.yaml

This file was deleted.

18 changes: 9 additions & 9 deletions charts/tempo-vulture/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,21 @@ serviceAccount:
# -- Annotations for the service account
annotations: {}

# ServiceMonitor configuration
serviceMonitor:
# -- If enabled, ServiceMonitor resources for Prometheus Operator are created
# PodMonitor configuration
podMonitor:
# -- If enabled, PodMonitor resources for Prometheus Operator are created
enabled: false
# -- Alternative namespace for ServiceMonitor resources
# -- Alternative namespace for PodMonitor resources
namespace: null
# -- Namespace selector for ServiceMonitor resources
# -- Namespace selector for PodMonitor resources
namespaceSelector: {}
# -- ServiceMonitor annotations
# -- PodMonitor annotations
annotations: {}
# -- Additional ServiceMonitor labels
# -- Additional PodMonitor labels
labels: {}
# -- ServiceMonitor scrape interval
# -- PodMonitor scrape interval
interval: null
# -- ServiceMonitor scrape timeout in Go duration format (e.g. 15s)
# -- PodMonitor scrape timeout in Go duration format (e.g. 15s)
scrapeTimeout: null

tempoAddress:
Expand Down

0 comments on commit 44fa37d

Please sign in to comment.