plugin.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "name": "Stackdriver",
  3. "type": "datasource",
  4. "id": "stackdriver",
  5. "metrics": true,
  6. "alerting": true,
  7. "annotations": false,
  8. "queryOptions": {
  9. "maxDataPoints": true,
  10. "cacheTimeout": true
  11. },
  12. "info": {
  13. "description": "Google Stackdriver Datasource for Grafana",
  14. "version": "1.0.0",
  15. "logos": {
  16. "small": "img/stackdriver_logo.png",
  17. "large": "img/stackdriver_logo.png"
  18. },
  19. "author": {
  20. "name": "Grafana Project",
  21. "url": "https://grafana.com"
  22. }
  23. },
  24. "routes": [
  25. {
  26. "path": "stackdriver",
  27. "method": "GET",
  28. "url": "https://content-monitoring.googleapis.com",
  29. "jwtTokenAuth": {
  30. "scopes": [
  31. "https://www.googleapis.com/auth/monitoring.read",
  32. "https://www.googleapis.com/auth/cloudplatformprojects.readonly"
  33. ],
  34. "params": {
  35. "token_uri": "{{.JsonData.tokenUri}}",
  36. "client_email": "{{.JsonData.clientEmail}}",
  37. "private_key": "{{.SecureJsonData.privateKey}}"
  38. }
  39. }
  40. },
  41. {
  42. "path": "cloudresourcemanager",
  43. "method": "GET",
  44. "url": "https://cloudresourcemanager.googleapis.com",
  45. "jwtTokenAuth": {
  46. "scopes": ["https://www.googleapis.com/auth/cloudplatformprojects.readonly"],
  47. "params": {
  48. "token_uri": "{{.JsonData.tokenUri}}",
  49. "client_email": "{{.JsonData.clientEmail}}",
  50. "private_key": "{{.SecureJsonData.privateKey}}"
  51. }
  52. }
  53. }
  54. ]
  55. }