-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/sebastian/prod-2981-set-up-catal…
…og-pipeline' into sebastian/prod-2981-set-up-catalog-pipeline
- Loading branch information
Showing
5 changed files
with
104 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Plural Grafana | ||
|
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,23 @@ | ||
ingress: | ||
enabled: true | ||
annotations: | ||
cert-manager.io/cluster-issuer: plural | ||
ingressClassName: nginx | ||
|
||
hosts: | ||
- {{ context.hostname }} | ||
|
||
tls: | ||
- hosts: | ||
- {{ context.hostname }} | ||
secretName: monitoring-tls | ||
|
||
persistence: | ||
enabled: true | ||
|
||
plugins: | ||
- https://github.com/VictoriaMetrics/victoriametrics-datasource/releases/download/v0.8.2/victoriametrics-datasource-v0.8.2.zip;victoriametrics-datasource | ||
|
||
grafana.ini: | ||
plugins: | ||
allow_loading_unsigned_plugins: victoriametrics-datasource |
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,26 @@ | ||
apiVersion: deployments.plural.sh/v1alpha1 | ||
kind: ServiceDeployment | ||
metadata: | ||
name: grafana-{{ context.cluster }} | ||
namespace: apps | ||
spec: | ||
namespace: grafana | ||
git: | ||
folder: helm/grafana/{{ context.cluster }} | ||
ref: main | ||
repositoryRef: | ||
kind: GitRepository | ||
name: infra | ||
namespace: infra | ||
helm: | ||
version: "8.6.x" | ||
chart: grafana | ||
url: https://grafana.github.io/helm-charts | ||
valuesFiles: | ||
- grafana.yaml.liquid | ||
configuration: | ||
cluster: {{ context.cluster }} | ||
clusterRef: | ||
kind: Cluster | ||
name: mgmt | ||
namespace: infra |
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,40 @@ | ||
apiVersion: deployments.plural.sh/v1alpha1 | ||
kind: PrAutomation | ||
metadata: | ||
name: grafana | ||
spec: | ||
name: grafana | ||
icon: https://cdn.icon-icons.com/icons2/2699/PNG/512/grafana_logo_icon_171048.png | ||
documentation: | | ||
Sets up Grafana Open Observability Platform. | ||
creates: | ||
git: | ||
ref: sebastian/prod-2981-set-up-catalog-pipeline # TODO set to main | ||
folder: catalogs/devops/grafana | ||
templates: | ||
- source: README.md | ||
destination: documentation/grafana/README.md | ||
external: true | ||
- source: grafana.yaml.liquid | ||
destination: "helm/grafana/{{ context.cluster }}/grafana.yaml.liquid" | ||
external: true | ||
- source: servicedeployment.yaml.liquid | ||
destination: "bootstrap/apps/grafana/{{ context.cluster }}/servicedeployment.yaml" | ||
external: true | ||
repositoryRef: | ||
name: scaffolds | ||
catalogRef: | ||
name: devops | ||
scmConnectionRef: | ||
name: plural # you'll need to add this ScmConnection manually before this is functional | ||
title: "Grafana setup ({{ context.cluster }})" | ||
message: | | ||
Sets up Grafana on {{ context.cluster }} cluster. | ||
identifier: pluralsh/plrl-dev-aws # FIXME | ||
configuration: | ||
- name: cluster | ||
type: STRING | ||
documentation: the cluster you want to deploy to | ||
- name: hostname | ||
type: STRING | ||
documentation: the hostname of the grafana instance |