-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Observability - Helm chart releases (#63)
* Observability - new Otel and Grafana helm #61 * Observability Helm charts * GH worklow updates * Chart dependencies
- Loading branch information
Showing
59 changed files
with
4,159 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Main - Release Helm Charts - Observability | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
# Only run this when chart file is updated. | ||
- 'deployment/helm/edgeobservability/Chart.yaml' | ||
|
||
jobs: | ||
Release-Artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | ||
- name: Setup Helm | ||
uses: azure/setup-helm@v3.5 | ||
with: | ||
version: v3.9.2 | ||
|
||
- name: Add Helm chart dependencies | ||
run: | | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
helm repo add grafana https://grafana.github.io/helm-charts | ||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@v1.1.0 | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
charts_dir: deployment/helm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Main - Release Helm Charts - OtelCollection | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
# Only run this when chart file is updated. | ||
- 'deployment/helm/otelcollection/Chart.yaml' | ||
|
||
jobs: | ||
Release-Artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | ||
- name: Setup Helm | ||
uses: azure/setup-helm@v3.5 | ||
with: | ||
version: v3.9.2 | ||
|
||
- name: Add Helm chart dependencies | ||
run: | | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
helm repo add grafana https://grafana.github.io/helm-charts | ||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@v1.1.0 | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
charts_dir: deployment/helm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
.tgz | ||
index.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
dependencies: | ||
- name: tempo | ||
repository: https://grafana.github.io/helm-charts | ||
version: 0.16.2 | ||
- name: loki | ||
repository: https://grafana.github.io/helm-charts | ||
version: 2.16.0 | ||
- name: prometheus | ||
repository: https://prometheus-community.github.io/helm-charts | ||
version: 24.3.0 | ||
digest: sha256:8dfb27c12c2c334b6ad22253880a1ecdd2f53b93c1afd5ce09b17adb1af2a49e | ||
generated: "2023-09-06T15:50:33.6038669+02:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v2 | ||
name: edgeobservability | ||
description: A Helm chart with observability components for Edge deployments. | ||
version: 0.1.0 | ||
|
||
dependencies: | ||
- name: tempo | ||
repository: https://grafana.github.io/helm-charts | ||
version: 0.16.2 | ||
condition: tempo.enabled | ||
|
||
- name: loki | ||
repository: https://grafana.github.io/helm-charts | ||
version: 2.16.0 | ||
condition: loki.enabled | ||
|
||
- name: prometheus | ||
repository: https://prometheus-community.github.io/helm-charts | ||
version: 24.3.0 | ||
condition: prometheus.enabled | ||
|
42 changes: 42 additions & 0 deletions
42
deployment/helm/edgeobservability/templates/grafana/_helpers.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "grafana.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "grafana.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "grafana.labels" -}} | ||
helm.sh/chart: {{ include "grafana.chart" . }} | ||
{{ include "grafana.selectorLabels" . }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "grafana.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "grafana.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "grafana.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create }} | ||
{{- default "grafana" .Values.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- end }} |
20 changes: 20 additions & 0 deletions
20
deployment/helm/edgeobservability/templates/grafana/config-dashboard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: grafana-config-dashboards | ||
labels: | ||
{{- include "grafana.labels" . | nindent 4 }} | ||
data: | ||
provider.yaml: | | ||
apiVersion: 1 | ||
providers: | ||
- allowUiUpdates: false | ||
disableDeletion: false | ||
folder: "" | ||
name: sidecarProvider | ||
options: | ||
foldersFromFilesStructure: false | ||
path: /tmp/dashboards | ||
orgId: 1 | ||
type: file | ||
updateIntervalSeconds: 30 |
Oops, something went wrong.