Skip to content

Commit ef97494

Browse files
committed
Add graphite dependency
1 parent bae7fee commit ef97494

File tree

19 files changed

+1509
-8
lines changed

19 files changed

+1509
-8
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
run: |
2727
helm repo add stable https://charts.helm.sh/stable
2828
helm repo add influxdb2 https://helm.influxdata.com/
29-
helm repo add kiwigrid https://kiwigrid.github.io
3029
helm repo add bitnami https://charts.bitnami.com/bitnami
3130
3231
- name: Set up chart-testing

charts/flagsmith/Chart.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
repository: https://helm.influxdata.com/
77
version: 2.1.1
88
- name: graphite
9-
repository: https://kiwigrid.github.io
10-
version: 0.7.3
11-
digest: sha256:6ed1b4fab608bb1039a42040c445cfdf6a74a32ac80d4b1137f420e86f08e481
12-
generated: "2023-06-20T13:58:28.286957382+01:00"
9+
repository: file://../graphite
10+
version: 2.0.0
11+
digest: sha256:a978f9f6b4c171ddc773f38a1c83ea50198679825b6e27d3ba06caf7b4d561c1
12+
generated: "2025-11-14T15:58:27.463499Z"

charts/flagsmith/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
version: 2.1.1
1616
condition: influxdb2.enabled
1717
- name: graphite
18-
repository: https://kiwigrid.github.io
19-
version: 0.7.3
18+
repository: file://../graphite
19+
version: 2.0.0
2020
condition: graphite.enabled
2121
icon: https://docs.flagsmith.com/img/square-icon.png

charts/graphite/.helmignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj

charts/graphite/Chart.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v2
2+
version: 2.0.0
3+
appVersion: "1.1.10-3"
4+
description: Graphite metrics server
5+
name: graphite
6+
home: https://graphiteapp.org/

