plugin.json 1.3 KB

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