mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Add reqAction to Prometheus routes (#87208)
Add reqAction to Prometheus routes This should allow provisioned service accounts that do not have a role to use the /proxy endpoints for Prometheus. This is desired for some integrations that need to query for labels or other data not part of /ds/query.
This commit is contained in:
parent
2924b37628
commit
d6c93c12bf
@ -7,52 +7,62 @@
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "api/v1/query",
|
||||
"reqRole": "Viewer"
|
||||
"reqRole": "Viewer",
|
||||
"reqAction": "datasources:query"
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "api/v1/query_range",
|
||||
"reqRole": "Viewer"
|
||||
"reqRole": "Viewer",
|
||||
"reqAction": "datasources:query"
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "api/v1/series",
|
||||
"reqRole": "Viewer"
|
||||
"reqRole": "Viewer",
|
||||
"reqAction": "datasources:query"
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "api/v1/labels",
|
||||
"reqRole": "Viewer"
|
||||
"reqRole": "Viewer",
|
||||
"reqAction": "datasources:query"
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "api/v1/query_exemplars",
|
||||
"reqRole": "Viewer"
|
||||
"reqRole": "Viewer",
|
||||
"reqAction": "datasources:query"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/rules",
|
||||
"reqRole": "Viewer"
|
||||
"reqRole": "Viewer",
|
||||
"reqAction": "datasources:query"
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/rules",
|
||||
"reqRole": "Editor"
|
||||
"reqRole": "Editor",
|
||||
"reqAction": "datasources:edit"
|
||||
},
|
||||
{
|
||||
"method": "DELETE",
|
||||
"path": "/rules",
|
||||
"reqRole": "Editor"
|
||||
"reqRole": "Editor",
|
||||
"reqAction": "datasources:edit"
|
||||
},
|
||||
{
|
||||
"method": "DELETE",
|
||||
"path": "/config/v1/rules",
|
||||
"reqRole": "Editor"
|
||||
"reqRole": "Editor",
|
||||
"reqAction": "datasources:edit"
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/config/v1/rules",
|
||||
"reqRole": "Editor"
|
||||
"reqRole": "Editor",
|
||||
"reqAction": "datasources:edit"
|
||||
}
|
||||
],
|
||||
"includes": [
|
||||
|
Loading…
Reference in New Issue
Block a user