plugin.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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": [
  39. "https://www.googleapis.com/auth/cloudplatformprojects.readonly"
  40. ],
  41. "params": {
  42. "token_uri": "{{.JsonData.tokenUri}}",
  43. "client_email": "{{.JsonData.clientEmail}}",
  44. "private_key": "{{.SecureJsonData.privateKey}}"
  45. }
  46. }
  47. }
  48. ]
  49. }