plugin.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "name": "Stackdriver",
  3. "type": "datasource",
  4. "id": "stackdriver",
  5. "metrics": true,
  6. "alerting": true,
  7. "annotations": true,
  8. "tables": false,
  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.svg",
  18. "large": "img/stackdriver_logo.svg"
  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": ["https://www.googleapis.com/auth/monitoring.read"],
  32. "params": {
  33. "token_uri": "{{.JsonData.tokenUri}}",
  34. "client_email": "{{.JsonData.clientEmail}}",
  35. "private_key": "{{.SecureJsonData.privateKey}}"
  36. }
  37. }
  38. },
  39. {
  40. "path": "cloudresourcemanager",
  41. "method": "GET",
  42. "url": "https://cloudresourcemanager.googleapis.com",
  43. "jwtTokenAuth": {
  44. "scopes": ["https://www.googleapis.com/auth/cloudplatformprojects.readonly"],
  45. "params": {
  46. "token_uri": "{{.JsonData.tokenUri}}",
  47. "client_email": "{{.JsonData.clientEmail}}",
  48. "private_key": "{{.SecureJsonData.privateKey}}"
  49. }
  50. }
  51. }
  52. ]
  53. }