-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(canary): refactor to split out dashboards and metrics
Unfortunately Components don't compose as well as I'd like so we're unable to have features/canary and features/operations inheirt from the same Prometheus component. Hoping that some of this can be "linted" with conftest and at least point to potential issues w/ configuration
- Loading branch information
1 parent
b8552bf
commit 86d081a
Showing
7 changed files
with
41 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,8 @@ | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
resources: | ||
- prometheus-grafana.yml | ||
|
||
patchesStrategicMerge: | ||
- spinnaker-config.yml | ||
|
||
configMapGenerator: | ||
- name: grafana-dashboard-spinnaker | ||
files: | ||
- spinnaker-dashboards.json | ||
|
||
secretGenerator: | ||
- name: prometheus-secrets | ||
literals: | ||
- grafanaDefaultUser=DefaultUser1! | ||
- grafanaDefaultPassword=DefaultPass1! | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true | ||
|
||
transformers: | ||
- tfr-namespace-roles.yml |
12 changes: 12 additions & 0 deletions
12
features/operations/observability/prometheus/kustomization.yml
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 @@ | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
patchesStrategicMerge: | ||
- spinnaker-config.yml | ||
|
||
configMapGenerator: | ||
- name: grafana-dashboard-spinnaker | ||
files: | ||
- spinnaker-dashboards.json | ||
options: | ||
disableNameSuffixHash: true |
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
File renamed without changes.
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,4 @@ | ||
# third-party | ||
|
||
This directory contains components that build or configure third-party tools | ||
that interact with Spinnaker. |
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,13 @@ | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
resources: | ||
- prometheus-grafana.yml | ||
|
||
secretGenerator: | ||
- name: prometheus-secrets | ||
literals: | ||
- grafanaDefaultUser=DefaultUser1! | ||
- grafanaDefaultPassword=DefaultPass1! | ||
options: | ||
disableNameSuffixHash: true |
File renamed without changes.