@grafana/plugin-ui 0.13.1 → 0.14.1-dsconfig.032cfc4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (440) hide show
  1. package/dist/cjs/index.cjs +2989 -372
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/index.d.cts +695 -40
  4. package/dist/cjs/schemas.cjs +25 -0
  5. package/dist/cjs/schemas.cjs.map +1 -0
  6. package/dist/cjs/schemas.d.cts +448 -0
  7. package/dist/cjs/test-utils.cjs +2 -2
  8. package/dist/cjs/test-utils.cjs.map +1 -1
  9. package/dist/cjs/test-utils.d.cts +24 -24
  10. package/dist/cjs/useDatasourceSchema-CxPGD2-b.js +17125 -0
  11. package/dist/cjs/useDatasourceSchema-CxPGD2-b.js.map +1 -0
  12. package/dist/esm/components/ConfigEditor/AdvancedSettings/AdvancedHttpSettings.js.map +1 -1
  13. package/dist/esm/components/ConfigEditor/Auth/Auth.js.map +1 -1
  14. package/dist/esm/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js +4 -4
  15. package/dist/esm/components/ConfigEditor/Auth/auth-method/AuthMethodSettings.js.map +1 -1
  16. package/dist/esm/components/ConfigEditor/Auth/auth-method/BasicAuth.js.map +1 -1
  17. package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeader.js.map +1 -1
  18. package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js +1 -1
  19. package/dist/esm/components/ConfigEditor/Auth/custom-headers/CustomHeaders.js.map +1 -1
  20. package/dist/esm/components/ConfigEditor/Auth/styles.js.map +1 -1
  21. package/dist/esm/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js +1 -1
  22. package/dist/esm/components/ConfigEditor/Auth/tls/SelfSignedCertificate.js.map +1 -1
  23. package/dist/esm/components/ConfigEditor/Auth/tls/SkipTLSVerification.js.map +1 -1
  24. package/dist/esm/components/ConfigEditor/Auth/tls/TLSClientAuth.js +3 -3
  25. package/dist/esm/components/ConfigEditor/Auth/tls/TLSClientAuth.js.map +1 -1
  26. package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettings.js.map +1 -1
  27. package/dist/esm/components/ConfigEditor/Auth/tls/TLSSettingsSection.js.map +1 -1
  28. package/dist/esm/components/ConfigEditor/Auth/types.js.map +1 -1
  29. package/dist/esm/components/ConfigEditor/Auth/utils.js +3 -3
  30. package/dist/esm/components/ConfigEditor/Auth/utils.js.map +1 -1
  31. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +2 -2
  32. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js.map +1 -1
  33. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSection.js.map +1 -1
  34. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigSubSection.js.map +1 -1
  35. package/dist/esm/components/ConfigEditor/ConfigSection/GenericConfigSection.js.map +1 -1
  36. package/dist/esm/components/ConfigEditor/Connection/ConnectionSettings.js +1 -1
  37. package/dist/esm/components/ConfigEditor/Connection/ConnectionSettings.js.map +1 -1
  38. package/dist/esm/components/ConfigEditor/DataSourceDescription.js.map +1 -1
  39. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceConfigWizard.js +234 -0
  40. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceConfigWizard.js.map +1 -0
  41. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceErrorBoundary.js +27 -0
  42. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceErrorBoundary.js.map +1 -0
  43. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SchemaField.js +71 -0
  44. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SchemaField.js.map +1 -0
  45. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SidebarNav.js +54 -0
  46. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SidebarNav.js.map +1 -0
  47. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/TabLayout.js +181 -0
  48. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/TabLayout.js.map +1 -0
  49. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/cel.js +75 -0
  50. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/cel.js.map +1 -0
  51. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/config.js +258 -0
  52. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/config.js.map +1 -0
  53. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/datasource.js +354 -0
  54. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/datasource.js.map +1 -0
  55. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/fieldUtils.js +138 -0
  56. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/fieldUtils.js.map +1 -0
  57. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/hooks/useDatasourceConfigForm.js +326 -0
  58. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/hooks/useDatasourceConfigForm.js.map +1 -0
  59. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/hooks/useHealthChecks.js +106 -0
  60. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/hooks/useHealthChecks.js.map +1 -0
  61. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/AuthorizationHeaderField.js +51 -0
  62. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/AuthorizationHeaderField.js.map +1 -0
  63. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/ComplexFieldNote.js +26 -0
  64. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/ComplexFieldNote.js.map +1 -0
  65. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/FileUploadField.js +106 -0
  66. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/FileUploadField.js.map +1 -0
  67. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/IndexedPairEditor.js +124 -0
  68. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/IndexedPairEditor.js.map +1 -0
  69. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/ObjectArrayEditor.js +190 -0
  70. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/ObjectArrayEditor.js.map +1 -0
  71. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/PdcFieldNote.js +31 -0
  72. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/PdcFieldNote.js.map +1 -0
  73. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/SecureFieldInput.js +59 -0
  74. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/SecureFieldInput.js.map +1 -0
  75. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/StringArrayInput.js +80 -0
  76. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/StringArrayInput.js.map +1 -0
  77. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/renderFieldInput.js +141 -0
  78. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/renderFieldInput.js.map +1 -0
  79. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/resolvePluginName.js +30 -0
  80. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/resolvePluginName.js.map +1 -0
  81. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/styles.js +360 -0
  82. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/styles.js.map +1 -0
  83. package/dist/esm/components/ConfigEditor/SecureSocksProxyToggle.js.map +1 -1
  84. package/dist/esm/components/CustomHeadersSettings/CustomHeadersSettings.js +11 -11
  85. package/dist/esm/components/CustomHeadersSettings/CustomHeadersSettings.js.map +1 -1
  86. package/dist/esm/components/DataLinks/DataLink.js +4 -4
  87. package/dist/esm/components/DataLinks/DataLink.js.map +1 -1
  88. package/dist/esm/components/DataLinks/DataLinks.js +3 -3
  89. package/dist/esm/components/DataLinks/DataLinks.js.map +1 -1
  90. package/dist/esm/components/DataSourcePicker/DataSourcePicker.js +8 -8
  91. package/dist/esm/components/DataSourcePicker/DataSourcePicker.js.map +1 -1
  92. package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
  93. package/dist/esm/components/DatePicker/styles.js +2 -2
  94. package/dist/esm/components/DatePicker/styles.js.map +1 -1
  95. package/dist/esm/components/DatePickerWithInput/DatePickerWithInput.js.map +1 -1
  96. package/dist/esm/components/DatePickerWithInput/styles.js +2 -2
  97. package/dist/esm/components/DatePickerWithInput/styles.js.map +1 -1
  98. package/dist/esm/components/DebounceInput/DebounceInput.js.map +1 -1
  99. package/dist/esm/components/Plugins/PluginSignatureBadge.js.map +1 -1
  100. package/dist/esm/components/QueryEditor/AccessoryButton.js.map +1 -1
  101. package/dist/esm/components/QueryEditor/CatalogSelector.js +1 -1
  102. package/dist/esm/components/QueryEditor/CatalogSelector.js.map +1 -1
  103. package/dist/esm/components/QueryEditor/ConfirmModal.js +1 -1
  104. package/dist/esm/components/QueryEditor/ConfirmModal.js.map +1 -1
  105. package/dist/esm/components/QueryEditor/DatasetSelector.js +1 -1
  106. package/dist/esm/components/QueryEditor/DatasetSelector.js.map +1 -1
  107. package/dist/esm/components/QueryEditor/EditorField.js +5 -5
  108. package/dist/esm/components/QueryEditor/EditorField.js.map +1 -1
  109. package/dist/esm/components/QueryEditor/EditorFieldGroup.js.map +1 -1
  110. package/dist/esm/components/QueryEditor/EditorHeader.js +2 -2
  111. package/dist/esm/components/QueryEditor/EditorHeader.js.map +1 -1
  112. package/dist/esm/components/QueryEditor/EditorList.js.map +1 -1
  113. package/dist/esm/components/QueryEditor/EditorRow.js +4 -4
  114. package/dist/esm/components/QueryEditor/EditorRow.js.map +1 -1
  115. package/dist/esm/components/QueryEditor/EditorRows.js +2 -2
  116. package/dist/esm/components/QueryEditor/EditorRows.js.map +1 -1
  117. package/dist/esm/components/QueryEditor/EditorStack.js +1 -1
  118. package/dist/esm/components/QueryEditor/EditorStack.js.map +1 -1
  119. package/dist/esm/components/QueryEditor/EditorSwitch.js +2 -2
  120. package/dist/esm/components/QueryEditor/EditorSwitch.js.map +1 -1
  121. package/dist/esm/components/QueryEditor/FlexItem.js.map +1 -1
  122. package/dist/esm/components/QueryEditor/InlineSelect.js +1 -1
  123. package/dist/esm/components/QueryEditor/InlineSelect.js.map +1 -1
  124. package/dist/esm/components/QueryEditor/InputGroup.js +2 -2
  125. package/dist/esm/components/QueryEditor/InputGroup.js.map +1 -1
  126. package/dist/esm/components/QueryEditor/QueryEditor.js +10 -8
  127. package/dist/esm/components/QueryEditor/QueryEditor.js.map +1 -1
  128. package/dist/esm/components/QueryEditor/QueryHeader.js +20 -20
  129. package/dist/esm/components/QueryEditor/QueryHeader.js.map +1 -1
  130. package/dist/esm/components/QueryEditor/RunQueryButton.js +1 -1
  131. package/dist/esm/components/QueryEditor/RunQueryButton.js.map +1 -1
  132. package/dist/esm/components/QueryEditor/Space.js +2 -2
  133. package/dist/esm/components/QueryEditor/Space.js.map +1 -1
  134. package/dist/esm/components/QueryEditor/TableSelector.js +0 -1
  135. package/dist/esm/components/QueryEditor/TableSelector.js.map +1 -1
  136. package/dist/esm/components/QueryEditor/defaults.js +7 -7
  137. package/dist/esm/components/QueryEditor/defaults.js.map +1 -1
  138. package/dist/esm/components/QueryEditor/expressions.js.map +1 -1
  139. package/dist/esm/components/QueryEditor/query-editor-raw/QueryEditorRaw.js +10 -2
  140. package/dist/esm/components/QueryEditor/query-editor-raw/QueryEditorRaw.js.map +1 -1
  141. package/dist/esm/components/QueryEditor/query-editor-raw/QueryToolbox.js +7 -2
  142. package/dist/esm/components/QueryEditor/query-editor-raw/QueryToolbox.js.map +1 -1
  143. package/dist/esm/components/QueryEditor/query-editor-raw/QueryValidator.js +4 -4
  144. package/dist/esm/components/QueryEditor/query-editor-raw/QueryValidator.js.map +1 -1
  145. package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js +14 -4
  146. package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js.map +1 -1
  147. package/dist/esm/components/QueryEditor/types.js +0 -1
  148. package/dist/esm/components/QueryEditor/types.js.map +1 -1
  149. package/dist/esm/components/QueryEditor/utils/formatSQL.js +15 -4
  150. package/dist/esm/components/QueryEditor/utils/formatSQL.js.map +1 -1
  151. package/dist/esm/components/QueryEditor/utils/sql.utils.js +8 -8
  152. package/dist/esm/components/QueryEditor/utils/sql.utils.js.map +1 -1
  153. package/dist/esm/components/QueryEditor/utils/useSqlChange.js.map +1 -1
  154. package/dist/esm/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js +26 -27
  155. package/dist/esm/components/QueryEditor/visual-query-builder/AwesomeQueryBuilder.js.map +1 -1
  156. package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js +3 -3
  157. package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js.map +1 -1
  158. package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js +2 -2
  159. package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js.map +1 -1
  160. package/dist/esm/components/QueryEditor/visual-query-builder/EditorRows.js.map +1 -1
  161. package/dist/esm/components/QueryEditor/visual-query-builder/GroupByRow.js +2 -2
  162. package/dist/esm/components/QueryEditor/visual-query-builder/GroupByRow.js.map +1 -1
  163. package/dist/esm/components/QueryEditor/visual-query-builder/OrderByRow.js +4 -4
  164. package/dist/esm/components/QueryEditor/visual-query-builder/OrderByRow.js.map +1 -1
  165. package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js +4 -4
  166. package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js.map +1 -1
  167. package/dist/esm/components/QueryEditor/visual-query-builder/SQLGroupByRow.js +0 -1
  168. package/dist/esm/components/QueryEditor/visual-query-builder/SQLGroupByRow.js.map +1 -1
  169. package/dist/esm/components/QueryEditor/visual-query-builder/SQLOrderByRow.js +2 -3
  170. package/dist/esm/components/QueryEditor/visual-query-builder/SQLOrderByRow.js.map +1 -1
  171. package/dist/esm/components/QueryEditor/visual-query-builder/SQLSelectRow.js +0 -1
  172. package/dist/esm/components/QueryEditor/visual-query-builder/SQLSelectRow.js.map +1 -1
  173. package/dist/esm/components/QueryEditor/visual-query-builder/SQLWhereRow.js +0 -1
  174. package/dist/esm/components/QueryEditor/visual-query-builder/SQLWhereRow.js.map +1 -1
  175. package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js +9 -9
  176. package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js.map +1 -1
  177. package/dist/esm/components/QueryEditor/visual-query-builder/VisualEditor.js +10 -2
  178. package/dist/esm/components/QueryEditor/visual-query-builder/VisualEditor.js.map +1 -1
  179. package/dist/esm/components/QueryEditor/visual-query-builder/WhereRow.js.map +1 -1
  180. package/dist/esm/components/QueryEditorRow/QueryEditorRow.js.map +1 -1
  181. package/dist/esm/components/SQLEditor/components/SQLEditor.js +13 -13
  182. package/dist/esm/components/SQLEditor/components/SQLEditor.js.map +1 -1
  183. package/dist/esm/components/SQLEditor/hooks/useLatestCallback.js +1 -1
  184. package/dist/esm/components/SQLEditor/hooks/useLatestCallback.js.map +1 -1
  185. package/dist/esm/components/SQLEditor/mocks/Monaco.js.map +1 -1
  186. package/dist/esm/components/SQLEditor/mocks/TextModel.js.map +1 -1
  187. package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQuery.js.map +1 -1
  188. package/dist/esm/components/SQLEditor/mocks/queries/multiLineFullQueryWithAggregation.js.map +1 -1
  189. package/dist/esm/components/SQLEditor/mocks/queries/multiLineMultipleColumns.js.map +1 -1
  190. package/dist/esm/components/SQLEditor/mocks/queries/singleLineEmptyQuery.js.map +1 -1
  191. package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQuery.js.map +1 -1
  192. package/dist/esm/components/SQLEditor/mocks/queries/singleLineFullQueryWithAggregation.js.map +1 -1
  193. package/dist/esm/components/SQLEditor/mocks/queries/singleLineMultipleColumns.js.map +1 -1
  194. package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueries.js.map +1 -1
  195. package/dist/esm/components/SQLEditor/mocks/queries/singleLineTwoQueriesWithAggregation.js.map +1 -1
  196. package/dist/esm/components/SQLEditor/standardSql/definition.js +0 -6
  197. package/dist/esm/components/SQLEditor/standardSql/definition.js.map +1 -1
  198. package/dist/esm/components/SQLEditor/standardSql/getStandardSuggestions.js +2 -2
  199. package/dist/esm/components/SQLEditor/standardSql/getStandardSuggestions.js.map +1 -1
  200. package/dist/esm/components/SQLEditor/standardSql/getStatementPosition.js +5 -4
  201. package/dist/esm/components/SQLEditor/standardSql/getStatementPosition.js.map +1 -1
  202. package/dist/esm/components/SQLEditor/standardSql/language.js.map +1 -1
  203. package/dist/esm/components/SQLEditor/standardSql/macros.js.map +1 -1
  204. package/dist/esm/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js +2 -2
  205. package/dist/esm/components/SQLEditor/standardSql/standardSQLCompletionItemProvider.js.map +1 -1
  206. package/dist/esm/components/SQLEditor/standardSql/standardSuggestionsRegistry.js +1 -1
  207. package/dist/esm/components/SQLEditor/standardSql/standardSuggestionsRegistry.js.map +1 -1
  208. package/dist/esm/components/SQLEditor/standardSql/statementPositionResolversRegistry.js +27 -26
  209. package/dist/esm/components/SQLEditor/standardSql/statementPositionResolversRegistry.js.map +1 -1
  210. package/dist/esm/components/SQLEditor/standardSql/suggestionsKindRegistry.js +1 -1
  211. package/dist/esm/components/SQLEditor/standardSql/suggestionsKindRegistry.js.map +1 -1
  212. package/dist/esm/components/SQLEditor/test-utils/index.js.map +1 -1
  213. package/dist/esm/components/SQLEditor/test-utils/statementPosition.js.map +1 -1
  214. package/dist/esm/components/SQLEditor/types.js +1 -17
  215. package/dist/esm/components/SQLEditor/types.js.map +1 -1
  216. package/dist/esm/components/SQLEditor/utils/LinkedToken.js +8 -8
  217. package/dist/esm/components/SQLEditor/utils/LinkedToken.js.map +1 -1
  218. package/dist/esm/components/SQLEditor/utils/commands.js.map +1 -1
  219. package/dist/esm/components/SQLEditor/utils/debugger.js +1 -1
  220. package/dist/esm/components/SQLEditor/utils/debugger.js.map +1 -1
  221. package/dist/esm/components/SQLEditor/utils/getSuggestionKind.js.map +1 -1
  222. package/dist/esm/components/SQLEditor/utils/linkedTokenBuilder.js +3 -3
  223. package/dist/esm/components/SQLEditor/utils/linkedTokenBuilder.js.map +1 -1
  224. package/dist/esm/components/SQLEditor/utils/toCompletionItem.js +1 -1
  225. package/dist/esm/components/SQLEditor/utils/toCompletionItem.js.map +1 -1
  226. package/dist/esm/components/SQLEditor/utils/tokenType.js +18 -0
  227. package/dist/esm/components/SQLEditor/utils/tokenType.js.map +1 -0
  228. package/dist/esm/components/SQLEditor/utils/tokenUtils.js +10 -10
  229. package/dist/esm/components/SQLEditor/utils/tokenUtils.js.map +1 -1
  230. package/dist/esm/components/Segment/Segment.js.map +1 -1
  231. package/dist/esm/components/VisualQueryBuilder/QueryModellerBase.js +2 -2
  232. package/dist/esm/components/VisualQueryBuilder/QueryModellerBase.js.map +1 -1
  233. package/dist/esm/components/VisualQueryBuilder/components/LabelFilterItem.js +11 -11
  234. package/dist/esm/components/VisualQueryBuilder/components/LabelFilterItem.js.map +1 -1
  235. package/dist/esm/components/VisualQueryBuilder/components/LabelFilters.js +1 -1
  236. package/dist/esm/components/VisualQueryBuilder/components/LabelFilters.js.map +1 -1
  237. package/dist/esm/components/VisualQueryBuilder/components/OperationEditor.js +4 -4
  238. package/dist/esm/components/VisualQueryBuilder/components/OperationEditor.js.map +1 -1
  239. package/dist/esm/components/VisualQueryBuilder/components/OperationEditorBody.js +3 -3
  240. package/dist/esm/components/VisualQueryBuilder/components/OperationEditorBody.js.map +1 -1
  241. package/dist/esm/components/VisualQueryBuilder/components/OperationExplainedBox.js +3 -3
  242. package/dist/esm/components/VisualQueryBuilder/components/OperationExplainedBox.js.map +1 -1
  243. package/dist/esm/components/VisualQueryBuilder/components/OperationHeader.js +2 -2
  244. package/dist/esm/components/VisualQueryBuilder/components/OperationHeader.js.map +1 -1
  245. package/dist/esm/components/VisualQueryBuilder/components/OperationInfoButton.js +2 -2
  246. package/dist/esm/components/VisualQueryBuilder/components/OperationInfoButton.js.map +1 -1
  247. package/dist/esm/components/VisualQueryBuilder/components/OperationList.js +4 -4
  248. package/dist/esm/components/VisualQueryBuilder/components/OperationList.js.map +1 -1
  249. package/dist/esm/components/VisualQueryBuilder/components/OperationListExplained.js +2 -2
  250. package/dist/esm/components/VisualQueryBuilder/components/OperationListExplained.js.map +1 -1
  251. package/dist/esm/components/VisualQueryBuilder/components/OperationParamEditor.js +6 -6
  252. package/dist/esm/components/VisualQueryBuilder/components/OperationParamEditor.js.map +1 -1
  253. package/dist/esm/components/VisualQueryBuilder/components/OperationsEditorRow.js +3 -3
  254. package/dist/esm/components/VisualQueryBuilder/components/OperationsEditorRow.js.map +1 -1
  255. package/dist/esm/components/VisualQueryBuilder/components/QueryBuilderHints.js +8 -8
  256. package/dist/esm/components/VisualQueryBuilder/components/QueryBuilderHints.js.map +1 -1
  257. package/dist/esm/components/VisualQueryBuilder/components/QueryEditorModeToggle.js.map +1 -1
  258. package/dist/esm/components/VisualQueryBuilder/components/QueryHeaderSwitch.js +3 -3
  259. package/dist/esm/components/VisualQueryBuilder/components/QueryHeaderSwitch.js.map +1 -1
  260. package/dist/esm/components/VisualQueryBuilder/components/QueryOptionGroup.js +1 -1
  261. package/dist/esm/components/VisualQueryBuilder/components/QueryOptionGroup.js.map +1 -1
  262. package/dist/esm/components/VisualQueryBuilder/components/RawQuery.js +2 -2
  263. package/dist/esm/components/VisualQueryBuilder/components/RawQuery.js.map +1 -1
  264. package/dist/esm/components/VisualQueryBuilder/types.js.map +1 -1
  265. package/dist/esm/datasource/SqlDatasource.js +14 -14
  266. package/dist/esm/datasource/SqlDatasource.js.map +1 -1
  267. package/dist/esm/datasource/constants.js.map +1 -1
  268. package/dist/esm/hooks/useDebounce.js.map +1 -1
  269. package/dist/esm/index.d.ts +695 -40
  270. package/dist/esm/index.js +13 -1
  271. package/dist/esm/index.js.map +1 -1
  272. package/dist/esm/schema/registry/alertmanager.schema.json.js +77 -0
  273. package/dist/esm/schema/registry/alertmanager.schema.json.js.map +1 -0
  274. package/dist/esm/schema/registry/cloudwatch.schema.json.js +384 -0
  275. package/dist/esm/schema/registry/cloudwatch.schema.json.js.map +1 -0
  276. package/dist/esm/schema/registry/elasticsearch.schema.json.js +597 -0
  277. package/dist/esm/schema/registry/elasticsearch.schema.json.js.map +1 -0
  278. package/dist/esm/schema/registry/grafana-adobeanalytics-datasource.schema.json.js +95 -0
  279. package/dist/esm/schema/registry/grafana-adobeanalytics-datasource.schema.json.js.map +1 -0
  280. package/dist/esm/schema/registry/grafana-amazonprometheus-datasource.schema.json.js +166 -0
  281. package/dist/esm/schema/registry/grafana-amazonprometheus-datasource.schema.json.js.map +1 -0
  282. package/dist/esm/schema/registry/grafana-appdynamics-datasource.schema.json.js +145 -0
  283. package/dist/esm/schema/registry/grafana-appdynamics-datasource.schema.json.js.map +1 -0
  284. package/dist/esm/schema/registry/grafana-astradb-datasource.schema.json.js +123 -0
  285. package/dist/esm/schema/registry/grafana-astradb-datasource.schema.json.js.map +1 -0
  286. package/dist/esm/schema/registry/grafana-athena-datasource.schema.json.js +158 -0
  287. package/dist/esm/schema/registry/grafana-athena-datasource.schema.json.js.map +1 -0
  288. package/dist/esm/schema/registry/grafana-atlassianstatuspage-datasource.schema.json.js +43 -0
  289. package/dist/esm/schema/registry/grafana-atlassianstatuspage-datasource.schema.json.js.map +1 -0
  290. package/dist/esm/schema/registry/grafana-azure-data-explorer-datasource.schema.json.js +204 -0
  291. package/dist/esm/schema/registry/grafana-azure-data-explorer-datasource.schema.json.js.map +1 -0
  292. package/dist/esm/schema/registry/grafana-azure-monitor-datasource.schema.json.js +300 -0
  293. package/dist/esm/schema/registry/grafana-azure-monitor-datasource.schema.json.js.map +1 -0
  294. package/dist/esm/schema/registry/grafana-azuredevops-datasource.schema.json.js +101 -0
  295. package/dist/esm/schema/registry/grafana-azuredevops-datasource.schema.json.js.map +1 -0
  296. package/dist/esm/schema/registry/grafana-azureprometheus-datasource.schema.json.js +125 -0
  297. package/dist/esm/schema/registry/grafana-azureprometheus-datasource.schema.json.js.map +1 -0
  298. package/dist/esm/schema/registry/grafana-bigquery-datasource.schema.json.js +508 -0
  299. package/dist/esm/schema/registry/grafana-bigquery-datasource.schema.json.js.map +1 -0
  300. package/dist/esm/schema/registry/grafana-catchpoint-datasource.schema.json.js +42 -0
  301. package/dist/esm/schema/registry/grafana-catchpoint-datasource.schema.json.js.map +1 -0
  302. package/dist/esm/schema/registry/grafana-clickhouse-datasource.schema.json.js +1400 -0
  303. package/dist/esm/schema/registry/grafana-clickhouse-datasource.schema.json.js.map +1 -0
  304. package/dist/esm/schema/registry/grafana-cloudflare-datasource.schema.json.js +42 -0
  305. package/dist/esm/schema/registry/grafana-cloudflare-datasource.schema.json.js.map +1 -0
  306. package/dist/esm/schema/registry/grafana-cockroachdb-datasource.schema.json.js +302 -0
  307. package/dist/esm/schema/registry/grafana-cockroachdb-datasource.schema.json.js.map +1 -0
  308. package/dist/esm/schema/registry/grafana-databricks-datasource.schema.json.js +291 -0
  309. package/dist/esm/schema/registry/grafana-databricks-datasource.schema.json.js.map +1 -0
  310. package/dist/esm/schema/registry/grafana-datadog-datasource.schema.json.js +155 -0
  311. package/dist/esm/schema/registry/grafana-datadog-datasource.schema.json.js.map +1 -0
  312. package/dist/esm/schema/registry/grafana-drone-datasource.schema.json.js +64 -0
  313. package/dist/esm/schema/registry/grafana-drone-datasource.schema.json.js.map +1 -0
  314. package/dist/esm/schema/registry/grafana-dynatrace-datasource.schema.json.js +179 -0
  315. package/dist/esm/schema/registry/grafana-dynatrace-datasource.schema.json.js.map +1 -0
  316. package/dist/esm/schema/registry/grafana-falconlogscale-datasource.schema.json.js +134 -0
  317. package/dist/esm/schema/registry/grafana-falconlogscale-datasource.schema.json.js.map +1 -0
  318. package/dist/esm/schema/registry/grafana-github-datasource.schema.json.js +156 -0
  319. package/dist/esm/schema/registry/grafana-github-datasource.schema.json.js.map +1 -0
  320. package/dist/esm/schema/registry/grafana-gitlab-datasource.schema.json.js +84 -0
  321. package/dist/esm/schema/registry/grafana-gitlab-datasource.schema.json.js.map +1 -0
  322. package/dist/esm/schema/registry/grafana-googlesheets-datasource.schema.json.js +231 -0
  323. package/dist/esm/schema/registry/grafana-googlesheets-datasource.schema.json.js.map +1 -0
  324. package/dist/esm/schema/registry/grafana-honeycomb-datasource.schema.json.js +87 -0
  325. package/dist/esm/schema/registry/grafana-honeycomb-datasource.schema.json.js.map +1 -0
  326. package/dist/esm/schema/registry/grafana-iot-sitewise-datasource.schema.json.js +159 -0
  327. package/dist/esm/schema/registry/grafana-iot-sitewise-datasource.schema.json.js.map +1 -0
  328. package/dist/esm/schema/registry/grafana-jira-datasource.schema.json.js +188 -0
  329. package/dist/esm/schema/registry/grafana-jira-datasource.schema.json.js.map +1 -0
  330. package/dist/esm/schema/registry/grafana-logicmonitor-datasource.schema.json.js +63 -0
  331. package/dist/esm/schema/registry/grafana-logicmonitor-datasource.schema.json.js.map +1 -0
  332. package/dist/esm/schema/registry/grafana-looker-datasource.schema.json.js +82 -0
  333. package/dist/esm/schema/registry/grafana-looker-datasource.schema.json.js.map +1 -0
  334. package/dist/esm/schema/registry/grafana-mongodb-datasource.schema.json.js +278 -0
  335. package/dist/esm/schema/registry/grafana-mongodb-datasource.schema.json.js.map +1 -0
  336. package/dist/esm/schema/registry/grafana-mqtt-datasource.schema.json.js +168 -0
  337. package/dist/esm/schema/registry/grafana-mqtt-datasource.schema.json.js.map +1 -0
  338. package/dist/esm/schema/registry/grafana-netlify-datasource.schema.json.js +42 -0
  339. package/dist/esm/schema/registry/grafana-netlify-datasource.schema.json.js.map +1 -0
  340. package/dist/esm/schema/registry/grafana-newrelic-datasource.schema.json.js +129 -0
  341. package/dist/esm/schema/registry/grafana-newrelic-datasource.schema.json.js.map +1 -0
  342. package/dist/esm/schema/registry/grafana-odbc-datasource.schema.json.js +56 -0
  343. package/dist/esm/schema/registry/grafana-odbc-datasource.schema.json.js.map +1 -0
  344. package/dist/esm/schema/registry/grafana-opensearch-datasource.schema.json.js +212 -0
  345. package/dist/esm/schema/registry/grafana-opensearch-datasource.schema.json.js.map +1 -0
  346. package/dist/esm/schema/registry/grafana-oracle-datasource.schema.json.js +186 -0
  347. package/dist/esm/schema/registry/grafana-oracle-datasource.schema.json.js.map +1 -0
  348. package/dist/esm/schema/registry/grafana-pagerduty-datasource.schema.json.js +85 -0
  349. package/dist/esm/schema/registry/grafana-pagerduty-datasource.schema.json.js.map +1 -0
  350. package/dist/esm/schema/registry/grafana-postgresql-datasource.schema.json.js +411 -0
  351. package/dist/esm/schema/registry/grafana-postgresql-datasource.schema.json.js.map +1 -0
  352. package/dist/esm/schema/registry/grafana-pyroscope-datasource.schema.json.js +41 -0
  353. package/dist/esm/schema/registry/grafana-pyroscope-datasource.schema.json.js.map +1 -0
  354. package/dist/esm/schema/registry/grafana-redshift-datasource.schema.json.js +201 -0
  355. package/dist/esm/schema/registry/grafana-redshift-datasource.schema.json.js.map +1 -0
  356. package/dist/esm/schema/registry/grafana-salesforce-datasource.schema.json.js +248 -0
  357. package/dist/esm/schema/registry/grafana-salesforce-datasource.schema.json.js.map +1 -0
  358. package/dist/esm/schema/registry/grafana-saphana-datasource.schema.json.js +208 -0
  359. package/dist/esm/schema/registry/grafana-saphana-datasource.schema.json.js.map +1 -0
  360. package/dist/esm/schema/registry/grafana-sentry-datasource.schema.json.js +94 -0
  361. package/dist/esm/schema/registry/grafana-sentry-datasource.schema.json.js.map +1 -0
  362. package/dist/esm/schema/registry/grafana-servicenow-datasource.schema.json.js +179 -0
  363. package/dist/esm/schema/registry/grafana-servicenow-datasource.schema.json.js.map +1 -0
  364. package/dist/esm/schema/registry/grafana-snowflake-datasource.schema.json.js +304 -0
  365. package/dist/esm/schema/registry/grafana-snowflake-datasource.schema.json.js.map +1 -0
  366. package/dist/esm/schema/registry/grafana-solarwinds-datasource.schema.json.js +77 -0
  367. package/dist/esm/schema/registry/grafana-solarwinds-datasource.schema.json.js.map +1 -0
  368. package/dist/esm/schema/registry/grafana-splunk-datasource.schema.json.js +690 -0
  369. package/dist/esm/schema/registry/grafana-splunk-datasource.schema.json.js.map +1 -0
  370. package/dist/esm/schema/registry/grafana-splunkobservability-datasource.schema.json.js +90 -0
  371. package/dist/esm/schema/registry/grafana-splunkobservability-datasource.schema.json.js.map +1 -0
  372. package/dist/esm/schema/registry/grafana-strava-datasource.schema.json.js +74 -0
  373. package/dist/esm/schema/registry/grafana-strava-datasource.schema.json.js.map +1 -0
  374. package/dist/esm/schema/registry/grafana-sumologic-datasource.schema.json.js +102 -0
  375. package/dist/esm/schema/registry/grafana-sumologic-datasource.schema.json.js.map +1 -0
  376. package/dist/esm/schema/registry/grafana-surrealdb-datasource.schema.json.js +92 -0
  377. package/dist/esm/schema/registry/grafana-surrealdb-datasource.schema.json.js.map +1 -0
  378. package/dist/esm/schema/registry/grafana-timestream-datasource.schema.json.js +145 -0
  379. package/dist/esm/schema/registry/grafana-timestream-datasource.schema.json.js.map +1 -0
  380. package/dist/esm/schema/registry/grafana-vercel-datasource.schema.json.js +62 -0
  381. package/dist/esm/schema/registry/grafana-vercel-datasource.schema.json.js.map +1 -0
  382. package/dist/esm/schema/registry/grafana-wavefront-datasource.schema.json.js +80 -0
  383. package/dist/esm/schema/registry/grafana-wavefront-datasource.schema.json.js.map +1 -0
  384. package/dist/esm/schema/registry/grafana-x-ray-datasource.schema.json.js +112 -0
  385. package/dist/esm/schema/registry/grafana-x-ray-datasource.schema.json.js.map +1 -0
  386. package/dist/esm/schema/registry/grafana-yugabyte-datasource.schema.json.js +114 -0
  387. package/dist/esm/schema/registry/grafana-yugabyte-datasource.schema.json.js.map +1 -0
  388. package/dist/esm/schema/registry/grafana-zendesk-datasource.schema.json.js +76 -0
  389. package/dist/esm/schema/registry/grafana-zendesk-datasource.schema.json.js.map +1 -0
  390. package/dist/esm/schema/registry/graphite.schema.json.js +104 -0
  391. package/dist/esm/schema/registry/graphite.schema.json.js.map +1 -0
  392. package/dist/esm/schema/registry/index.js +157 -0
  393. package/dist/esm/schema/registry/index.js.map +1 -0
  394. package/dist/esm/schema/registry/influxdb.schema.json.js +717 -0
  395. package/dist/esm/schema/registry/influxdb.schema.json.js.map +1 -0
  396. package/dist/esm/schema/registry/jaeger.schema.json.js +59 -0
  397. package/dist/esm/schema/registry/jaeger.schema.json.js.map +1 -0
  398. package/dist/esm/schema/registry/loki.schema.json.js +545 -0
  399. package/dist/esm/schema/registry/loki.schema.json.js.map +1 -0
  400. package/dist/esm/schema/registry/marcusolsson-csv-datasource.schema.json.js +45 -0
  401. package/dist/esm/schema/registry/marcusolsson-csv-datasource.schema.json.js.map +1 -0
  402. package/dist/esm/schema/registry/marcusolsson-json-datasource.schema.json.js +36 -0
  403. package/dist/esm/schema/registry/marcusolsson-json-datasource.schema.json.js.map +1 -0
  404. package/dist/esm/schema/registry/mssql.schema.json.js +292 -0
  405. package/dist/esm/schema/registry/mssql.schema.json.js.map +1 -0
  406. package/dist/esm/schema/registry/mysql.schema.json.js +304 -0
  407. package/dist/esm/schema/registry/mysql.schema.json.js.map +1 -0
  408. package/dist/esm/schema/registry/opentsdb.schema.json.js +113 -0
  409. package/dist/esm/schema/registry/opentsdb.schema.json.js.map +1 -0
  410. package/dist/esm/schema/registry/prometheus.schema.json.js +783 -0
  411. package/dist/esm/schema/registry/prometheus.schema.json.js.map +1 -0
  412. package/dist/esm/schema/registry/stackdriver.schema.json.js +224 -0
  413. package/dist/esm/schema/registry/stackdriver.schema.json.js.map +1 -0
  414. package/dist/esm/schema/registry/tempo.schema.json.js +664 -0
  415. package/dist/esm/schema/registry/tempo.schema.json.js.map +1 -0
  416. package/dist/esm/schema/registry/yesoreyeram-infinity-datasource.schema.json.js +1073 -0
  417. package/dist/esm/schema/registry/yesoreyeram-infinity-datasource.schema.json.js.map +1 -0
  418. package/dist/esm/schema/registry/zipkin.schema.json.js +40 -0
  419. package/dist/esm/schema/registry/zipkin.schema.json.js.map +1 -0
  420. package/dist/esm/schema/utils/dsconfig.js +97 -0
  421. package/dist/esm/schema/utils/dsconfig.js.map +1 -0
  422. package/dist/esm/schema/utils/llm.js +54 -0
  423. package/dist/esm/schema/utils/llm.js.map +1 -0
  424. package/dist/esm/schema/utils/provisioning.js +434 -0
  425. package/dist/esm/schema/utils/provisioning.js.map +1 -0
  426. package/dist/esm/schema/utils/useDatasourceSchema.js +16 -0
  427. package/dist/esm/schema/utils/useDatasourceSchema.js.map +1 -0
  428. package/dist/esm/schemas.d.ts +448 -0
  429. package/dist/esm/schemas.js +6 -0
  430. package/dist/esm/schemas.js.map +1 -0
  431. package/dist/esm/test/mocks/DataQuery.js.map +1 -1
  432. package/dist/esm/test/mocks/Datasource.js +1 -1
  433. package/dist/esm/test/mocks/Datasource.js.map +1 -1
  434. package/dist/esm/test/mocks/Plugin.js +1 -1
  435. package/dist/esm/test/mocks/Plugin.js.map +1 -1
  436. package/dist/esm/test/mocks/QueryEditorProps.js.map +1 -1
  437. package/dist/esm/test/mocks/utils.js +2 -2
  438. package/dist/esm/test/mocks/utils.js.map +1 -1
  439. package/dist/esm/test-utils.d.ts +24 -24
  440. package/package.json +40 -20
