plugin.json 1.4 KB

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