@grafana/plugin-ui 0.14.1-dsconfig.bccd84e → 0.14.1-dsconfig.ced809d

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 (217) hide show
  1. package/dist/cjs/index.cjs +1076 -318
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/index.d.cts +439 -115
  4. package/dist/cjs/schemas.cjs +14853 -0
  5. package/dist/cjs/schemas.cjs.map +1 -0
  6. package/dist/cjs/schemas.d.cts +373 -0
  7. package/dist/cjs/test-utils.d.cts +23 -23
  8. package/dist/esm/components/ConfigEditor/ConfigSection/ConfigDescriptionLink.js +2 -2
  9. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceConfigWizard.js +14 -9
  10. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceConfigWizard.js.map +1 -1
  11. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceErrorBoundary.js +27 -0
  12. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/DatasourceErrorBoundary.js.map +1 -0
  13. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SchemaField.js +16 -5
  14. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SchemaField.js.map +1 -1
  15. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SidebarNav.js.map +1 -1
  16. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/TabLayout.js +9 -4
  17. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/TabLayout.js.map +1 -1
  18. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/fieldUtils.js +61 -11
  19. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/fieldUtils.js.map +1 -1
  20. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{useDatasourceConfigForm.js → hooks/useDatasourceConfigForm.js} +71 -29
  21. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/hooks/useDatasourceConfigForm.js.map +1 -0
  22. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/hooks/useHealthChecks.js +106 -0
  23. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/hooks/useHealthChecks.js.map +1 -0
  24. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{AuthorizationHeaderField.js → inputs/AuthorizationHeaderField.js} +6 -8
  25. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/AuthorizationHeaderField.js.map +1 -0
  26. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{ComplexFieldNote.js → inputs/ComplexFieldNote.js} +6 -4
  27. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/ComplexFieldNote.js.map +1 -0
  28. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/FileUploadField.js +106 -0
  29. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/FileUploadField.js.map +1 -0
  30. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{IndexedPairEditor.js → inputs/IndexedPairEditor.js} +52 -52
  31. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/IndexedPairEditor.js.map +1 -0
  32. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/ObjectArrayEditor.js +190 -0
  33. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/ObjectArrayEditor.js.map +1 -0
  34. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{PdcFieldNote.js → inputs/PdcFieldNote.js} +5 -8
  35. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/PdcFieldNote.js.map +1 -0
  36. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/{SecureFieldInput.js → inputs/SecureFieldInput.js} +8 -10
  37. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/SecureFieldInput.js.map +1 -0
  38. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/StringArrayInput.js +80 -0
  39. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/inputs/StringArrayInput.js.map +1 -0
  40. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/renderFieldInput.js +76 -41
  41. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/renderFieldInput.js.map +1 -1
  42. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/resolvePluginName.js +30 -0
  43. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/resolvePluginName.js.map +1 -0
  44. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/tabStyles.js +4 -4
  45. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/tabStyles.js.map +1 -1
  46. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/wizardStyles.js +3 -3
  47. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/wizardStyles.js.map +1 -1
  48. package/dist/esm/components/DataLinks/DataLink.js +2 -2
  49. package/dist/esm/components/DataLinks/DataLinks.js +2 -2
  50. package/dist/esm/components/DataSourcePicker/DataSourcePicker.js +7 -7
  51. package/dist/esm/components/DatePicker/styles.js +2 -2
  52. package/dist/esm/components/DatePickerWithInput/styles.js +2 -2
  53. package/dist/esm/components/QueryEditor/EditorField.js +2 -2
  54. package/dist/esm/components/QueryEditor/EditorHeader.js +2 -2
  55. package/dist/esm/components/QueryEditor/EditorRow.js +2 -2
  56. package/dist/esm/components/QueryEditor/EditorSwitch.js +2 -2
  57. package/dist/esm/components/QueryEditor/InputGroup.js +2 -2
  58. package/dist/esm/components/QueryEditor/Space.js +2 -2
  59. package/dist/esm/components/QueryEditor/query-editor-raw/RawEditor.js +2 -2
  60. package/dist/esm/components/QueryEditor/visual-query-builder/EditorField.js +2 -2
  61. package/dist/esm/components/QueryEditor/visual-query-builder/EditorRow.js +2 -2
  62. package/dist/esm/components/QueryEditor/visual-query-builder/Preview.js +2 -2
  63. package/dist/esm/components/QueryEditor/visual-query-builder/SelectRow.js +2 -2
  64. package/dist/esm/datasource/SqlDatasource.js +10 -10
  65. package/dist/esm/datasource/schema/cel.js +42 -0
  66. package/dist/esm/datasource/schema/cel.js.map +1 -0
  67. package/dist/esm/datasource/schema/config.js +37 -14
  68. package/dist/esm/datasource/schema/config.js.map +1 -1
  69. package/dist/esm/datasource/schema/datasource.js +129 -3
  70. package/dist/esm/datasource/schema/datasource.js.map +1 -1
  71. package/dist/esm/datasource/schema/datasources/alertmanager.schema.json.js +77 -0
  72. package/dist/esm/datasource/schema/datasources/alertmanager.schema.json.js.map +1 -0
  73. package/dist/esm/datasource/schema/datasources/cloudwatch.schema.json.js +384 -0
  74. package/dist/esm/datasource/schema/datasources/cloudwatch.schema.json.js.map +1 -0
  75. package/dist/esm/datasource/schema/datasources/elasticsearch.schema.json.js +287 -0
  76. package/dist/esm/datasource/schema/datasources/elasticsearch.schema.json.js.map +1 -0
  77. package/dist/esm/datasource/schema/datasources/grafana-amazonprometheus-datasource.schema.json.js +166 -0
  78. package/dist/esm/datasource/schema/datasources/grafana-amazonprometheus-datasource.schema.json.js.map +1 -0
  79. package/dist/esm/datasource/schema/datasources/grafana-appdynamics-datasource.schema.json.js +145 -0
  80. package/dist/esm/datasource/schema/datasources/grafana-appdynamics-datasource.schema.json.js.map +1 -0
  81. package/dist/esm/datasource/schema/datasources/grafana-astradb-datasource.schema.json.js +123 -0
  82. package/dist/esm/datasource/schema/datasources/grafana-astradb-datasource.schema.json.js.map +1 -0
  83. package/dist/esm/datasource/schema/datasources/grafana-athena-datasource.schema.json.js +158 -0
  84. package/dist/esm/datasource/schema/datasources/grafana-athena-datasource.schema.json.js.map +1 -0
  85. package/dist/esm/datasource/schema/datasources/grafana-azure-data-explorer-datasource.schema.json.js +204 -0
  86. package/dist/esm/datasource/schema/datasources/grafana-azure-data-explorer-datasource.schema.json.js.map +1 -0
  87. package/dist/esm/datasource/schema/datasources/grafana-azure-monitor-datasource.schema.json.js +294 -0
  88. package/dist/esm/datasource/schema/datasources/grafana-azure-monitor-datasource.schema.json.js.map +1 -0
  89. package/dist/esm/datasource/schema/datasources/grafana-azuredevops-datasource.schema.json.js +101 -0
  90. package/dist/esm/datasource/schema/datasources/grafana-azuredevops-datasource.schema.json.js.map +1 -0
  91. package/dist/esm/datasource/schema/datasources/grafana-azureprometheus-datasource.schema.json.js +125 -0
  92. package/dist/esm/datasource/schema/datasources/grafana-azureprometheus-datasource.schema.json.js.map +1 -0
  93. package/dist/esm/datasource/schema/datasources/grafana-bigquery-datasource.schema.json.js +508 -0
  94. package/dist/esm/datasource/schema/datasources/grafana-bigquery-datasource.schema.json.js.map +1 -0
  95. package/dist/esm/datasource/schema/datasources/grafana-clickhouse-datasource.schema.json.js +1400 -0
  96. package/dist/esm/datasource/schema/datasources/grafana-clickhouse-datasource.schema.json.js.map +1 -0
  97. package/dist/esm/datasource/schema/datasources/grafana-cockroachdb-datasource.schema.json.js +302 -0
  98. package/dist/esm/datasource/schema/datasources/grafana-cockroachdb-datasource.schema.json.js.map +1 -0
  99. package/dist/esm/datasource/schema/datasources/grafana-databricks-datasource.schema.json.js +291 -0
  100. package/dist/esm/datasource/schema/datasources/grafana-databricks-datasource.schema.json.js.map +1 -0
  101. package/dist/esm/datasource/schema/datasources/grafana-datadog-datasource.schema.json.js +155 -0
  102. package/dist/esm/datasource/schema/datasources/grafana-datadog-datasource.schema.json.js.map +1 -0
  103. package/dist/esm/datasource/schema/datasources/grafana-dynatrace-datasource.schema.json.js +179 -0
  104. package/dist/esm/datasource/schema/datasources/grafana-dynatrace-datasource.schema.json.js.map +1 -0
  105. package/dist/esm/datasource/schema/datasources/grafana-falconlogscale-datasource.schema.json.js +134 -0
  106. package/dist/esm/datasource/schema/datasources/grafana-falconlogscale-datasource.schema.json.js.map +1 -0
  107. package/dist/esm/datasource/schema/datasources/grafana-github-datasource.schema.json.js +156 -0
  108. package/dist/esm/datasource/schema/datasources/grafana-github-datasource.schema.json.js.map +1 -0
  109. package/dist/esm/datasource/schema/datasources/grafana-gitlab-datasource.schema.json.js +84 -0
  110. package/dist/esm/datasource/schema/datasources/grafana-gitlab-datasource.schema.json.js.map +1 -0
  111. package/dist/esm/datasource/schema/datasources/grafana-googlesheets-datasource.schema.json.js +231 -0
  112. package/dist/esm/datasource/schema/datasources/grafana-googlesheets-datasource.schema.json.js.map +1 -0
  113. package/dist/esm/datasource/schema/datasources/grafana-honeycomb-datasource.schema.json.js +87 -0
  114. package/dist/esm/datasource/schema/datasources/grafana-honeycomb-datasource.schema.json.js.map +1 -0
  115. package/dist/esm/datasource/schema/datasources/grafana-iot-sitewise-datasource.schema.json.js +159 -0
  116. package/dist/esm/datasource/schema/datasources/grafana-iot-sitewise-datasource.schema.json.js.map +1 -0
  117. package/dist/esm/datasource/schema/datasources/grafana-jira-datasource.schema.json.js +188 -0
  118. package/dist/esm/datasource/schema/datasources/grafana-jira-datasource.schema.json.js.map +1 -0
  119. package/dist/esm/datasource/schema/datasources/grafana-looker-datasource.schema.json.js +82 -0
  120. package/dist/esm/datasource/schema/datasources/grafana-looker-datasource.schema.json.js.map +1 -0
  121. package/dist/esm/datasource/schema/datasources/grafana-mongodb-datasource.schema.json.js +278 -0
  122. package/dist/esm/datasource/schema/datasources/grafana-mongodb-datasource.schema.json.js.map +1 -0
  123. package/dist/esm/datasource/schema/datasources/grafana-mqtt-datasource.schema.json.js +168 -0
  124. package/dist/esm/datasource/schema/datasources/grafana-mqtt-datasource.schema.json.js.map +1 -0
  125. package/dist/esm/datasource/schema/datasources/grafana-newrelic-datasource.schema.json.js +129 -0
  126. package/dist/esm/datasource/schema/datasources/grafana-newrelic-datasource.schema.json.js.map +1 -0
  127. package/dist/esm/datasource/schema/datasources/grafana-odbc-datasource.schema.json.js +56 -0
  128. package/dist/esm/datasource/schema/datasources/grafana-odbc-datasource.schema.json.js.map +1 -0
  129. package/dist/esm/datasource/schema/datasources/grafana-opensearch-datasource.schema.json.js +212 -0
  130. package/dist/esm/datasource/schema/datasources/grafana-opensearch-datasource.schema.json.js.map +1 -0
  131. package/dist/esm/datasource/schema/datasources/grafana-oracle-datasource.schema.json.js +186 -0
  132. package/dist/esm/datasource/schema/datasources/grafana-oracle-datasource.schema.json.js.map +1 -0
  133. package/dist/esm/datasource/schema/datasources/grafana-pagerduty-datasource.schema.json.js +85 -0
  134. package/dist/esm/datasource/schema/datasources/grafana-pagerduty-datasource.schema.json.js.map +1 -0
  135. package/dist/esm/datasource/schema/datasources/grafana-postgresql-datasource.schema.json.js +411 -0
  136. package/dist/esm/datasource/schema/datasources/grafana-postgresql-datasource.schema.json.js.map +1 -0
  137. package/dist/esm/datasource/schema/datasources/grafana-pyroscope-datasource.schema.json.js +41 -0
  138. package/dist/esm/datasource/schema/datasources/grafana-pyroscope-datasource.schema.json.js.map +1 -0
  139. package/dist/esm/datasource/schema/datasources/grafana-redshift-datasource.schema.json.js +201 -0
  140. package/dist/esm/datasource/schema/datasources/grafana-redshift-datasource.schema.json.js.map +1 -0
  141. package/dist/esm/datasource/schema/datasources/grafana-salesforce-datasource.schema.json.js +201 -0
  142. package/dist/esm/datasource/schema/datasources/grafana-salesforce-datasource.schema.json.js.map +1 -0
  143. package/dist/esm/datasource/schema/datasources/grafana-saphana-datasource.schema.json.js +208 -0
  144. package/dist/esm/datasource/schema/datasources/grafana-saphana-datasource.schema.json.js.map +1 -0
  145. package/dist/esm/datasource/schema/datasources/grafana-sentry-datasource.schema.json.js +94 -0
  146. package/dist/esm/datasource/schema/datasources/grafana-sentry-datasource.schema.json.js.map +1 -0
  147. package/dist/esm/datasource/schema/datasources/grafana-servicenow-datasource.schema.json.js +179 -0
  148. package/dist/esm/datasource/schema/datasources/grafana-servicenow-datasource.schema.json.js.map +1 -0
  149. package/dist/esm/datasource/schema/datasources/grafana-snowflake-datasource.schema.json.js +304 -0
  150. package/dist/esm/datasource/schema/datasources/grafana-snowflake-datasource.schema.json.js.map +1 -0
  151. package/dist/esm/datasource/schema/datasources/grafana-splunk-datasource.schema.json.js +319 -0
  152. package/dist/esm/datasource/schema/datasources/grafana-splunk-datasource.schema.json.js.map +1 -0
  153. package/dist/esm/datasource/schema/datasources/grafana-splunkobservability-datasource.schema.json.js +90 -0
  154. package/dist/esm/datasource/schema/datasources/grafana-splunkobservability-datasource.schema.json.js.map +1 -0
  155. package/dist/esm/datasource/schema/datasources/grafana-strava-datasource.schema.json.js +74 -0
  156. package/dist/esm/datasource/schema/datasources/grafana-strava-datasource.schema.json.js.map +1 -0
  157. package/dist/esm/datasource/schema/datasources/grafana-sumologic-datasource.schema.json.js +102 -0
  158. package/dist/esm/datasource/schema/datasources/grafana-sumologic-datasource.schema.json.js.map +1 -0
  159. package/dist/esm/datasource/schema/datasources/grafana-surrealdb-datasource.schema.json.js +92 -0
  160. package/dist/esm/datasource/schema/datasources/grafana-surrealdb-datasource.schema.json.js.map +1 -0
  161. package/dist/esm/datasource/schema/datasources/grafana-timestream-datasource.schema.json.js +145 -0
  162. package/dist/esm/datasource/schema/datasources/grafana-timestream-datasource.schema.json.js.map +1 -0
  163. package/dist/esm/datasource/schema/datasources/grafana-wavefront-datasource.schema.json.js +80 -0
  164. package/dist/esm/datasource/schema/datasources/grafana-wavefront-datasource.schema.json.js.map +1 -0
  165. package/dist/esm/datasource/schema/datasources/grafana-x-ray-datasource.schema.json.js +112 -0
  166. package/dist/esm/datasource/schema/datasources/grafana-x-ray-datasource.schema.json.js.map +1 -0
  167. package/dist/esm/datasource/schema/datasources/grafana-yugabyte-datasource.schema.json.js +114 -0
  168. package/dist/esm/datasource/schema/datasources/grafana-yugabyte-datasource.schema.json.js.map +1 -0
  169. package/dist/esm/datasource/schema/datasources/graphite.schema.json.js +104 -0
  170. package/dist/esm/datasource/schema/datasources/graphite.schema.json.js.map +1 -0
  171. package/dist/esm/datasource/schema/datasources/influxdb.schema.json.js +717 -0
  172. package/dist/esm/datasource/schema/datasources/influxdb.schema.json.js.map +1 -0
  173. package/dist/esm/datasource/schema/datasources/jaeger.schema.json.js +59 -0
  174. package/dist/esm/datasource/schema/datasources/jaeger.schema.json.js.map +1 -0
  175. package/dist/esm/datasource/schema/datasources/loki.schema.json.js +545 -0
  176. package/dist/esm/datasource/schema/datasources/loki.schema.json.js.map +1 -0
  177. package/dist/esm/datasource/schema/datasources/marcusolsson-csv-datasource.schema.json.js +45 -0
  178. package/dist/esm/datasource/schema/datasources/marcusolsson-csv-datasource.schema.json.js.map +1 -0
  179. package/dist/esm/datasource/schema/datasources/marcusolsson-json-datasource.schema.json.js +36 -0
  180. package/dist/esm/datasource/schema/datasources/marcusolsson-json-datasource.schema.json.js.map +1 -0
  181. package/dist/esm/datasource/schema/datasources/mssql.schema.json.js +292 -0
  182. package/dist/esm/datasource/schema/datasources/mssql.schema.json.js.map +1 -0
  183. package/dist/esm/datasource/schema/datasources/mysql.schema.json.js +304 -0
  184. package/dist/esm/datasource/schema/datasources/mysql.schema.json.js.map +1 -0
  185. package/dist/esm/datasource/schema/datasources/opentsdb.schema.json.js +113 -0
  186. package/dist/esm/datasource/schema/datasources/opentsdb.schema.json.js.map +1 -0
  187. package/dist/esm/datasource/schema/datasources/prometheus.schema.json.js +783 -0
  188. package/dist/esm/datasource/schema/datasources/prometheus.schema.json.js.map +1 -0
  189. package/dist/esm/datasource/schema/datasources/stackdriver.schema.json.js +224 -0
  190. package/dist/esm/datasource/schema/datasources/stackdriver.schema.json.js.map +1 -0
  191. package/dist/esm/datasource/schema/datasources/tempo.schema.json.js +664 -0
  192. package/dist/esm/datasource/schema/datasources/tempo.schema.json.js.map +1 -0
  193. package/dist/esm/datasource/schema/datasources/yesoreyeram-infinity-datasource.schema.json.js +1073 -0
  194. package/dist/esm/datasource/schema/datasources/yesoreyeram-infinity-datasource.schema.json.js.map +1 -0
  195. package/dist/esm/datasource/schema/datasources/zipkin.schema.json.js +40 -0
  196. package/dist/esm/datasource/schema/datasources/zipkin.schema.json.js.map +1 -0
  197. package/dist/esm/datasource/schema/llmHints.js.map +1 -1
  198. package/dist/esm/datasource/schema/provisioningYaml.js +3 -1
  199. package/dist/esm/datasource/schema/provisioningYaml.js.map +1 -1
  200. package/dist/esm/datasource/schema/schemaRegistry.js +139 -0
  201. package/dist/esm/datasource/schema/schemaRegistry.js.map +1 -0
  202. package/dist/esm/index.d.ts +439 -115
  203. package/dist/esm/index.js +6 -2
  204. package/dist/esm/index.js.map +1 -1
  205. package/dist/esm/schemas.d.ts +373 -0
  206. package/dist/esm/schemas.js +2 -0
  207. package/dist/esm/schemas.js.map +1 -0
  208. package/dist/esm/test-utils.d.ts +23 -23
  209. package/package.json +23 -6
  210. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/AuthorizationHeaderField.js.map +0 -1
  211. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/ComplexFieldNote.js.map +0 -1
  212. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/IndexedPairEditor.js.map +0 -1
  213. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/PdcFieldNote.js.map +0 -1
  214. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/SecureFieldInput.js.map +0 -1
  215. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/StringArrayInput.js +0 -84
  216. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/StringArrayInput.js.map +0 -1
  217. package/dist/esm/components/ConfigEditor/DatasourceConfigWizard/useDatasourceConfigForm.js.map +0 -1