charts/graphite/README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Graphite
2+
3+
[Graphite](https://graphiteapp.org/) is a monitoring tool.
4+
5+
This chart was rescued from [here](https://github.com/kiwigrid/helm-charts) which is no longer hosted or supported.
6+
7+
## Configuration
8+
9+
The following table lists the configurable parameters of the Graphite chart and their default values.
10+
11+
| Parameter | Description | Default |
12+
|--------------------------------|----------------------------------------------|----------------------------------------|
13+
| `image.repository` | Docker image repo | `graphiteapp/graphite-statsd` |
14+
| `image.tag` | Docker image | `1.1.5-4` |
15+
| `image.pullPolicy` | Docker image pull policy | `IfNotPresent` |
16+
| `service.type` | Service type | `ClusterIP` |
17+
| `service.port` | Service port of Graphite UI | `8080` |
18+
| `service.annotations` | Service annotations | `{}` |
19+
| `service.labels` | Service labels | `{}` |
20+
| `persistence.enabled` | Enable config persistence using PVC | `true` |
21+
| `persistence.storageClass` | PVC Storage Class for config volume | `nil` |
22+
| `persistence.existingClaim` | Name of an existing PVC to use for config | `nil` |
23+
| `persistence.accessMode` | PVC Access Mode for config volume | `ReadWriteOnce` |
24+
| `persistence.size` | PVC Storage Request for config volume | `10Gi` |
25+
| `resources` | Resource limits for Graphite pod | `{}` |
26+
| `ingress.enabled` | Ingress enabled | `false` |
27+
| `ingress.annotations` | Ingress annotations | `{}` |
28+
| `ingress.path` | Ingress path | `/` |
29+
| `ingress.hosts` | Ingress hosts | `[]` |
30+
| `ingress.tls` | Ingress TLS | `[]` |
31+
| `resources` | Resources | `{}` |
32+
| `nodeSelector` | NodeSelector | `{}` |
33+
| `tolerations` | Tolerations | `[]` |
34+
| `affinity` | Affinity | `{}` |
35+
| `env` | Environment Values Passed to Pod | `{}` |
36+
| `timeZone` | Timezone | `Etc/UTC` |
37+
| `initContainers` | Init Containers | `[]` |
38+
| `configMaps` | Graphite Config files | see values.yaml |
39+
| `statsdConfigMaps` | StatsD Config files | see values.yaml |
40+
| `statsd.interface` | StatsD server interface, `TCP` or `UDP` | `UDP` |
41+
| `configMaps` | Graphite Config files | see values.yaml |
42+
| `statsdConfigMaps` | StatsD Config files | see values.yaml |
43+
| `statsd.interface` | StatsD server interface, `TCP` or `UDP` | `UDP` |
44+
| `serviceAccount.accountName` | Define the service account name | `graphite` |
45+
| `serviceAccount.enabled`| Enable service account (Note: Service Account will only be automatically created if `serviceAccount.create` is not set. |`false`|
46+
| `serviceAccount.create`| create service account with the template |`false`|
47+
| `rbac.create`| Enable RBAC rules |`false`|
48+
| `psp.create`| Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1. |
49+
50+
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:
51+
52+
```bash
53+
$ helm install --name graphite --set ingress.enabled=false kiwigrid/graphite
54+
```
55+
56+
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart.
57+
58+
### Storage persistence
59+
60+
Graphite itself is a stateful application that stores all related data in its own database. Therefore it uses a PVC to store data.
61+
62+
### Help
63+
64+
For more information about Graphite visit the official [website](https://graphiteapp.org/) and the [docs](http://graphite.readthedocs.io/en/latest/).
65+
66+
To find infos about the Docker container visit [Github](https://github.com/graphite-project/docker-graphite-statsd) or [Dockerhub](https://hub.docker.com/r/graphiteapp/graphite-statsd/).
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
1. Get the application URL by running these commands:
2+
{{- if .Values.ingress.enabled }}
3+
{{- range .Values.ingress.hosts }}
4+
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }}
5+
{{- end }}
6+
{{- else if contains "NodePort" .Values.service.type }}
7+
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "graphite.fullname" . }})
8+
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
9+
echo http://$NODE_IP:$NODE_PORT
10+
{{- else if contains "LoadBalancer" .Values.service.type }}
11+
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
12+
You can watch the status of by running 'kubectl get svc -w {{ template "graphite.fullname" . }}'
13+
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "graphite.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
14+
echo http://$SERVICE_IP:{{ .Values.service.port }}
15+
{{- else if contains "ClusterIP" .Values.service.type }}
16+
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "graphite.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
17+
echo "Visit http://127.0.0.1:8080 to use your application"
18+
kubectl port-forward $POD_NAME 8080:80
19+
{{- end }}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
{{/*
3+
Expand the name of the chart.
4+
*/}}
5+
{{- define "graphite.name" -}}
6+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
7+
{{- end -}}
8+
9+
{{/*
10+
Create a default fully qualified app name.
11+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
12+
If release name contains chart name it will be used as a full name.
13+
*/}}
14+
{{- define "graphite.fullname" -}}
15+
{{- if .Values.fullnameOverride -}}
16+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
17+
{{- else -}}
18+
{{- $name := default .Chart.Name .Values.nameOverride -}}
19+
{{- if contains $name .Release.Name -}}
20+
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
21+
{{- else -}}
22+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
23+
{{- end -}}
24+
{{- end -}}
25+
{{- end -}}
26+
27+
{{/*
28+
Create chart name and version as used by the chart label.
29+
*/}}
30+
{{- define "graphite.chart" -}}
31+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
32+
{{- end -}}
33+
34+
{{/*
35+
Define the service Account name
36+
*/}}
37+
{{- define "graphite.serviceAccount.name" -}}
38+
{{ default "graphite" .Values.serviceAccount.accountName }}
39+
{{- end -}}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: {{ template "graphite.fullname" . }}-statsd-configmap
5+
labels:
6+
app.kubernetes.io/name: {{ include "graphite.name" . }}
7+
helm.sh/chart: {{ include "graphite.chart" . }}
8+
app.kubernetes.io/instance: {{ .Release.Name }}
9+
app.kubernetes.io/managed-by: {{ .Release.Service }}
10+
data:
11+
{{- range $key, $value := .Values.statsdConfigMaps }}
12+
{{ $key }}: |-
13+
{{ $value | indent 4 }}
14+
{{- end }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: {{ template "graphite.fullname" . }}-configmap
5+
labels:
6+
app: {{ template "graphite.name" . }}
7+
chart: {{ template "graphite.chart" . }}
8+
release: {{ .Release.Name }}
9+
heritage: {{ .Release.Service }}
10+
data:
11+
{{- range $key, $value := .Values.configMaps }}
12+
{{ $key }}: |-
13+
{{ $value | indent 4 }}
14+
{{- end }}

0 commit comments

Comments
 (0)