Comments (7)
Hi again,
I tested on PUT operation and I get the error I mentioned, the error only happens when there is a rule already created without the header and we try to update it.
All right. I see, that makes sense. With the new improvements from #53, you will be able to control sending the header on your own behalf, by using the disable_provenance
argument on the methods create_alertrule
and update_alertrule
.
The improvement has been released with grafana-client 3.4.0. Feedback is very much appreciated.
With kind regards,
Andreas.
from grafana-client.
Hi Johan Sebastian,
that's a very good suggestion, thank you. Are you sure the header should not be attached to the PUT request as well?
Citing the post...
We are enabling a workaround within the Provisioning API to do it by adding the
x-disable-provenance
header to the following requests:POST /api/v1/provisioning/alert-rules PUT /api/v1/provisioning/alert-rules/{UID}
... makes me think the header should be attached to both types of requests, no?
With kind regards,
Andreas.
from grafana-client.
I've just submitted #53, following your suggestion. Do you agree with the implementation?
from grafana-client.
Hi @amotl,
Sorry for the delay, I tested on PUT operation and I get the error I mentioned, the error only happens when there is a rule already created without the header and we try to update it.
This is the only consideration!
from grafana-client.
Hi @jyepesr1,
have you been able to test the feature successfully?
With kind regards,
Andreas.
from grafana-client.
Hi @amotl ,
I was able to test it out successfully. It works like a charm!
Thanks again
from grafana-client.
Excellent, thank you for reporting back, and for your suggestion in the first place. Cheers, Andreas.
from grafana-client.
Related Issues (20)
- Improve test suite by adding integration tests with Grafana HOT 1
- Field `database` in data source model will be deprecated HOT 1
- grafana_client.client.GrafanaClientError: Client Error 404: Not found HOT 8
- Setting timeout explicitly HOT 7
- Grafana Smart Query Prometheus missing key HOT 6
- Need support for following missing api HOT 4
- Dashboard.get_dashboard_by_name seems broken HOT 5
- Plugins: Add more filtering capabilities to `list()` method HOT 1
- Cannot update datasource key with newlines, e.g. GCP Monitoring HOT 1
- distutils.version.LooseVersion is deprecated HOT 3
- Feature: Organisation-awareness HOT 7
- feature request: async api HOT 7
- Service Account functionality HOT 7
- New version of Grafana API create-annotation adds dashboardUID field HOT 2
- Grafana 10.2.3: breaking changes HOT 5
- Missing parentUid for create_folder HOT 6
- User Teams API endpoint missing HOT 3
- Get all folders endpoint is incorrect HOT 1
- Dashboard Search API endpoint is incorrect HOT 2
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-client.