mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00

* Update backend * Update frontend * Keep old plugin id * Update docs * Place doc images to a new directory * Legacy support for stackdriver-auto alignment * Consistent plugin name * Apply suggestions from code review Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> * Update docs * Update public/app/plugins/datasource/cloud-monitoring/README.md Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> * Add reference to the data source formerly being named Stackdriver * Update pkg/models/datasource.go Co-authored-by: Carl Bergquist <carl@grafana.com> * Fix gofmt Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Co-authored-by: Carl Bergquist <carl@grafana.com>
56 lines
1.4 KiB
JSON
56 lines
1.4 KiB
JSON
{
|
|
"name": "Google Cloud Monitoring",
|
|
"type": "datasource",
|
|
"id": "stackdriver",
|
|
"category": "cloud",
|
|
|
|
"metrics": true,
|
|
"alerting": true,
|
|
"annotations": true,
|
|
"queryOptions": {
|
|
"maxDataPoints": true,
|
|
"cacheTimeout": true
|
|
},
|
|
|
|
"info": {
|
|
"description": "Data source for Google's monitoring service (formerly named Stackdriver)",
|
|
"version": "1.0.0",
|
|
"logos": {
|
|
"small": "img/cloud_monitoring_logo.svg",
|
|
"large": "img/cloud_monitoring_logo.svg"
|
|
},
|
|
"author": {
|
|
"name": "Grafana Labs",
|
|
"url": "https://grafana.com"
|
|
}
|
|
},
|
|
"routes": [
|
|
{
|
|
"path": "cloudmonitoring",
|
|
"method": "GET",
|
|
"url": "https://content-monitoring.googleapis.com",
|
|
"jwtTokenAuth": {
|
|
"scopes": ["https://www.googleapis.com/auth/monitoring.read"],
|
|
"params": {
|
|
"token_uri": "{{.JsonData.tokenUri}}",
|
|
"client_email": "{{.JsonData.clientEmail}}",
|
|
"private_key": "{{.SecureJsonData.privateKey}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"path": "cloudresourcemanager",
|
|
"method": "GET",
|
|
"url": "https://cloudresourcemanager.googleapis.com",
|
|
"jwtTokenAuth": {
|
|
"scopes": ["https://www.googleapis.com/auth/cloudplatformprojects.readonly"],
|
|
"params": {
|
|
"token_uri": "{{.JsonData.tokenUri}}",
|
|
"client_email": "{{.JsonData.clientEmail}}",
|
|
"private_key": "{{.SecureJsonData.privateKey}}"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|