Comments (2)
If you deploy a dashboard like this:
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: testDashboard
namespace: test
spec:
allowCrossNamespaceImport: true
folder: testFolder
instanceSelector:
matchExpressions:
- key: grafanaStack
operator: In
values:
- myStack
json: |-
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"links": [],
"panels": [],
"schemaVersion": 39,
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "New dashboard",
"version": 0,
"weekStart": ""
}
and then you deploy a folder like this:
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaFolder
metadata:
name: testFolder
namespace: test
spec:
allowCrossNamespaceImport: true
instanceSelector:
matchLabels:
grafanaStack: myStack
resyncPeriod: 5m
title: Test Folder
You should end up in the same scenario we are.
Check the Grafana Cloud URL of the folder and the GrafanaFolder UID, you'll see they don't match.
In out case, for instance:
https://domain.grafana.net/dashboards/f/7b9d006d-22ad-4593-b72e-xxx/
VS
uid: f2ebc89d-c697-4ca3-8f8e-xxx
If now you try to deploy a GrafanaAlertRule with folderRef: testFolder
it will report folder UID not found.
This issue links to this and asks for a fix either in the GrafanaFolder handling of already created folders or GrafanaDashboard to have folderRef instead, or in addition to, folder.
from grafana-operator.
This should be resolved by #1584. I'll close this as a duplicate of #1578. Feel free to reopen the other issue if this continues to be an issue after the next release
from grafana-operator.
Related Issues (20)
- [Bug] Unable to deploy Grafana with Persistent Volume on OpenShift 4.15 HOT 4
- How to enable Grafana HTTPS in V5 on Openshift.
- Specify additional headers for externally managed Grafana HOT 1
- [Bug] Alert Rule Group failed to be applied for 1 out of 1 instances folder with uid not found HOT 9
- Mandatory status.conditions breaks operator upgrade (5.9.2 -> 5.9.10) HOT 1
- Default operator (controller) memory resources are too low HOT 11
- [Bug] Alert rule groups block deletion of folders when removed at the same time
- [Bug] Operator assigns datasource to wrong organization HOT 6
- New `grafanafolder#spec.uid` property for stable UIDs HOT 4
- Add annotations to crd HOT 2
- [Bug] growth in alert_rule_version table HOT 4
- helm: Unable to set addional pod labels HOT 1
- [Bug] unable to create notification policy with `matchers` set HOT 2
- [Bug] disableResolveMessage not being applied to contact point
- [Bug] Folder pointed by a GrafanaDashboard using folderUID is deleted even if the folder is not handled by the operator HOT 1
- Permits to target a grafanaFolder in another namespace into the GrafanaDashboard CR HOT 1
- [Bug] Operator randomly tries to scale up and down Grafana operated service HOT 3
- [Bug] GrafanaDatasource not visible in Grafana HOT 2
- Add option for json structured logging output for grafana-operator
- [Bug] GF_PATHS_PLUGINS content removed by operator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-operator.