@@ -0,0 +1,1400 @@
1
+ var $schema$O = "../schema.json";
2
+ var schemaVersion$O = "v1";
3
+ var pluginType$O = "grafana-clickhouse-datasource";
4
+ var pluginName$O = "ClickHouse";
5
+ var docURL$p = "https://grafana.com/grafana/plugins/grafana-clickhouse-datasource/";
6
+ var fields$O = [
7
+ {
8
+ id: "jsonData.host",
9
+ key: "host",
10
+ label: "Server address",
11
+ description: "ClickHouse host address.",
12
+ valueType: "string",
13
+ target: "jsonData",
14
+ required: true,
15
+ storage: {
16
+ type: "computed",
17
+ read: "jsonData.server"
18
+ },
19
+ ui: {
20
+ component: "input",
21
+ placeholder: "Enter server address"
22
+ }
23
+ },
24
+ {
25
+ id: "jsonData.port",
26
+ key: "port",
27
+ label: "Server port",
28
+ description: "ClickHouse server port.",
29
+ valueType: "number",
30
+ target: "jsonData",
31
+ required: true,
32
+ defaultValue: 9000,
33
+ overrides: [
34
+ {
35
+ when: "jsonData.protocol == 'native' && jsonData.secure != true",
36
+ description: "ClickHouse server port (default for Native: 9000).",
37
+ defaultValue: 9000
38
+ },
39
+ {
40
+ when: "jsonData.protocol == 'native' && jsonData.secure == true",
41
+ description: "ClickHouse server port (default for Native (secure): 9440).",
42
+ defaultValue: 9440
43
+ },
44
+ {
45
+ when: "jsonData.protocol == 'http' && jsonData.secure != true",
46
+ description: "ClickHouse server port (default for HTTP: 8123).",
47
+ defaultValue: 8123
48
+ },
49
+ {
50
+ when: "jsonData.protocol == 'http' && jsonData.secure == true",
51
+ description: "ClickHouse server port (default for HTTPS: 8443).",
52
+ defaultValue: 8443
53
+ }
54
+ ]
55
+ },
56
+ {
57
+ id: "jsonData.protocol",
58
+ key: "protocol",
59
+ label: "Protocol",
60
+ description: "Native is the default protocol.",
61
+ valueType: "string",
62
+ target: "jsonData",
63
+ required: true,
64
+ defaultValue: "native",
65
+ validations: [
66
+ {
67
+ type: "allowedValues",
68
+ values: [
69
+ "native",
70
+ "http"
71
+ ]
72
+ }
73
+ ],
74
+ ui: {
75
+ component: "radio",
76
+ options: [
77
+ {
78
+ label: "Native",
79
+ value: "native"
80
+ },
81
+ {
82
+ label: "HTTP",
83
+ value: "http"
84
+ }
85
+ ]
86
+ }
87
+ },
88
+ {
89
+ id: "jsonData.username",
90
+ key: "username",
91
+ label: "Username",
92
+ description: "We recommend configuring a read-only user.",
93
+ valueType: "string",
94
+ target: "jsonData",
95
+ required: true,
96
+ ui: {
97
+ component: "input",
98
+ placeholder: "Enter username"
99
+ }
100
+ },
101
+ {
102
+ id: "secureJsonData.password",
103
+ key: "password",
104
+ label: "Password",
105
+ description: "ClickHouse password.",
106
+ valueType: "string",
107
+ required: true,
108
+ semanticType: "password",
109
+ target: "secureJsonData"
110
+ },
111
+ {
112
+ id: "jsonData.version",
113
+ key: "version",
114
+ label: "Plugin version",
115
+ description: "Plugin version this config was saved with.",
116
+ valueType: "string",
117
+ target: "jsonData"
118
+ },
119
+ {
120
+ id: "jsonData.secure",
121
+ key: "secure",
122
+ label: "Secure Connection",
123
+ description: "Check to connect securely with TLS.",
124
+ valueType: "boolean",
125
+ target: "jsonData",
126
+ ui: {
127
+ component: "switch"
128
+ }
129
+ },
130
+ {
131
+ id: "jsonData.path",
132
+ key: "path",
133
+ label: "HTTP URL Path",
134
+ description: "Additional URL path for HTTP requests. Default: /",
135
+ valueType: "string",
136
+ target: "jsonData",
137
+ dependsOn: "jsonData.protocol == 'http'",
138
+ ui: {
139
+ component: "input",
140
+ placeholder: "additional-path"
141
+ }
142
+ },
143
+ {
144
+ id: "jsonData.tlsSkipVerify",
145
+ key: "tlsSkipVerify",
146
+ label: "Skip TLS Verify",
147
+ description: "Skip TLS certificate verification.",
148
+ valueType: "boolean",
149
+ target: "jsonData",
150
+ ui: {
151
+ component: "switch"
152
+ }
153
+ },
154
+ {
155
+ id: "jsonData.tlsAuth",
156
+ key: "tlsAuth",
157
+ label: "TLS Client Auth",
158
+ description: "Enable TLS client certificate authentication.",
159
+ valueType: "boolean",
160
+ target: "jsonData",
161
+ ui: {
162
+ component: "switch"
163
+ }
164
+ },
165
+ {
166
+ id: "jsonData.tlsAuthWithCACert",
167
+ key: "tlsAuthWithCACert",
168
+ label: "With CA Cert",
169
+ description: "Needed for verifying self-signed TLS Certs.",
170
+ valueType: "boolean",
171
+ target: "jsonData",
172
+ ui: {
173
+ component: "switch"
174
+ }
175
+ },
176
+ {
177
+ id: "jsonData.defaultDatabase",
178
+ key: "defaultDatabase",
179
+ label: "Default database",
180
+ description: "The default database used by the query builder.",
181
+ valueType: "string",
182
+ target: "jsonData",
183
+ ui: {
184
+ component: "input",
185
+ placeholder: "default"
186
+ }
187
+ },
188
+ {
189
+ id: "jsonData.defaultTable",
190
+ key: "defaultTable",
191
+ label: "Default table",
192
+ description: "The default table used by the query builder.",
193
+ valueType: "string",
194
+ target: "jsonData",
195
+ ui: {
196
+ component: "input",
197
+ placeholder: "table"
198
+ }
199
+ },
200
+ {
201
+ id: "jsonData.connMaxLifetime",
202
+ key: "connMaxLifetime",
203
+ label: "Connection Max Lifetime (minutes)",
204
+ description: "Maximum lifetime of a connection in minutes.",
205
+ valueType: "string",
206
+ target: "jsonData",
207
+ ui: {
208
+ component: "input",
209
+ placeholder: "5"
210
+ }
211
+ },
212
+ {
213
+ id: "jsonData.dialTimeout",
214
+ key: "dialTimeout",
215
+ label: "Dial Timeout (seconds)",
216
+ description: "Timeout in seconds for establishing a connection. Default: 10.",
217
+ valueType: "string",
218
+ target: "jsonData",
219
+ defaultValue: "10",
220
+ ui: {
221
+ component: "input",
222
+ placeholder: "10"
223
+ }
224
+ },
225
+ {
226
+ id: "jsonData.maxIdleConns",
227
+ key: "maxIdleConns",
228
+ label: "Max Idle Connections",
229
+ description: "Maximum number of idle connections.",
230
+ valueType: "string",
231
+ target: "jsonData",
232
+ ui: {
233
+ component: "input",
234
+ placeholder: "25"
235
+ }
236
+ },
237
+ {
238
+ id: "jsonData.maxOpenConns",
239
+ key: "maxOpenConns",
240
+ label: "Max Open Connections",
241
+ description: "Maximum number of open connections.",
242
+ valueType: "string",
243
+ target: "jsonData",
244
+ ui: {
245
+ component: "input",
246
+ placeholder: "50"
247
+ }
248
+ },
249
+ {
250
+ id: "jsonData.queryTimeout",
251
+ key: "queryTimeout",
252
+ label: "Query Timeout (seconds)",
253
+ description: "Timeout in seconds for read queries. Default: 60.",
254
+ valueType: "string",
255
+ target: "jsonData",
256
+ defaultValue: "60",
257
+ ui: {
258
+ component: "input",
259
+ placeholder: "60"
260
+ }
261
+ },
262
+ {
263
+ id: "jsonData.validateSql",
264
+ key: "validateSql",
265
+ label: "Validate SQL",
266
+ description: "Validate SQL in the editor.",
267
+ valueType: "boolean",
268
+ target: "jsonData",
269
+ ui: {
270
+ component: "switch"
271
+ }
272
+ },
273
+ {
274
+ id: "jsonData.forwardGrafanaHeaders",
275
+ key: "forwardGrafanaHeaders",
276
+ label: "Forward Grafana HTTP Headers to data source",
277
+ description: "Forward Grafana HTTP Headers to data source.",
278
+ valueType: "boolean",
279
+ target: "jsonData",
280
+ dependsOn: "jsonData.protocol == 'http'",
281
+ ui: {
282
+ component: "switch"
283
+ }
284
+ },
285
+ {
286
+ id: "jsonData.enableRowLimit",
287
+ key: "enableRowLimit",
288
+ label: "Enable row limit",
289
+ description: "Enable using the Grafana row limit setting to limit the number of rows returned from ClickHouse. Ensure the appropriate permissions are set for your user. Only supported for Grafana >= 11.0.0. Defaults to false.",
290
+ valueType: "boolean",
291
+ target: "jsonData",
292
+ ui: {
293
+ component: "switch"
294
+ }
295
+ },
296
+ {
297
+ id: "secureJsonData.tlsCACert",
298
+ key: "tlsCACert",
299
+ label: "CA Cert",
300
+ description: "PEM-encoded CA certificate.",
301
+ valueType: "string",
302
+ target: "secureJsonData",
303
+ dependsOn: "jsonData.tlsAuthWithCACert == true",
304
+ ui: {
305
+ component: "textarea",
306
+ rows: 7
307
+ }
308
+ },
309
+ {
310
+ id: "secureJsonData.tlsClientCert",
311
+ key: "tlsClientCert",
312
+ label: "Client Cert",
313
+ description: "PEM-encoded client certificate.",
314
+ valueType: "string",
315
+ target: "secureJsonData",
316
+ dependsOn: "jsonData.tlsAuth == true",
317
+ ui: {
318
+ component: "textarea",
319
+ rows: 7
320
+ }
321
+ },
322
+ {
323
+ id: "secureJsonData.tlsClientKey",
324
+ key: "tlsClientKey",
325
+ label: "Client Key",
326
+ description: "PEM-encoded client private key.",
327
+ valueType: "string",
328
+ semanticType: "token",
329
+ target: "secureJsonData",
330
+ dependsOn: "jsonData.tlsAuth == true",
331
+ ui: {
332
+ component: "textarea",
333
+ rows: 7
334
+ }
335
+ },
336
+ {
337
+ id: "jsonData.logs.defaultDatabase",
338
+ key: "defaultDatabase",
339
+ label: "Default log database",
340
+ description: "The default database used by the logs query builder.",
341
+ valueType: "string",
342
+ target: "jsonData",
343
+ section: "logs",
344
+ ui: {
345
+ component: "input",
346
+ placeholder: "default"
347
+ }
348
+ },
349
+ {
350
+ id: "jsonData.logs.defaultTable",
351
+ key: "defaultTable",
352
+ label: "Default log table",
353
+ description: "The default table used by the logs query builder.",
354
+ valueType: "string",
355
+ target: "jsonData",
356
+ section: "logs",
357
+ defaultValue: "otel_logs",
358
+ ui: {
359
+ component: "input",
360
+ placeholder: "otel_logs"
361
+ }
362
+ },
363
+ {
364
+ id: "jsonData.logs.otelEnabled",
365
+ key: "otelEnabled",
366
+ label: "Use OTel",
367
+ description: "Enable OpenTelemetry schema versioning for log column mappings.",
368
+ valueType: "boolean",
369
+ target: "jsonData",
370
+ section: "logs",
371
+ ui: {
372
+ component: "switch"
373
+ }
374
+ },
375
+ {
376
+ id: "jsonData.logs.otelVersion",
377
+ key: "otelVersion",
378
+ label: "OTel version",
379
+ description: "OpenTelemetry schema version for log columns. Select the version that matches your OTel ClickHouse exporter.",
380
+ valueType: "string",
381
+ target: "jsonData",
382
+ section: "logs",
383
+ defaultValue: "latest",
384
+ dependsOn: "jsonData.logs.otelEnabled == true",
385
+ validations: [
386
+ {
387
+ type: "allowedValues",
388
+ values: [
389
+ "latest",
390
+ "1.29.0"
391
+ ]
392
+ }
393
+ ],
394
+ ui: {
395
+ component: "select",
396
+ options: [
397
+ {
398
+ label: "latest (1.2.9)",
399
+ value: "latest"
400
+ },
401
+ {
402
+ label: "1.2.9",
403
+ value: "1.29.0"
404
+ }
405
+ ]
406
+ }
407
+ },
408
+ {
409
+ id: "jsonData.logs.filterTimeColumn",
410
+ key: "filterTimeColumn",
411
+ label: "Filter Time column",
412
+ description: "Column for time-based partition filtering (lower precision).",
413
+ valueType: "string",
414
+ target: "jsonData",
415
+ section: "logs",
416
+ defaultValue: "",
417
+ ui: {
418
+ component: "input",
419
+ placeholder: "filter_time_column"
420
+ },
421
+ overrides: [
422
+ {
423
+ when: "jsonData.logs.otelEnabled == true",
424
+ readOnly: true,
425
+ description: "Set by OTel schema version",
426
+ defaultValue: "TimestampTime",
427
+ placeholder: "TimestampTime"
428
+ }
429
+ ]
430
+ },
431
+ {
432
+ id: "jsonData.logs.timeColumn",
433
+ key: "timeColumn",
434
+ label: "Time column",
435
+ description: "Column for the log timestamp.",
436
+ valueType: "string",
437
+ target: "jsonData",
438
+ section: "logs",
439
+ defaultValue: "",
440
+ ui: {
441
+ component: "input",
442
+ placeholder: "time_column"
443
+ },
444
+ overrides: [
445
+ {
446
+ when: "jsonData.logs.otelEnabled == true",
447
+ readOnly: true,
448
+ description: "Set by OTel schema version",
449
+ defaultValue: "Timestamp",
450
+ placeholder: "Timestamp"
451
+ }
452
+ ]
453
+ },
454
+ {
455
+ id: "jsonData.logs.levelColumn",
456
+ key: "levelColumn",
457
+ label: "Log Level column",
458
+ description: "Column for the log level.",
459
+ valueType: "string",
460
+ target: "jsonData",
461
+ section: "logs",
462
+ defaultValue: "",
463
+ ui: {
464
+ component: "input",
465
+ placeholder: "log_level_column"
466
+ },
467
+ overrides: [
468
+ {
469
+ when: "jsonData.logs.otelEnabled == true",
470
+ readOnly: true,
471
+ description: "Set by OTel schema version",
472
+ defaultValue: "SeverityText",
473
+ placeholder: "SeverityText"
474
+ }
475
+ ]
476
+ },
477
+ {
478
+ id: "jsonData.logs.messageColumn",
479
+ key: "messageColumn",
480
+ label: "Log Message column",
481
+ description: "Column for the log message body.",
482
+ valueType: "string",
483
+ target: "jsonData",
484
+ section: "logs",
485
+ defaultValue: "",
486
+ ui: {
487
+ component: "input",
488
+ placeholder: "log_message_column"
489
+ },
490
+ overrides: [
491
+ {
492
+ when: "jsonData.logs.otelEnabled == true",
493
+ readOnly: true,
494
+ description: "Set by OTel schema version",
495
+ defaultValue: "Body",
496
+ placeholder: "Body"
497
+ }
498
+ ]
499
+ },
500
+ {
501
+ id: "jsonData.logs.showLogLinks",
502
+ key: "showLogLinks",
503
+ label: "Show \"View logs\" links",
504
+ description: "Show \"View logs\" links on trace_id fields for log-to-trace correlation.",
505
+ valueType: "boolean",
506
+ target: "jsonData",
507
+ section: "logs",
508
+ defaultValue: true,
509
+ ui: {
510
+ component: "switch"
511
+ }
512
+ },
513
+ {
514
+ id: "jsonData.logs.selectContextColumns",
515
+ key: "selectContextColumns",
516
+ label: "Auto-Select Columns",
517
+ description: "When enabled, always include context columns in log queries.",
518
+ valueType: "boolean",
519
+ target: "jsonData",
520
+ section: "logs",
521
+ defaultValue: true,
522
+ ui: {
523
+ component: "switch"
524
+ }
525
+ },
526
+ {
527
+ id: "jsonData.logs.contextColumns",
528
+ key: "contextColumns",
529
+ label: "Context Columns",
530
+ description: "Column names used for identifying a log's source context.",
531
+ valueType: "array",
532
+ target: "jsonData",
533
+ section: "logs",
534
+ item: {
535
+ valueType: "string"
536
+ }
537
+ },
538
+ {
539
+ id: "jsonData.traces.defaultDatabase",
540
+ key: "defaultDatabase",
541
+ label: "Default trace database",
542
+ description: "The default database used by the trace query builder.",
543
+ valueType: "string",
544
+ target: "jsonData",
545
+ section: "traces",
546
+ ui: {
547
+ component: "input",
548
+ placeholder: "default"
549
+ }
550
+ },
551
+ {
552
+ id: "jsonData.traces.defaultTable",
553
+ key: "defaultTable",
554
+ label: "Default trace table",
555
+ description: "The default table used by the trace query builder.",
556
+ valueType: "string",
557
+ target: "jsonData",
558
+ section: "traces",
559
+ defaultValue: "otel_traces",
560
+ ui: {
561
+ component: "input",
562
+ placeholder: "otel_traces"
563
+ }
564
+ },
565
+ {
566
+ id: "jsonData.traces.otelEnabled",
567
+ key: "otelEnabled",
568
+ label: "Use OTel",
569
+ description: "Enable OpenTelemetry schema versioning for trace column mappings.",
570
+ valueType: "boolean",
571
+ target: "jsonData",
572
+ section: "traces",
573
+ ui: {
574
+ component: "switch"
575
+ }
576
+ },
577
+ {
578
+ id: "jsonData.traces.otelVersion",
579
+ key: "otelVersion",
580
+ label: "OTel version",
581
+ description: "OpenTelemetry schema version for trace columns. Select the version that matches your OTel ClickHouse exporter.",
582
+ valueType: "string",
583
+ target: "jsonData",
584
+ section: "traces",
585
+ defaultValue: "latest",
586
+ dependsOn: "jsonData.traces.otelEnabled == true",
587
+ validations: [
588
+ {
589
+ type: "allowedValues",
590
+ values: [
591
+ "latest",
592
+ "1.29.0"
593
+ ]
594
+ }
595
+ ],
596
+ ui: {
597
+ component: "select",
598
+ options: [
599
+ {
600
+ label: "latest (1.2.9)",
601
+ value: "latest"
602
+ },
603
+ {
604
+ label: "1.2.9",
605
+ value: "1.29.0"
606
+ }
607
+ ]
608
+ }
609
+ },
610
+ {
611
+ id: "jsonData.traces.traceIdColumn",
612
+ key: "traceIdColumn",
613
+ label: "Trace ID column",
614
+ description: "Column for the trace ID.",
615
+ valueType: "string",
616
+ target: "jsonData",
617
+ section: "traces",
618
+ defaultValue: "",
619
+ ui: {
620
+ component: "input",
621
+ placeholder: "trace_id_column"
622
+ },
623
+ overrides: [
624
+ {
625
+ when: "jsonData.traces.otelEnabled == true",
626
+ readOnly: true,
627
+ description: "Set by OTel schema version",
628
+ defaultValue: "TraceId",
629
+ placeholder: "TraceId"
630
+ }
631
+ ]
632
+ },
633
+ {
634
+ id: "jsonData.traces.spanIdColumn",
635
+ key: "spanIdColumn",
636
+ label: "Span ID column",
637
+ description: "Column for the span ID.",
638
+ valueType: "string",
639
+ target: "jsonData",
640
+ section: "traces",
641
+ defaultValue: "",
642
+ ui: {
643
+ component: "input",
644
+ placeholder: "span_id_column"
645
+ },
646
+ overrides: [
647
+ {
648
+ when: "jsonData.traces.otelEnabled == true",
649
+ readOnly: true,
650
+ description: "Set by OTel schema version",
651
+ defaultValue: "SpanId",
652
+ placeholder: "SpanId"
653
+ }
654
+ ]
655
+ },
656
+ {
657
+ id: "jsonData.traces.operationNameColumn",
658
+ key: "operationNameColumn",
659
+ label: "Operation Name column",
660
+ description: "Column for the operation/span name.",
661
+ valueType: "string",
662
+ target: "jsonData",
663
+ section: "traces",
664
+ defaultValue: "",
665
+ ui: {
666
+ component: "input",
667
+ placeholder: "operation_name_column"
668
+ },
669
+ overrides: [
670
+ {
671
+ when: "jsonData.traces.otelEnabled == true",
672
+ readOnly: true,
673
+ description: "Set by OTel schema version",
674
+ defaultValue: "SpanName",
675
+ placeholder: "SpanName"
676
+ }
677
+ ]
678
+ },
679
+ {
680
+ id: "jsonData.traces.parentSpanIdColumn",
681
+ key: "parentSpanIdColumn",
682
+ label: "Parent Span ID column",
683
+ description: "Column for the parent span ID.",
684
+ valueType: "string",
685
+ target: "jsonData",
686
+ section: "traces",
687
+ defaultValue: "",
688
+ ui: {
689
+ component: "input",
690
+ placeholder: "parent_span_id_column"
691
+ },
692
+ overrides: [
693
+ {
694
+ when: "jsonData.traces.otelEnabled == true",
695
+ readOnly: true,
696
+ description: "Set by OTel schema version",
697
+ defaultValue: "ParentSpanId",
698
+ placeholder: "ParentSpanId"
699
+ }
700
+ ]
701
+ },
702
+ {
703
+ id: "jsonData.traces.serviceNameColumn",
704
+ key: "serviceNameColumn",
705
+ label: "Service Name column",
706
+ description: "Column for the service name.",
707
+ valueType: "string",
708
+ target: "jsonData",
709
+ section: "traces",
710
+ defaultValue: "",
711
+ ui: {
712
+ component: "input",
713
+ placeholder: "service_name_column"
714
+ },
715
+ overrides: [
716
+ {
717
+ when: "jsonData.traces.otelEnabled == true",
718
+ readOnly: true,
719
+ description: "Set by OTel schema version",
720
+ defaultValue: "ServiceName",
721
+ placeholder: "ServiceName"
722
+ }
723
+ ]
724
+ },
725
+ {
726
+ id: "jsonData.traces.durationColumn",
727
+ key: "durationColumn",
728
+ label: "Duration Time column",
729
+ description: "Column for the span duration.",
730
+ valueType: "string",
731
+ target: "jsonData",
732
+ section: "traces",
733
+ defaultValue: "",
734
+ ui: {
735
+ component: "input",
736
+ placeholder: "duration_time_column"
737
+ },
738
+ overrides: [
739
+ {
740
+ when: "jsonData.traces.otelEnabled == true",
741
+ readOnly: true,
742
+ description: "Set by OTel schema version",
743
+ defaultValue: "Duration",
744
+ placeholder: "Duration"
745
+ }
746
+ ]
747
+ },
748
+ {
749
+ id: "jsonData.traces.durationUnit",
750
+ key: "durationUnit",
751
+ label: "Duration Unit",
752
+ description: "The unit of time used for the duration column.",
753
+ valueType: "string",
754
+ target: "jsonData",
755
+ section: "traces",
756
+ defaultValue: "nanoseconds",
757
+ validations: [
758
+ {
759
+ type: "allowedValues",
760
+ values: [
761
+ "seconds",
762
+ "milliseconds",
763
+ "microseconds",
764
+ "nanoseconds"
765
+ ]
766
+ }
767
+ ],
768
+ ui: {
769
+ component: "select",
770
+ options: [
771
+ {
772
+ label: "Seconds",
773
+ value: "seconds"
774
+ },
775
+ {
776
+ label: "Milliseconds",
777
+ value: "milliseconds"
778
+ },
779
+ {
780
+ label: "Microseconds",
781
+ value: "microseconds"
782
+ },
783
+ {
784
+ label: "Nanoseconds",
785
+ value: "nanoseconds"
786
+ }
787
+ ]
788
+ },
789
+ overrides: [
790
+ {
791
+ when: "jsonData.traces.otelEnabled == true",
792
+ readOnly: true,
793
+ description: "Set by OTel schema version"
794
+ }
795
+ ]
796
+ },
797
+ {
798
+ id: "jsonData.traces.startTimeColumn",
799
+ key: "startTimeColumn",
800
+ label: "Start Time column",
801
+ description: "Column for the span start time.",
802
+ valueType: "string",
803
+ target: "jsonData",
804
+ section: "traces",
805
+ defaultValue: "",
806
+ ui: {
807
+ component: "input",
808
+ placeholder: "start_time_column"
809
+ },
810
+ overrides: [
811
+ {
812
+ when: "jsonData.traces.otelEnabled == true",
813
+ readOnly: true,
814
+ description: "Set by OTel schema version",
815
+ defaultValue: "Timestamp",
816
+ placeholder: "Timestamp"
817
+ }
818
+ ]
819
+ },
820
+ {
821
+ id: "jsonData.traces.tagsColumn",
822
+ key: "tagsColumn",
823
+ label: "Tags column",
824
+ description: "Column for the span attributes/tags.",
825
+ valueType: "string",
826
+ target: "jsonData",
827
+ section: "traces",
828
+ defaultValue: "",
829
+ ui: {
830
+ component: "input",
831
+ placeholder: "tags_column"
832
+ },
833
+ overrides: [
834
+ {
835
+ when: "jsonData.traces.otelEnabled == true",
836
+ readOnly: true,
837
+ description: "Set by OTel schema version",
838
+ defaultValue: "SpanAttributes",
839
+ placeholder: "SpanAttributes"
840
+ }
841
+ ]
842
+ },
843
+ {
844
+ id: "jsonData.traces.serviceTagsColumn",
845
+ key: "serviceTagsColumn",
846
+ label: "Service Tags column",
847
+ description: "Column for the resource/service attributes.",
848
+ valueType: "string",
849
+ target: "jsonData",
850
+ section: "traces",
851
+ defaultValue: "",
852
+ ui: {
853
+ component: "input",
854
+ placeholder: "service_tags_column"
855
+ },
856
+ overrides: [
857
+ {
858
+ when: "jsonData.traces.otelEnabled == true",
859
+ readOnly: true,
860
+ description: "Set by OTel schema version",
861
+ defaultValue: "ResourceAttributes",
862
+ placeholder: "ResourceAttributes"
863
+ }
864
+ ]
865
+ },
866
+ {
867
+ id: "jsonData.traces.kindColumn",
868
+ key: "kindColumn",
869
+ label: "Kind column",
870
+ description: "Column for the span kind.",
871
+ valueType: "string",
872
+ target: "jsonData",
873
+ section: "traces",
874
+ defaultValue: "",
875
+ ui: {
876
+ component: "input",
877
+ placeholder: "kind_column"
878
+ },
879
+ overrides: [
880
+ {
881
+ when: "jsonData.traces.otelEnabled == true",
882
+ readOnly: true,
883
+ description: "Set by OTel schema version",
884
+ defaultValue: "SpanKind",
885
+ placeholder: "SpanKind"
886
+ }
887
+ ]
888
+ },
889
+ {
890
+ id: "jsonData.traces.statusCodeColumn",
891
+ key: "statusCodeColumn",
892
+ label: "Status Code column",
893
+ description: "Column for the span status code.",
894
+ valueType: "string",
895
+ target: "jsonData",
896
+ section: "traces",
897
+ defaultValue: "",
898
+ ui: {
899
+ component: "input",
900
+ placeholder: "status_code_column"
901
+ },
902
+ overrides: [
903
+ {
904
+ when: "jsonData.traces.otelEnabled == true",
905
+ readOnly: true,
906
+ description: "Set by OTel schema version",
907
+ defaultValue: "StatusCode",
908
+ placeholder: "StatusCode"
909
+ }
910
+ ]
911
+ },
912
+ {
913
+ id: "jsonData.traces.statusMessageColumn",
914
+ key: "statusMessageColumn",
915
+ label: "Status Message column",
916
+ description: "Column for the span status message.",
917
+ valueType: "string",
918
+ target: "jsonData",
919
+ section: "traces",
920
+ defaultValue: "",
921
+ ui: {
922
+ component: "input",
923
+ placeholder: "status_message_column"
924
+ },
925
+ overrides: [
926
+ {
927
+ when: "jsonData.traces.otelEnabled == true",
928
+ readOnly: true,
929
+ description: "Set by OTel schema version",
930
+ defaultValue: "StatusMessage",
931
+ placeholder: "StatusMessage"
932
+ }
933
+ ]
934
+ },
935
+ {
936
+ id: "jsonData.traces.stateColumn",
937
+ key: "stateColumn",
938
+ label: "State column",
939
+ description: "Column for the trace state.",
940
+ valueType: "string",
941
+ target: "jsonData",
942
+ section: "traces",
943
+ defaultValue: "",
944
+ ui: {
945
+ component: "input",
946
+ placeholder: "state_column"
947
+ },
948
+ overrides: [
949
+ {
950
+ when: "jsonData.traces.otelEnabled == true",
951
+ readOnly: true,
952
+ description: "Set by OTel schema version",
953
+ defaultValue: "TraceState",
954
+ placeholder: "TraceState"
955
+ }
956
+ ]
957
+ },
958
+ {
959
+ id: "jsonData.traces.instrumentationLibraryNameColumn",
960
+ key: "instrumentationLibraryNameColumn",
961
+ label: "Library Name column",
962
+ description: "Column for the instrumentation library name.",
963
+ valueType: "string",
964
+ target: "jsonData",
965
+ section: "traces",
966
+ ui: {
967
+ component: "input",
968
+ placeholder: "library_name_column"
969
+ },
970
+ overrides: [
971
+ {
972
+ when: "jsonData.traces.otelEnabled == true",
973
+ readOnly: true,
974
+ description: "Set by OTel schema version"
975
+ }
976
+ ]
977
+ },
978
+ {
979
+ id: "jsonData.traces.instrumentationLibraryVersionColumn",
980
+ key: "instrumentationLibraryVersionColumn",
981
+ label: "Library Version column",
982
+ description: "Column for the instrumentation library version.",
983
+ valueType: "string",
984
+ target: "jsonData",
985
+ section: "traces",
986
+ ui: {
987
+ component: "input",
988
+ placeholder: "library_version_column"
989
+ },
990
+ overrides: [
991
+ {
992
+ when: "jsonData.traces.otelEnabled == true",
993
+ readOnly: true,
994
+ description: "Set by OTel schema version"
995
+ }
996
+ ]
997
+ },
998
+ {
999
+ id: "jsonData.traces.flattenNested",
1000
+ key: "flattenNested",
1001
+ label: "Use Flatten Nested",
1002
+ description: "Enable if your traces table was created with flatten_nested=1.",
1003
+ valueType: "boolean",
1004
+ target: "jsonData",
1005
+ section: "traces",
1006
+ ui: {
1007
+ component: "switch"
1008
+ },
1009
+ overrides: [
1010
+ {
1011
+ when: "jsonData.traces.otelEnabled == true",
1012
+ readOnly: true,
1013
+ description: "Set by OTel schema version"
1014
+ }
1015
+ ]
1016
+ },
1017
+ {
1018
+ id: "jsonData.traces.traceEventsColumnPrefix",
1019
+ key: "traceEventsColumnPrefix",
1020
+ label: "Events prefix",
1021
+ description: "Prefix for the events columns (Events.Timestamp, Events.Name, etc.).",
1022
+ valueType: "string",
1023
+ target: "jsonData",
1024
+ section: "traces",
1025
+ defaultValue: "Events",
1026
+ ui: {
1027
+ component: "input",
1028
+ placeholder: "events_prefix"
1029
+ },
1030
+ overrides: [
1031
+ {
1032
+ when: "jsonData.traces.otelEnabled == true",
1033
+ readOnly: true,
1034
+ description: "Set by OTel schema version",
1035
+ placeholder: "Events"
1036
+ }
1037
+ ]
1038
+ },
1039
+ {
1040
+ id: "jsonData.traces.traceLinksColumnPrefix",
1041
+ key: "traceLinksColumnPrefix",
1042
+ label: "Links prefix",
1043
+ description: "Prefix for the links columns (Links.TraceId, Links.TraceState, etc.).",
1044
+ valueType: "string",
1045
+ target: "jsonData",
1046
+ section: "traces",
1047
+ defaultValue: "Links",
1048
+ ui: {
1049
+ component: "input",
1050
+ placeholder: "links_prefix"
1051
+ },
1052
+ overrides: [
1053
+ {
1054
+ when: "jsonData.traces.otelEnabled == true",
1055
+ readOnly: true,
1056
+ description: "Set by OTel schema version",
1057
+ placeholder: "Links"
1058
+ }
1059
+ ]
1060
+ },
1061
+ {
1062
+ id: "jsonData.traces.showTraceLinks",
1063
+ key: "showTraceLinks",
1064
+ label: "Show \"View trace\" links",
1065
+ description: "Show \"View trace\" links on trace_id fields for trace correlation.",
1066
+ valueType: "boolean",
1067
+ target: "jsonData",
1068
+ section: "traces",
1069
+ defaultValue: true,
1070
+ ui: {
1071
+ component: "switch"
1072
+ }
1073
+ },
1074
+ {
1075
+ id: "jsonData.aliasTables",
1076
+ key: "aliasTables",
1077
+ label: "Column Alias Tables",
1078
+ description: "Alias tables with (alias String, select String, type String) schema for column selection.",
1079
+ valueType: "array",
1080
+ target: "jsonData",
1081
+ item: {
1082
+ valueType: "object",
1083
+ fields: [
1084
+ {
1085
+ id: "aliasTables.item.targetDatabase",
1086
+ key: "targetDatabase",
1087
+ label: "Target Database",
1088
+ valueType: "string",
1089
+ isItemField: true,
1090
+ ui: {
1091
+ component: "input",
1092
+ placeholder: "(optional)",
1093
+ row: 1
1094
+ }
1095
+ },
1096
+ {
1097
+ id: "aliasTables.item.targetTable",
1098
+ key: "targetTable",
1099
+ label: "Target Table",
1100
+ valueType: "string",
1101
+ isItemField: true,
1102
+ required: true,
1103
+ ui: {
1104
+ component: "input",
1105
+ placeholder: "Target Table",
1106
+ row: 1
1107
+ }
1108
+ },
1109
+ {
1110
+ id: "aliasTables.item.aliasDatabase",
1111
+ key: "aliasDatabase",
1112
+ label: "Alias Database",
1113
+ valueType: "string",
1114
+ isItemField: true,
1115
+ ui: {
1116
+ component: "input",
1117
+ placeholder: "(optional)",
1118
+ row: 1
1119
+ }
1120
+ },
1121
+ {
1122
+ id: "aliasTables.item.aliasTable",
1123
+ key: "aliasTable",
1124
+ label: "Alias Table",
1125
+ valueType: "string",
1126
+ isItemField: true,
1127
+ required: true,
1128
+ ui: {
1129
+ component: "input",
1130
+ placeholder: "Alias Table",
1131
+ row: 1
1132
+ }
1133
+ }
1134
+ ]
1135
+ }
1136
+ },
1137
+ {
1138
+ id: "jsonData.customSettings",
1139
+ key: "customSettings",
1140
+ label: "Custom Settings",
1141
+ description: "Key-value pairs appended to each query's SETTINGS clause.",
1142
+ valueType: "array",
1143
+ target: "jsonData",
1144
+ item: {
1145
+ valueType: "object",
1146
+ fields: [
1147
+ {
1148
+ id: "customSettings.item.setting",
1149
+ key: "setting",
1150
+ label: "Setting",
1151
+ valueType: "string",
1152
+ isItemField: true,
1153
+ required: true,
1154
+ ui: {
1155
+ component: "input",
1156
+ placeholder: "Setting"
1157
+ }
1158
+ },
1159
+ {
1160
+ id: "customSettings.item.value",
1161
+ key: "value",
1162
+ label: "Value",
1163
+ valueType: "string",
1164
+ isItemField: true,
1165
+ required: true,
1166
+ ui: {
1167
+ component: "input",
1168
+ placeholder: "Value"
1169
+ }
1170
+ }
1171
+ ]
1172
+ }
1173
+ },
1174
+ {
1175
+ id: "jsonData.hideTableNameInAdhocFilters",
1176
+ key: "hideTableNameInAdhocFilters",
1177
+ label: "Hide table name in ad hoc filters",
1178
+ description: "Show only column names in ad hoc filter keys instead of the full table.column format. This simplifies the filter interface when working with schemas that have many tables. Defaults to false.",
1179
+ valueType: "boolean",
1180
+ target: "jsonData",
1181
+ ui: {
1182
+ component: "switch"
1183
+ }
1184
+ },
1185
+ {
1186
+ id: "jsonData.enableSecureSocksProxy",
1187
+ key: "enableSecureSocksProxy",
1188
+ label: "Enable Secure Socks Proxy",
1189
+ description: "Enable proxying the datasource connection through the secure socks proxy to a different network.",
1190
+ valueType: "boolean",
1191
+ target: "jsonData",
1192
+ ui: {
1193
+ component: "switch"
1194
+ }
1195
+ },
1196
+ {
1197
+ id: "jsonData.httpHeaders",
1198
+ key: "httpHeaders",
1199
+ label: "Custom HTTP Headers",
1200
+ description: "Add custom HTTP headers when querying the database.",
1201
+ valueType: "array",
1202
+ target: "jsonData",
1203
+ dependsOn: "jsonData.protocol == 'http'",
1204
+ item: {
1205
+ valueType: "object",
1206
+ fields: [
1207
+ {
1208
+ id: "httpHeaders.item.name",
1209
+ key: "name",
1210
+ label: "Header Name",
1211
+ valueType: "string",
1212
+ isItemField: true,
1213
+ required: true,
1214
+ ui: {
1215
+ component: "input",
1216
+ placeholder: "X-Custom-Header"
1217
+ }
1218
+ },
1219
+ {
1220
+ id: "httpHeaders.item.value",
1221
+ key: "value",
1222
+ label: "Header Value",
1223
+ valueType: "string",
1224
+ isItemField: true,
1225
+ ui: {
1226
+ component: "input",
1227
+ placeholder: "Header Value"
1228
+ },
1229
+ overrides: [
1230
+ {
1231
+ when: "item.secure == true",
1232
+ secureKey: "secureHttpHeaders.{item.name}"
1233
+ }
1234
+ ]
1235
+ },
1236
+ {
1237
+ id: "httpHeaders.item.secure",
1238
+ key: "secure",
1239
+ label: "Secure",
1240
+ description: "When enabled, the header value is stored in Grafana's encrypted secure storage instead of plain JSON.",
1241
+ valueType: "boolean",
1242
+ isItemField: true,
1243
+ ui: {
1244
+ component: "switch"
1245
+ }
1246
+ }
1247
+ ]
1248
+ }
1249
+ }
1250
+ ];
1251
+ var groups$O = [
1252
+ {
1253
+ id: "server",
1254
+ title: "Server and encryption",
1255
+ fieldRefs: [
1256
+ "jsonData.host",
1257
+ "jsonData.port",
1258
+ "jsonData.protocol",
1259
+ "jsonData.secure",
1260
+ "jsonData.path",
1261
+ "jsonData.httpHeaders",
1262
+ "jsonData.forwardGrafanaHeaders"
1263
+ ]
1264
+ },
1265
+ {
1266
+ id: "credentials",
1267
+ title: "Database credentials",
1268
+ fieldRefs: [
1269
+ "jsonData.username",
1270
+ "secureJsonData.password"
1271
+ ]
1272
+ },
1273
+ {
1274
+ id: "tls",
1275
+ title: "TLS/SSL settings",
1276
+ optional: true,
1277
+ fieldRefs: [
1278
+ "jsonData.tlsSkipVerify",
1279
+ "jsonData.tlsAuth",
1280
+ "jsonData.tlsAuthWithCACert",
1281
+ "secureJsonData.tlsCACert",
1282
+ "secureJsonData.tlsClientCert",
1283
+ "secureJsonData.tlsClientKey"
1284
+ ]
1285
+ },
1286
+ {
1287
+ id: "defaults",
1288
+ title: "Default DB and table",
1289
+ fieldRefs: [
1290
+ "jsonData.defaultDatabase",
1291
+ "jsonData.defaultTable"
1292
+ ]
1293
+ },
1294
+ {
1295
+ id: "query-settings",
1296
+ title: "Query settings",
1297
+ fieldRefs: [
1298
+ "jsonData.dialTimeout",
1299
+ "jsonData.queryTimeout",
1300
+ "jsonData.connMaxLifetime",
1301
+ "jsonData.maxIdleConns",
1302
+ "jsonData.maxOpenConns",
1303
+ "jsonData.validateSql"
1304
+ ]
1305
+ },
1306
+ {
1307
+ id: "logs",
1308
+ title: "Logs configuration",
1309
+ description: "(Optional) Default settings for log queries.",
1310
+ optional: true,
1311
+ fieldRefs: [
1312
+ "jsonData.logs.defaultDatabase",
1313
+ "jsonData.logs.defaultTable",
1314
+ "jsonData.logs.otelEnabled",
1315
+ "jsonData.logs.otelVersion",
1316
+ "jsonData.logs.filterTimeColumn",
1317
+ "jsonData.logs.timeColumn",
1318
+ "jsonData.logs.levelColumn",
1319
+ "jsonData.logs.messageColumn",
1320
+ "jsonData.logs.showLogLinks",
1321
+ "jsonData.logs.selectContextColumns",
1322
+ "jsonData.logs.contextColumns"
1323
+ ]
1324
+ },
1325
+ {
1326
+ id: "traces",
1327
+ title: "Traces configuration",
1328
+ description: "(Optional) Default settings for trace queries.",
1329
+ optional: true,
1330
+ fieldRefs: [
1331
+ "jsonData.traces.defaultDatabase",
1332
+ "jsonData.traces.defaultTable",
1333
+ "jsonData.traces.otelEnabled",
1334
+ "jsonData.traces.otelVersion",
1335
+ "jsonData.traces.traceIdColumn",
1336
+ "jsonData.traces.spanIdColumn",
1337
+ "jsonData.traces.operationNameColumn",
1338
+ "jsonData.traces.parentSpanIdColumn",
1339
+ "jsonData.traces.serviceNameColumn",
1340
+ "jsonData.traces.durationColumn",
1341
+ "jsonData.traces.durationUnit",
1342
+ "jsonData.traces.startTimeColumn",
1343
+ "jsonData.traces.tagsColumn",
1344
+ "jsonData.traces.serviceTagsColumn",
1345
+ "jsonData.traces.kindColumn",
1346
+ "jsonData.traces.statusCodeColumn",
1347
+ "jsonData.traces.statusMessageColumn",
1348
+ "jsonData.traces.stateColumn",
1349
+ "jsonData.traces.instrumentationLibraryNameColumn",
1350
+ "jsonData.traces.instrumentationLibraryVersionColumn",
1351
+ "jsonData.traces.flattenNested",
1352
+ "jsonData.traces.traceEventsColumnPrefix",
1353
+ "jsonData.traces.traceLinksColumnPrefix",
1354
+ "jsonData.traces.showTraceLinks"
1355
+ ]
1356
+ },
1357
+ {
1358
+ id: "alias-tables",
1359
+ title: "Column Alias Tables",
1360
+ description: "Provide alias tables for column selection.",
1361
+ optional: true,
1362
+ fieldRefs: [
1363
+ "jsonData.aliasTables"
1364
+ ]
1365
+ },
1366
+ {
1367
+ id: "additional",
1368
+ title: "Additional settings",
1369
+ optional: true,
1370
+ fieldRefs: [
1371
+ "jsonData.enableRowLimit",
1372
+ "jsonData.enableSecureSocksProxy",
1373
+ "jsonData.hideTableNameInAdhocFilters",
1374
+ "jsonData.customSettings"
1375
+ ]
1376
+ }
1377
+ ];
1378
+ var relationships$7 = [
1379
+ {
1380
+ type: "pair",
1381
+ fields: [
1382
+ "secureJsonData.tlsClientCert",
1383
+ "secureJsonData.tlsClientKey"
1384
+ ],
1385
+ description: "TLS client certificate and key"
1386
+ }
1387
+ ];
1388
+ var grafanaClickhouseDatasourceSchema = {
1389
+ $schema: $schema$O,
1390
+ schemaVersion: schemaVersion$O,
1391
+ pluginType: pluginType$O,
1392
+ pluginName: pluginName$O,
1393
+ docURL: docURL$p,
1394
+ fields: fields$O,
1395
+ groups: groups$O,
1396
+ relationships: relationships$7
1397
+ };
1398
+
1399
+ export { $schema$O as $schema, grafanaClickhouseDatasourceSchema as default, docURL$p as docURL, fields$O as fields, groups$O as groups, pluginName$O as pluginName, pluginType$O as pluginType, relationships$7 as relationships, schemaVersion$O as schemaVersion };
1400
+ //# sourceMappingURL=grafana-clickhouse-datasource.schema.json.js.map