-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
407 additions
and
23 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.helmignore | ||
/logos | ||
/Makefile |
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,8 @@ | ||
apiVersion: v2 | ||
name: grafana-dashboards | ||
description: Grafana dashboards | ||
icon: /logos/grafana-dashboards.svg | ||
|
||
type: application | ||
version: 0.1.0 | ||
appVersion: "0.1.0" |
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 @@ | ||
include ../../../scripts/package.mk | ||
|
||
generate: | ||
readme-generator -v values.yaml -s values.schema.json -r README.md |
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,11 @@ | ||
# Grafana dashboards | ||
|
||
## Parameters | ||
|
||
### Dashboard parameters | ||
|
||
| Name | Description | Value | | ||
| ------------------ | ------------------------------------ | ----- | | ||
| `urlDashboards` | List of dashboards with URLs. | `[]` | | ||
| `jsonDashboards` | List of dashboards with inline JSON. | `[]` | | ||
| `instanceSelector` | Selector to match Grafana instances. | `{}` | |
269 changes: 269 additions & 0 deletions
269
packages/apps/grafana-dashboards/logos/grafana-dashboards.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions
41
packages/apps/grafana-dashboards/templates/grafana-dashboards.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,41 @@ | ||
|
||
{{- $myNS := lookup "v1" "Namespace" "" .Release.Namespace }} | ||
|
||
|
||
{{- range .Values.urlDashboards }} | ||
--- | ||
apiVersion: grafana.integreatly.org/v1beta1 | ||
kind: GrafanaDashboard | ||
metadata: | ||
name: {{ .name }} | ||
spec: | ||
{{- if .Values.instanceSelector | not }} | ||
instanceSelector: | ||
matchLabels: | ||
dashboards: {{ $myNS }} | ||
{{- else }} | ||
instanceSelector: | ||
{{ $instanceSelector | indent 4 }} | ||
{{- end }} | ||
url: {{ .link }} | ||
{{- end }} | ||
|
||
{{- range .Values.jsonDashboards }} | ||
--- | ||
apiVersion: grafana.integreatly.org/v1beta1 | ||
kind: GrafanaDashboard | ||
metadata: | ||
name: {{ .name }} | ||
spec: | ||
{{- if .Values.instanceSelector | not }} | ||
instanceSelector: | ||
matchLabels: | ||
dashboards: {{ $myNS }} | ||
{{- else }} | ||
instanceSelector: | ||
{{ $instanceSelector | indent 4 }} | ||
{{- end }} | ||
resyncPeriod: "30s" | ||
json: | | ||
{{ .json | indent 4 }} | ||
{{- end }} |
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 @@ | ||
{ | ||
"title": "Chart Values", | ||
"type": "object", | ||
"properties": { | ||
"urlDashboards": { | ||
"type": "array", | ||
"description": "List of dashboards with URLs.", | ||
"default": [], | ||
"items": {} | ||
}, | ||
"jsonDashboards": { | ||
"type": "array", | ||
"description": "List of dashboards with inline JSON.", | ||
"default": [], | ||
"items": {} | ||
}, | ||
"instanceSelector": { | ||
"type": "object", | ||
"description": "Selector to match Grafana instances.", | ||
"default": {} | ||
} | ||
} | ||
} |
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,38 @@ | ||
## @section Dashboard parameters | ||
|
||
## @param urlDashboards List of dashboards with URLs. | ||
## Each entry must include: | ||
## - name: The name of the dashboard | ||
## - link: The URL of the dashboard JSON | ||
urlDashboards: [] # @param urlDashboards List of dashboards to load from URLs | ||
|
||
## Example: | ||
## urlDashboards: | ||
## - name: "grafanadashboard-from-url" | ||
## link: "https://raw.githubusercontent.com/grafana-operator/grafana-operator/master/examples/dashboard_from_url/dashboard.json" | ||
|
||
## @param jsonDashboards List of dashboards with inline JSON. | ||
## Each entry must include: | ||
## - name: The name of the dashboard | ||
## - json: The JSON content of the dashboard | ||
jsonDashboards: [] # @param jsonDashboards List of dashboards to load from inline JSON | ||
|
||
## Example: | ||
## jsonDashboards: | ||
## - name: "grafanadashboard-sample" | ||
## json: | | ||
## { | ||
## "panels": [ | ||
## { "type": "graph", "title": "Sample Panel" } | ||
## ] | ||
## } | ||
|
||
|
||
## @param instanceSelector Selector to match Grafana instances. | ||
## Leave empty to skip instance selection. | ||
instanceSelector: {} # @param instanceSelector Selector for matching Grafana instances | ||
|
||
## Example: | ||
## instanceSelector: | ||
## matchLabels: | ||
## dashboards: "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 |
---|---|---|
|
@@ -4,4 +4,4 @@ description: Separated tenant namespace | |
icon: /logos/tenant.svg | ||
|
||
type: application | ||
version: 1.6.5 | ||
version: 1.6.6 |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cozystack: | ||
image: ghcr.io/aenix-io/cozystack/cozystack:v0.21.1@sha256:05a1b10700b387594887785e49e496da13d83abb9dc6415195b70ed9898e9d39 | ||
image: kklinch0/cozystack:0.20.888@sha256:ecf3930271c5ac824dc6ceb6174f1368ee824e22652026e579f5a60fd910f4ac |
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