plugin.json 1.5 KB

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