plugin.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "type": "datasource",
  3. "name": "Prometheus",
  4. "id": "prometheus",
  5. "category": "tsdb",
  6. "routes": [
  7. {
  8. "method": "POST",
  9. "path": "api/v1/query",
  10. "reqRole": "Viewer"
  11. },
  12. {
  13. "method": "POST",
  14. "path": "api/v1/query_range",
  15. "reqRole": "Viewer"
  16. },
  17. {
  18. "method": "POST",
  19. "path": "api/v1/series",
  20. "reqRole": "Viewer"
  21. },
  22. {
  23. "method": "POST",
  24. "path": "api/v1/labels",
  25. "reqRole": "Viewer"
  26. },
  27. {
  28. "method": "POST",
  29. "path": "api/v1/query_exemplars",
  30. "reqRole": "Viewer"
  31. },
  32. {
  33. "method": "GET",
  34. "path": "/rules",
  35. "reqRole": "Viewer"
  36. },
  37. {
  38. "method": "POST",
  39. "path": "/rules",
  40. "reqRole": "Editor"
  41. },
  42. {
  43. "method": "DELETE",
  44. "path": "/rules",
  45. "reqRole": "Editor"
  46. },
  47. {
  48. "method": "DELETE",
  49. "path": "/config/v1/rules",
  50. "reqRole": "Editor"
  51. },
  52. {
  53. "method": "POST",
  54. "path": "/config/v1/rules",
  55. "reqRole": "Editor"
  56. }
  57. ],
  58. "includes": [
  59. {
  60. "type": "dashboard",
  61. "name": "Prometheus Stats",
  62. "path": "dashboards/prometheus_stats.json"
  63. },
  64. {
  65. "type": "dashboard",
  66. "name": "Prometheus 2.0 Stats",
  67. "path": "dashboards/prometheus_2_stats.json"
  68. },
  69. {
  70. "type": "dashboard",
  71. "name": "Grafana Stats",
  72. "path": "dashboards/grafana_stats.json"
  73. }
  74. ],
  75. "metrics": true,
  76. "alerting": true,
  77. "annotations": true,
  78. "backend": true,
  79. "queryOptions": {
  80. "minInterval": true
  81. },
  82. "info": {
  83. "description": "Open source time series database & alerting",
  84. "author": {
  85. "name": "Grafana Labs",
  86. "url": "https://grafana.com"
  87. },
  88. "logos": {
  89. "small": "img/prometheus_logo.svg",
  90. "large": "img/prometheus_logo.svg"
  91. },
  92. "links": [
  93. {
  94. "name": "Learn more",
  95. "url": "https://prometheus.io/"
  96. }
  97. ]
  98. }
  99. }