Skip to content

Commit

Permalink
feat: add grafana demo
Browse files Browse the repository at this point in the history
  • Loading branch information
secustor committed Aug 29, 2024
1 parent 8d9488f commit 542c2ad
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions demos/grafana/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dashboards:
default:
1860-node-exporter-full:
# renovate: depName="Node Exporter Full"
gnetId: 1860
revision: 31
datasource: Prometheus
15760-kubernetes-views-pods:
# renovate: depName="Kubernetes / Views / Pods"
gnetId: 15760
revision: 20
datasource: Prometheus
16 changes: 16 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,29 @@
"replacementName": "ghcr.io/renovatebot/renovate"
}
],
"customDatasources": {
"grafana-dashboards": {
"defaultRegistryUrlTemplate": "https://grafana.com/api/dashboards/{{packageName}}",
"format": "json",
"transformTemplates": [
"{\"releases\":[{\"version\": $string(revision)}]}"
]
}
},
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^README.md$"],
"matchStrings": ["(?<depName>[\\w/\\.]+):(?<currentValue>[^\\s]+)"],
"datasourceTemplate": "docker"
},
{
"customType": "regex",
"fileMatch": ["grafana/values\\.ya?ml$"],
"matchStrings": ["#\\s+renovate:\\s+depName=\"(?<depName>.*)\"\\n\\s+gnetId:\\s+(?<packageName>.*?)\\n\\s+revision:\\s+(?<currentValue>.*)"],
"versioningTemplate": "regex:^(?<major>\\d+)$",
"datasourceTemplate": "custom.grafana-dashboards"
},
{
"customType": "regex",
"fileMatch": ["(^|/)Dockerfile$"],
Expand Down

0 comments on commit 542c2ad

Please sign in to comment.