plugin.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {
  2. "type": "datasource",
  3. "name": "Azure Monitor",
  4. "id": "grafana-azure-monitor-datasource",
  5. "info": {
  6. "description": "Grafana data source for Azure Monitor/Application Insights",
  7. "author": {
  8. "name": "Grafana Labs",
  9. "url": "https://grafana.com"
  10. },
  11. "keywords": ["azure", "monitor", "Application Insights", "Log Analytics", "App Insights"],
  12. "logos": {
  13. "small": "img/logo.jpg",
  14. "large": "img/logo.jpg"
  15. },
  16. "links": [
  17. { "name": "Project site", "url": "https://github.com/grafana/azure-monitor-datasource" },
  18. { "name": "Apache License", "url": "https://github.com/grafana/azure-monitor-datasource/blob/master/LICENSE" }
  19. ],
  20. "screenshots": [
  21. { "name": "Azure Contoso Loans", "path": "img/contoso_loans_grafana_dashboard.png" },
  22. { "name": "Azure Monitor Network", "path": "img/azure_monitor_network.png" },
  23. { "name": "Azure Monitor CPU", "path": "img/azure_monitor_cpu.png" }
  24. ],
  25. "version": "0.3.0",
  26. "updated": "2018-12-06"
  27. },
  28. "routes": [
  29. {
  30. "path": "azuremonitor",
  31. "method": "GET",
  32. "url": "https://management.azure.com",
  33. "tokenAuth": {
  34. "url": "https://login.microsoftonline.com/{{.JsonData.tenantId}}/oauth2/token",
  35. "params": {
  36. "grant_type": "client_credentials",
  37. "client_id": "{{.JsonData.clientId}}",
  38. "client_secret": "{{.SecureJsonData.clientSecret}}",
  39. "resource": "https://management.azure.com/"
  40. }
  41. },
  42. "headers": [{ "name": "x-ms-app", "content": "Grafana" }]
  43. },
  44. {
  45. "path": "govazuremonitor",
  46. "method": "GET",
  47. "url": "https://management.usgovcloudapi.net",
  48. "tokenAuth": {
  49. "url": "https://login.microsoftonline.us/{{.JsonData.tenantId}}/oauth2/token",
  50. "params": {
  51. "grant_type": "client_credentials",
  52. "client_id": "{{.JsonData.clientId}}",
  53. "client_secret": "{{.SecureJsonData.clientSecret}}",
  54. "resource": "https://management.usgovcloudapi.net/"
  55. }
  56. },
  57. "headers": [{ "name": "x-ms-app", "content": "Grafana" }]
  58. },
  59. {
  60. "path": "germanyazuremonitor",
  61. "method": "GET",
  62. "url": "https://management.microsoftazure.de",
  63. "tokenAuth": {
  64. "url": "https://login.microsoftonline.de/{{.JsonData.tenantId}}/oauth2/token",
  65. "params": {
  66. "grant_type": "client_credentials",
  67. "client_id": "{{.JsonData.clientId}}",
  68. "client_secret": "{{.SecureJsonData.clientSecret}}",
  69. "resource": "https://management.microsoftazure.de/"
  70. }
  71. },
  72. "headers": [{ "name": "x-ms-app", "content": "Grafana" }]
  73. },
  74. {
  75. "path": "chinaazuremonitor",
  76. "method": "GET",
  77. "url": "https://management.chinacloudapi.cn",
  78. "tokenAuth": {
  79. "url": "https://login.chinacloudapi.cn/{{.JsonData.tenantId}}/oauth2/token",
  80. "params": {
  81. "grant_type": "client_credentials",
  82. "client_id": "{{.JsonData.clientId}}",
  83. "client_secret": "{{.SecureJsonData.clientSecret}}",
  84. "resource": "https://management.chinacloudapi.cn/"
  85. }
  86. },
  87. "headers": [{ "name": "x-ms-app", "content": "Grafana" }]
  88. },
  89. {
  90. "path": "appinsights",
  91. "method": "GET",
  92. "url": "https://api.applicationinsights.io",
  93. "headers": [
  94. { "name": "X-API-Key", "content": "{{.SecureJsonData.appInsightsApiKey}}" },
  95. { "name": "x-ms-app", "content": "Grafana" }
  96. ]
  97. },
  98. {
  99. "path": "workspacesloganalytics",
  100. "method": "GET",
  101. "url": "https://management.azure.com",
  102. "tokenAuth": {
  103. "url": "https://login.microsoftonline.com/{{.JsonData.logAnalyticsTenantId}}/oauth2/token",
  104. "params": {
  105. "grant_type": "client_credentials",
  106. "client_id": "{{.JsonData.logAnalyticsClientId}}",
  107. "client_secret": "{{.SecureJsonData.logAnalyticsClientSecret}}",
  108. "resource": "https://management.azure.com/"
  109. }
  110. },
  111. "headers": [{ "name": "x-ms-app", "content": "Grafana" }]
  112. },
  113. {
  114. "path": "loganalyticsazure",
  115. "method": "GET",
  116. "url": "https://api.loganalytics.io/v1/workspaces",
  117. "tokenAuth": {
  118. "url": "https://login.microsoftonline.com/{{.JsonData.logAnalyticsTenantId}}/oauth2/token",
  119. "params": {
  120. "grant_type": "client_credentials",
  121. "client_id": "{{.JsonData.logAnalyticsClientId}}",
  122. "client_secret": "{{.SecureJsonData.logAnalyticsClientSecret}}",
  123. "resource": "https://api.loganalytics.io"
  124. }
  125. },
  126. "headers": [
  127. { "name": "x-ms-app", "content": "Grafana" },
  128. { "name": "Cache-Control", "content": "public, max-age=60" },
  129. { "name": "Accept-Encoding", "content": "gzip" }
  130. ]
  131. },
  132. {
  133. "path": "sameasloganalyticsazure",
  134. "method": "GET",
  135. "url": "https://api.loganalytics.io/v1/workspaces",
  136. "tokenAuth": {
  137. "url": "https://login.microsoftonline.com/{{.JsonData.tenantId}}/oauth2/token",
  138. "params": {
  139. "grant_type": "client_credentials",
  140. "client_id": "{{.JsonData.clientId}}",
  141. "client_secret": "{{.SecureJsonData.clientSecret}}",
  142. "resource": "https://api.loganalytics.io"
  143. }
  144. },
  145. "headers": [
  146. { "name": "x-ms-app", "content": "Grafana" },
  147. { "name": "Cache-Control", "content": "public, max-age=60" },
  148. { "name": "Accept-Encoding", "content": "gzip" }
  149. ]
  150. }
  151. ],
  152. "dependencies": {
  153. "grafanaVersion": "5.2.x",
  154. "plugins": []
  155. },
  156. "metrics": true,
  157. "annotations": true,
  158. "alerting": true
  159. }