@@ -0,0 +1,783 @@
1
+ var $schema$4 = "../schema.json";
2
+ var schemaVersion$4 = "v1";
3
+ var pluginType$4 = "prometheus";
4
+ var pluginName$4 = "Prometheus";
5
+ var docURL$4 = "https://grafana.com/docs/grafana/latest/datasources/prometheus/configure/";
6
+ var fields$4 = [
7
+ {
8
+ id: "root.url",
9
+ key: "url",
10
+ label: "Prometheus server URL",
11
+ description: "URL of your Prometheus server. If Prometheus is running locally, use http://localhost:9090.",
12
+ valueType: "string",
13
+ semanticType: "url",
14
+ target: "root",
15
+ required: true,
16
+ ui: {
17
+ component: "input",
18
+ placeholder: "http://localhost:9090"
19
+ },
20
+ validations: [
21
+ {
22
+ type: "pattern",
23
+ pattern: "^https?://",
24
+ message: "Must be a valid HTTP or HTTPS URL"
25
+ }
26
+ ]
27
+ },
28
+ {
29
+ id: "root.basicAuth",
30
+ key: "basicAuth",
31
+ label: "Basic Auth",
32
+ description: "Enable basic authentication.",
33
+ valueType: "boolean",
34
+ target: "root",
35
+ defaultValue: false,
36
+ tags: [
37
+ "managed-by:auth.method"
38
+ ]
39
+ },
40
+ {
41
+ id: "auth.method",
42
+ key: "authMethod",
43
+ label: "Authentication method",
44
+ description: "Choose an authentication method to access the data source.",
45
+ valueType: "string",
46
+ kind: "virtual",
47
+ defaultValue: "no-auth",
48
+ validations: [
49
+ {
50
+ type: "allowedValues",
51
+ values: [
52
+ "no-auth",
53
+ "basic-auth",
54
+ "forward-oauth"
55
+ ]
56
+ }
57
+ ],
58
+ ui: {
59
+ component: "select",
60
+ options: [
61
+ {
62
+ label: "No Authentication",
63
+ value: "no-auth",
64
+ description: "Data source is available without authentication"
65
+ },
66
+ {
67
+ label: "Basic authentication",
68
+ value: "basic-auth",
69
+ description: "Authenticate with your data source username and password"
70
+ },
71
+ {
72
+ label: "Forward OAuth Identity",
73
+ value: "forward-oauth",
74
+ description: "Forward the OAuth access token (and if available: the OIDC ID token) of the user querying the data source"
75
+ }
76
+ ]
77
+ },
78
+ storage: {
79
+ type: "computed",
80
+ read: "root.basicAuth == true ? 'basic-auth' : (jsonData.oauthPassThru == true ? 'forward-oauth' : 'no-auth')"
81
+ },
82
+ effects: [
83
+ {
84
+ when: "value == 'no-auth'",
85
+ set: {
86
+ "root.basicAuth": false,
87
+ "jsonData.oauthPassThru": false
88
+ }
89
+ },
90
+ {
91
+ when: "value == 'basic-auth'",
92
+ set: {
93
+ "root.basicAuth": true,
94
+ "jsonData.oauthPassThru": false
95
+ }
96
+ },
97
+ {
98
+ when: "value == 'forward-oauth'",
99
+ set: {
100
+ "root.basicAuth": false,
101
+ "jsonData.oauthPassThru": true
102
+ }
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ id: "root.basicAuthUser",
108
+ key: "basicAuthUser",
109
+ label: "User",
110
+ description: "Username for basic authentication.",
111
+ valueType: "string",
112
+ target: "root",
113
+ dependsOn: "auth.method == 'basic-auth'",
114
+ requiredWhen: "auth.method == 'basic-auth'"
115
+ },
116
+ {
117
+ id: "jsonData.timeInterval",
118
+ key: "timeInterval",
119
+ label: "Scrape interval",
120
+ description: "Sets the standard scrape and evaluation interval. Set it to match the typical scrape interval in your Prometheus configuration. Default is 15s.",
121
+ valueType: "string",
122
+ semanticType: "duration",
123
+ target: "jsonData",
124
+ defaultValue: "15s",
125
+ ui: {
126
+ component: "input",
127
+ placeholder: "15s"
128
+ }
129
+ },
130
+ {
131
+ id: "jsonData.queryTimeout",
132
+ key: "queryTimeout",
133
+ label: "Query timeout",
134
+ description: "Sets the Prometheus query timeout. Default is 60s. Without a timeout, complex queries can run indefinitely.",
135
+ valueType: "string",
136
+ semanticType: "duration",
137
+ target: "jsonData",
138
+ defaultValue: "60s",
139
+ ui: {
140
+ component: "input",
141
+ placeholder: "60s"
142
+ }
143
+ },
144
+ {
145
+ id: "jsonData.httpMethod",
146
+ key: "httpMethod",
147
+ label: "HTTP method",
148
+ description: "HTTP method used for querying Prometheus. POST is recommended for complex queries.",
149
+ valueType: "string",
150
+ target: "jsonData",
151
+ defaultValue: "POST",
152
+ validations: [
153
+ {
154
+ type: "allowedValues",
155
+ values: [
156
+ "GET",
157
+ "POST"
158
+ ]
159
+ }
160
+ ],
161
+ ui: {
162
+ component: "select",
163
+ options: [
164
+ {
165
+ label: "GET",
166
+ value: "GET"
167
+ },
168
+ {
169
+ label: "POST",
170
+ value: "POST"
171
+ }
172
+ ]
173
+ }
174
+ },
175
+ {
176
+ id: "jsonData.customQueryParameters",
177
+ key: "customQueryParameters",
178
+ label: "Custom query parameters",
179
+ description: "Add custom parameters to the Prometheus query URL. Examples: timeout, partial_response, dedup, max_source_resolution. Multiple parameters should be joined using &.",
180
+ valueType: "string",
181
+ target: "jsonData",
182
+ ui: {
183
+ component: "input",
184
+ placeholder: "Example: max_source_resolution=5m&timeout=30"
185
+ }
186
+ },
187
+ {
188
+ id: "jsonData.disableMetricsLookup",
189
+ key: "disableMetricsLookup",
190
+ label: "Disable metrics lookup",
191
+ description: "When enabled, the metrics chooser in the query editor is not populated. Useful for Prometheus instances with a large number of metrics.",
192
+ valueType: "boolean",
193
+ target: "jsonData",
194
+ defaultValue: false,
195
+ ui: {
196
+ component: "switch"
197
+ }
198
+ },
199
+ {
200
+ id: "jsonData.exemplarTraceIdDestinations",
201
+ key: "exemplarTraceIdDestinations",
202
+ label: "Exemplars",
203
+ description: "Configure exemplar trace ID destinations. Links traces from Prometheus exemplars to a tracing backend.",
204
+ valueType: "array",
205
+ target: "jsonData",
206
+ item: {
207
+ valueType: "object",
208
+ fields: [
209
+ {
210
+ id: "exemplarTraceIdDestinations.item.name",
211
+ key: "name",
212
+ label: "Label name",
213
+ description: "The name of the field in the labels object used to obtain the traceID.",
214
+ valueType: "string",
215
+ isItemField: true,
216
+ required: true
217
+ },
218
+ {
219
+ id: "exemplarTraceIdDestinations.item.url",
220
+ key: "url",
221
+ label: "URL",
222
+ description: "External link URL. Interpolate the value using ${__value.raw}.",
223
+ valueType: "string",
224
+ semanticType: "url",
225
+ isItemField: true
226
+ },
227
+ {
228
+ id: "exemplarTraceIdDestinations.item.urlDisplayLabel",
229
+ key: "urlDisplayLabel",
230
+ label: "URL label",
231
+ description: "Custom display label to override the value of the Label name field.",
232
+ valueType: "string",
233
+ isItemField: true
234
+ },
235
+ {
236
+ id: "exemplarTraceIdDestinations.item.datasourceUid",
237
+ key: "datasourceUid",
238
+ label: "Internal link",
239
+ description: "Data source UID for internal link to a tracing backend.",
240
+ valueType: "string",
241
+ semanticType: "datasourceUid",
242
+ isItemField: true
243
+ }
244
+ ]
245
+ }
246
+ },
247
+ {
248
+ id: "jsonData.prometheusType",
249
+ key: "prometheusType",
250
+ label: "Prometheus type",
251
+ description: "Select the type of your Prometheus-compatible database. Different types support different APIs. Setting this incorrectly may cause unexpected behavior.",
252
+ valueType: "string",
253
+ target: "jsonData",
254
+ validations: [
255
+ {
256
+ type: "allowedValues",
257
+ values: [
258
+ "Cortex",
259
+ "Mimir",
260
+ "Prometheus",
261
+ "Thanos"
262
+ ]
263
+ }
264
+ ],
265
+ ui: {
266
+ component: "select",
267
+ options: [
268
+ {
269
+ label: "Prometheus",
270
+ value: "Prometheus"
271
+ },
272
+ {
273
+ label: "Cortex",
274
+ value: "Cortex"
275
+ },
276
+ {
277
+ label: "Mimir",
278
+ value: "Mimir"
279
+ },
280
+ {
281
+ label: "Thanos",
282
+ value: "Thanos"
283
+ }
284
+ ]
285
+ }
286
+ },
287
+ {
288
+ id: "jsonData.prometheusVersion",
289
+ key: "prometheusVersion",
290
+ label: "Prometheus version",
291
+ description: "The version of your Prometheus instance (e.g. 2.37.0, 3.3.0).",
292
+ valueType: "string",
293
+ target: "jsonData",
294
+ ui: {
295
+ component: "input",
296
+ placeholder: "e.g. 2.37.0"
297
+ }
298
+ },
299
+ {
300
+ id: "jsonData.cacheLevel",
301
+ key: "cacheLevel",
302
+ label: "Cache level",
303
+ description: "Sets the browser caching level for editor queries. Higher cache settings are recommended for high cardinality data sources.",
304
+ valueType: "string",
305
+ target: "jsonData",
306
+ defaultValue: "Low",
307
+ validations: [
308
+ {
309
+ type: "allowedValues",
310
+ values: [
311
+ "Low",
312
+ "Medium",
313
+ "High",
314
+ "None"
315
+ ]
316
+ }
317
+ ],
318
+ ui: {
319
+ component: "select",
320
+ options: [
321
+ {
322
+ label: "Low",
323
+ value: "Low"
324
+ },
325
+ {
326
+ label: "Medium",
327
+ value: "Medium"
328
+ },
329
+ {
330
+ label: "High",
331
+ value: "High"
332
+ },
333
+ {
334
+ label: "None",
335
+ value: "None"
336
+ }
337
+ ]
338
+ }
339
+ },
340
+ {
341
+ id: "jsonData.defaultEditor",
342
+ key: "defaultEditor",
343
+ label: "Default editor",
344
+ description: "Sets the default editor mode for new queries in the query editor.",
345
+ valueType: "string",
346
+ target: "jsonData",
347
+ defaultValue: "builder",
348
+ validations: [
349
+ {
350
+ type: "allowedValues",
351
+ values: [
352
+ "code",
353
+ "builder"
354
+ ]
355
+ }
356
+ ],
357
+ ui: {
358
+ component: "select",
359
+ options: [
360
+ {
361
+ label: "Builder",
362
+ value: "builder"
363
+ },
364
+ {
365
+ label: "Code",
366
+ value: "code"
367
+ }
368
+ ]
369
+ }
370
+ },
371
+ {
372
+ id: "jsonData.incrementalQuerying",
373
+ key: "incrementalQuerying",
374
+ label: "Incremental querying (beta)",
375
+ description: "Enable incremental querying to cache results and only fetch new data since the last query. Reduces database and network load.",
376
+ valueType: "boolean",
377
+ target: "jsonData",
378
+ defaultValue: false,
379
+ lifecycle: "experimental",
380
+ ui: {
381
+ component: "switch"
382
+ }
383
+ },
384
+ {
385
+ id: "jsonData.incrementalQueryOverlapWindow",
386
+ key: "incrementalQueryOverlapWindow",
387
+ label: "Query overlap window",
388
+ description: "Buffer of time added to incremental queries. Default is 10m.",
389
+ valueType: "string",
390
+ semanticType: "duration",
391
+ target: "jsonData",
392
+ defaultValue: "10m",
393
+ dependsOn: "jsonData.incrementalQuerying == true",
394
+ lifecycle: "experimental",
395
+ ui: {
396
+ component: "input",
397
+ placeholder: "10m"
398
+ }
399
+ },
400
+ {
401
+ id: "jsonData.disableRecordingRules",
402
+ key: "disableRecordingRules",
403
+ label: "Disable recording rules (beta)",
404
+ description: "When enabled, Grafana won't fetch and parse recording rules from Prometheus, improving dashboard performance.",
405
+ valueType: "boolean",
406
+ target: "jsonData",
407
+ defaultValue: false,
408
+ lifecycle: "experimental",
409
+ ui: {
410
+ component: "switch"
411
+ }
412
+ },
413
+ {
414
+ id: "jsonData.manageAlerts",
415
+ key: "manageAlerts",
416
+ label: "Manage alert rules in Alerting UI",
417
+ description: "Manage alert rules for this data source. To manage other alerting resources, add an Alertmanager data source.",
418
+ valueType: "boolean",
419
+ target: "jsonData",
420
+ defaultValue: true,
421
+ ui: {
422
+ component: "switch"
423
+ }
424
+ },
425
+ {
426
+ id: "jsonData.allowAsRecordingRulesTarget",
427
+ key: "allowAsRecordingRulesTarget",
428
+ label: "Use as recording rules target",
429
+ description: "Allow this data source to be used as the target for Grafana-managed recording rules.",
430
+ valueType: "boolean",
431
+ target: "jsonData",
432
+ defaultValue: true,
433
+ ui: {
434
+ component: "switch"
435
+ }
436
+ },
437
+ {
438
+ id: "jsonData.oauthPassThru",
439
+ key: "oauthPassThru",
440
+ label: "Forward OAuth Identity",
441
+ description: "Forward the OAuth access token (and if available: the OIDC ID token) of the user querying the data source.",
442
+ valueType: "boolean",
443
+ target: "jsonData",
444
+ defaultValue: false,
445
+ tags: [
446
+ "managed-by:auth.method"
447
+ ]
448
+ },
449
+ {
450
+ id: "jsonData.seriesEndpoint",
451
+ key: "seriesEndpoint",
452
+ label: "Use series endpoint",
453
+ description: "Use the /api/v1/series endpoint with match[] parameter instead of the label values endpoint. The series endpoint supports POST method.",
454
+ valueType: "boolean",
455
+ target: "jsonData",
456
+ defaultValue: false,
457
+ ui: {
458
+ component: "switch"
459
+ }
460
+ },
461
+ {
462
+ id: "jsonData.seriesLimit",
463
+ key: "seriesLimit",
464
+ label: "Series limit",
465
+ description: "Maximum number of series returned. Applies to all resources (metrics, labels, values) for both series and labels endpoints. Set to 0 to disable the limit. Default is 40000.",
466
+ valueType: "number",
467
+ target: "jsonData",
468
+ defaultValue: 40000,
469
+ ui: {
470
+ component: "input",
471
+ placeholder: "40000"
472
+ }
473
+ },
474
+ {
475
+ id: "jsonData.timeout",
476
+ key: "timeout",
477
+ label: "HTTP request timeout",
478
+ description: "HTTP request timeout in seconds. Overrides the global dataproxy.timeout setting.",
479
+ valueType: "number",
480
+ target: "jsonData",
481
+ ui: {
482
+ component: "input",
483
+ placeholder: "Timeout in seconds"
484
+ },
485
+ validations: [
486
+ {
487
+ type: "range",
488
+ min: 0
489
+ }
490
+ ]
491
+ },
492
+ {
493
+ id: "jsonData.serverName",
494
+ key: "serverName",
495
+ label: "TLS server name",
496
+ description: "Controls the server name used for certificate common name/subject alternative name verification. Defaults to using the data source URL.",
497
+ valueType: "string",
498
+ semanticType: "hostname",
499
+ target: "jsonData",
500
+ dependsOn: "jsonData.tlsAuth == true"
501
+ },
502
+ {
503
+ id: "jsonData.tlsAuth",
504
+ key: "tlsAuth",
505
+ label: "TLS Client Auth",
506
+ description: "Enable TLS client certificate authentication.",
507
+ valueType: "boolean",
508
+ target: "jsonData",
509
+ ui: {
510
+ component: "switch"
511
+ }
512
+ },
513
+ {
514
+ id: "jsonData.tlsAuthWithCACert",
515
+ key: "tlsAuthWithCACert",
516
+ label: "With CA Cert",
517
+ description: "Verify self-signed TLS certificates using a CA certificate.",
518
+ valueType: "boolean",
519
+ target: "jsonData",
520
+ ui: {
521
+ component: "switch"
522
+ }
523
+ },
524
+ {
525
+ id: "jsonData.tlsSkipVerify",
526
+ key: "tlsSkipVerify",
527
+ label: "Skip TLS Verify",
528
+ description: "Skip TLS certificate verification. Use only for testing.",
529
+ valueType: "boolean",
530
+ target: "jsonData",
531
+ ui: {
532
+ component: "switch"
533
+ }
534
+ },
535
+ {
536
+ id: "jsonData.keepCookies",
537
+ key: "keepCookies",
538
+ label: "Allowed cookies",
539
+ description: "Grafana proxy deletes forwarded cookies by default. Specify cookies by name that should be forwarded to the data source.",
540
+ valueType: "array",
541
+ target: "jsonData",
542
+ item: {
543
+ valueType: "string"
544
+ },
545
+ ui: {
546
+ component: "list",
547
+ placeholder: "New cookie (hit enter to add)"
548
+ }
549
+ },
550
+ {
551
+ id: "jsonData.pdcInjected",
552
+ key: "pdcInjected",
553
+ label: "Private data source connect",
554
+ description: "When enabled, connection is made via Grafana's Private Data Source Connect (PDC).",
555
+ valueType: "boolean",
556
+ target: "jsonData"
557
+ },
558
+ {
559
+ id: "httpHeaders",
560
+ key: "httpHeaders",
561
+ label: "Custom HTTP Headers",
562
+ description: "Additional headers sent with every request to the data source.",
563
+ valueType: "array",
564
+ target: "jsonData",
565
+ item: {
566
+ valueType: "object",
567
+ fields: [
568
+ {
569
+ id: "httpHeaders.item.name",
570
+ key: "name",
571
+ label: "Header Name",
572
+ valueType: "string",
573
+ isItemField: true,
574
+ validations: [
575
+ {
576
+ type: "pattern",
577
+ pattern: "^[A-Za-z][A-Za-z0-9-]*$",
578
+ message: "Must be a valid HTTP header name"
579
+ }
580
+ ]
581
+ },
582
+ {
583
+ id: "httpHeaders.item.value",
584
+ key: "value",
585
+ label: "Header Value",
586
+ valueType: "string",
587
+ isItemField: true
588
+ }
589
+ ]
590
+ },
591
+ storage: {
592
+ type: "indexedPair",
593
+ key: {
594
+ target: "jsonData",
595
+ pattern: "httpHeaderName{index}"
596
+ },
597
+ value: {
598
+ target: "secureJsonData",
599
+ pattern: "httpHeaderValue{index}"
600
+ },
601
+ startIndex: 1
602
+ },
603
+ validations: [
604
+ {
605
+ type: "itemCount",
606
+ max: 10,
607
+ message: "Maximum 10 custom headers"
608
+ }
609
+ ]
610
+ },
611
+ {
612
+ id: "secureJsonData.basicAuthPassword",
613
+ key: "basicAuthPassword",
614
+ label: "Password",
615
+ description: "Password for basic authentication.",
616
+ valueType: "string",
617
+ semanticType: "password",
618
+ target: "secureJsonData",
619
+ dependsOn: "auth.method == 'basic-auth'"
620
+ },
621
+ {
622
+ id: "secureJsonData.tlsCACert",
623
+ key: "tlsCACert",
624
+ label: "CA Cert",
625
+ description: "PEM-encoded CA certificate to verify the Prometheus server's TLS certificate.",
626
+ valueType: "string",
627
+ target: "secureJsonData",
628
+ dependsOn: "jsonData.tlsAuthWithCACert == true",
629
+ ui: {
630
+ component: "textarea",
631
+ rows: 7,
632
+ placeholder: "Begins with -----BEGIN CERTIFICATE-----"
633
+ }
634
+ },
635
+ {
636
+ id: "secureJsonData.tlsClientCert",
637
+ key: "tlsClientCert",
638
+ label: "Client Cert",
639
+ description: "PEM-encoded client certificate for TLS client authentication.",
640
+ valueType: "string",
641
+ target: "secureJsonData",
642
+ dependsOn: "jsonData.tlsAuth == true",
643
+ ui: {
644
+ component: "textarea",
645
+ rows: 7,
646
+ placeholder: "Begins with -----BEGIN CERTIFICATE-----"
647
+ }
648
+ },
649
+ {
650
+ id: "secureJsonData.tlsClientKey",
651
+ key: "tlsClientKey",
652
+ label: "Client Key",
653
+ description: "PEM-encoded client private key for TLS client authentication.",
654
+ valueType: "string",
655
+ semanticType: "token",
656
+ target: "secureJsonData",
657
+ dependsOn: "jsonData.tlsAuth == true",
658
+ ui: {
659
+ component: "textarea",
660
+ rows: 7,
661
+ placeholder: "Begins with -----BEGIN RSA PRIVATE KEY-----"
662
+ }
663
+ }
664
+ ];
665
+ var groups$4 = [
666
+ {
667
+ id: "connection",
668
+ title: "Connection",
669
+ fieldRefs: [
670
+ "root.url"
671
+ ]
672
+ },
673
+ {
674
+ id: "auth",
675
+ title: "Authentication",
676
+ fieldRefs: [
677
+ "auth.method",
678
+ "root.basicAuthUser",
679
+ "secureJsonData.basicAuthPassword"
680
+ ]
681
+ },
682
+ {
683
+ id: "http-network",
684
+ title: "HTTP / Network Settings",
685
+ fieldRefs: [
686
+ "jsonData.tlsAuthWithCACert",
687
+ "secureJsonData.tlsCACert",
688
+ "jsonData.tlsAuth",
689
+ "jsonData.serverName",
690
+ "secureJsonData.tlsClientCert",
691
+ "secureJsonData.tlsClientKey",
692
+ "jsonData.tlsSkipVerify",
693
+ "httpHeaders",
694
+ "jsonData.keepCookies",
695
+ "jsonData.timeout",
696
+ "jsonData.customQueryParameters",
697
+ "jsonData.httpMethod",
698
+ "jsonData.pdcInjected"
699
+ ]
700
+ },
701
+ {
702
+ id: "alerting",
703
+ title: "Alerting",
704
+ fieldRefs: [
705
+ "jsonData.manageAlerts",
706
+ "jsonData.allowAsRecordingRulesTarget"
707
+ ]
708
+ },
709
+ {
710
+ id: "interval-behaviour",
711
+ title: "Interval behaviour",
712
+ fieldRefs: [
713
+ "jsonData.timeInterval",
714
+ "jsonData.queryTimeout"
715
+ ]
716
+ },
717
+ {
718
+ id: "query-editor",
719
+ title: "Query editor",
720
+ fieldRefs: [
721
+ "jsonData.defaultEditor",
722
+ "jsonData.disableMetricsLookup"
723
+ ]
724
+ },
725
+ {
726
+ id: "performance",
727
+ title: "Performance",
728
+ fieldRefs: [
729
+ "jsonData.prometheusType",
730
+ "jsonData.prometheusVersion",
731
+ "jsonData.cacheLevel",
732
+ "jsonData.incrementalQuerying",
733
+ "jsonData.incrementalQueryOverlapWindow",
734
+ "jsonData.disableRecordingRules"
735
+ ]
736
+ },
737
+ {
738
+ id: "other",
739
+ title: "Other settings",
740
+ fieldRefs: [
741
+ "jsonData.seriesEndpoint",
742
+ "jsonData.seriesLimit"
743
+ ]
744
+ },
745
+ {
746
+ id: "exemplars",
747
+ title: "Exemplars",
748
+ fieldRefs: [
749
+ "jsonData.exemplarTraceIdDestinations"
750
+ ]
751
+ }
752
+ ];
753
+ var relationships$2 = [
754
+ {
755
+ type: "pair",
756
+ fields: [
757
+ "root.basicAuthUser",
758
+ "secureJsonData.basicAuthPassword"
759
+ ],
760
+ description: "Basic auth credentials"
761
+ },
762
+ {
763
+ type: "pair",
764
+ fields: [
765
+ "secureJsonData.tlsClientCert",
766
+ "secureJsonData.tlsClientKey"
767
+ ],
768
+ description: "TLS client certificate and key"
769
+ }
770
+ ];
771
+ var prometheusSchema = {
772
+ $schema: $schema$4,
773
+ schemaVersion: schemaVersion$4,
774
+ pluginType: pluginType$4,
775
+ pluginName: pluginName$4,
776
+ docURL: docURL$4,
777
+ fields: fields$4,
778
+ groups: groups$4,
779
+ relationships: relationships$2
780
+ };
781
+
782
+ export { $schema$4 as $schema, prometheusSchema as default, docURL$4 as docURL, fields$4 as fields, groups$4 as groups, pluginName$4 as pluginName, pluginType$4 as pluginType, relationships$2 as relationships, schemaVersion$4 as schemaVersion };
783
+ //# sourceMappingURL=prometheus.schema.json.js.map