questions.yaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. groups:
  2. - name: Prometheus Configuration
  3. description: Configure Prometheus
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Prometheus
  6. - name: Network Configuration
  7. description: Configure Network for Prometheus
  8. - name: Storage Configuration
  9. description: Configure Storage for Prometheus
  10. - name: Resources Configuration
  11. description: Configure Resources for Prometheus
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: prometheusConfig
  23. label: ""
  24. group: Prometheus Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: retentionTime
  29. label: Retention Time
  30. description: The time to retain data for. Use the format 15d, 6w, 10y, etc.
  31. schema:
  32. type: string
  33. default: "15d"
  34. required: true
  35. - variable: retentionSize
  36. label: Retention Size
  37. description: The size to retain data for. Use the format 100MB, 10GB, etc.
  38. schema:
  39. type: string
  40. default: ""
  41. - variable: walCompression
  42. label: WAL Compression
  43. description: Compress the time series database write-ahead log.
  44. schema:
  45. type: boolean
  46. default: true
  47. - variable: additionalArgs
  48. label: Additional Arguments
  49. description: Configure additional arguments for Prometheus.
  50. schema:
  51. type: list
  52. default: []
  53. items:
  54. - variable: arg
  55. label: Argument
  56. schema:
  57. type: string
  58. required: true
  59. default: ""
  60. - variable: additionalEnvs
  61. label: Additional Environment Variables
  62. description: Configure additional environment variables for Prometheus.
  63. schema:
  64. type: list
  65. default: []
  66. items:
  67. - variable: env
  68. label: Environment Variable
  69. schema:
  70. type: dict
  71. attrs:
  72. - variable: name
  73. label: Name
  74. schema:
  75. type: string
  76. required: true
  77. - variable: value
  78. label: Value
  79. schema:
  80. type: string
  81. required: true
  82. - variable: prometheusRunAs
  83. label: ""
  84. group: User and Group Configuration
  85. schema:
  86. type: dict
  87. attrs:
  88. - variable: user
  89. label: User ID
  90. description: The user id that Prometheus will run as.
  91. schema:
  92. type: int
  93. min: 568
  94. default: 568
  95. required: true
  96. - variable: group
  97. label: Group ID
  98. description: The group id that Prometheus will run as.
  99. schema:
  100. type: int
  101. min: 568
  102. default: 568
  103. required: true
  104. - variable: prometheusNetwork
  105. label: ""
  106. group: Network Configuration
  107. schema:
  108. type: dict
  109. attrs:
  110. - variable: apiPort
  111. label: API Port
  112. description: The port for the Prometheus API (And WebUI).
  113. schema:
  114. type: int
  115. default: 30002
  116. min: 9000
  117. max: 65535
  118. required: true
  119. - variable: hostNetwork
  120. label: Host Network
  121. description: |
  122. Bind to the host network. It's recommended to keep this disabled.
  123. schema:
  124. type: boolean
  125. default: false
  126. - variable: prometheusStorage
  127. label: ""
  128. group: Storage Configuration
  129. schema:
  130. type: dict
  131. attrs:
  132. - variable: data
  133. label: Prometheus Data Storage
  134. description: The path to store Prometheus data/metrics.
  135. schema:
  136. type: dict
  137. attrs:
  138. - variable: type
  139. label: Type
  140. description: |
  141. ixVolume: Is dataset created automatically by the system.</br>
  142. Host Path: Is a path that already exists on the system.
  143. schema:
  144. type: string
  145. required: true
  146. immutable: true
  147. default: ixVolume
  148. enum:
  149. - value: hostPath
  150. description: Host Path (Path that already exists on the system)
  151. - value: ixVolume
  152. description: ixVolume (Dataset created automatically by the system)
  153. - variable: ixVolumeConfig
  154. label: ixVolume Configuration
  155. description: The configuration for the ixVolume dataset.
  156. schema:
  157. type: dict
  158. show_if: [["type", "=", "ixVolume"]]
  159. $ref:
  160. - "normalize/ixVolume"
  161. attrs:
  162. - variable: aclEnable
  163. label: Enable ACL
  164. description: Enable ACL for the dataset.
  165. schema:
  166. type: boolean
  167. default: false
  168. - variable: datasetName
  169. label: Dataset Name
  170. description: The name of the dataset to use for storage.
  171. schema:
  172. type: string
  173. required: true
  174. immutable: true
  175. hidden: true
  176. default: "data"
  177. - variable: aclEntries
  178. label: ACL Configuration
  179. schema:
  180. type: dict
  181. show_if: [["aclEnable", "=", true]]
  182. attrs: []
  183. - variable: hostPathConfig
  184. label: Host Path Configuration
  185. schema:
  186. type: dict
  187. show_if: [["type", "=", "hostPath"]]
  188. attrs:
  189. - variable: aclEnable
  190. label: Enable ACL
  191. description: Enable ACL for the dataset.
  192. schema:
  193. type: boolean
  194. default: false
  195. - variable: acl
  196. label: ACL Configuration
  197. schema:
  198. type: dict
  199. show_if: [["aclEnable", "=", true]]
  200. attrs: []
  201. $ref:
  202. - "normalize/acl"
  203. - variable: hostPath
  204. label: Host Path
  205. description: The host path to use for storage.
  206. schema:
  207. type: hostpath
  208. show_if: [["aclEnable", "=", false]]
  209. required: true
  210. - variable: config
  211. label: Prometheus Config Storage
  212. description: The path to store Prometheus config storage.
  213. schema:
  214. type: dict
  215. attrs:
  216. - variable: type
  217. label: Type
  218. description: |
  219. ixVolume: Is dataset created automatically by the system.</br>
  220. Host Path: Is a path that already exists on the system.
  221. schema:
  222. type: string
  223. required: true
  224. immutable: true
  225. default: ixVolume
  226. enum:
  227. - value: hostPath
  228. description: Host Path (Path that already exists on the system)
  229. - value: ixVolume
  230. description: ixVolume (Dataset created automatically by the system)
  231. - variable: ixVolumeConfig
  232. label: ixVolume Configuration
  233. description: The configuration for the ixVolume dataset.
  234. schema:
  235. type: dict
  236. show_if: [["type", "=", "ixVolume"]]
  237. $ref:
  238. - "normalize/ixVolume"
  239. attrs:
  240. - variable: aclEnable
  241. label: Enable ACL
  242. description: Enable ACL for the dataset.
  243. schema:
  244. type: boolean
  245. default: false
  246. - variable: datasetName
  247. label: Dataset Name
  248. description: The name of the dataset to use for storage.
  249. schema:
  250. type: string
  251. required: true
  252. immutable: true
  253. hidden: true
  254. default: "config"
  255. - variable: aclEntries
  256. label: ACL Configuration
  257. schema:
  258. type: dict
  259. show_if: [["aclEnable", "=", true]]
  260. attrs: []
  261. - variable: hostPathConfig
  262. label: Host Path Configuration
  263. schema:
  264. type: dict
  265. show_if: [["type", "=", "hostPath"]]
  266. attrs:
  267. - variable: aclEnable
  268. label: Enable ACL
  269. description: Enable ACL for the dataset.
  270. schema:
  271. type: boolean
  272. default: false
  273. - variable: acl
  274. label: ACL Configuration
  275. schema:
  276. type: dict
  277. show_if: [["aclEnable", "=", true]]
  278. attrs: []
  279. $ref:
  280. - "normalize/acl"
  281. - variable: hostPath
  282. label: Host Path
  283. description: The host path to use for storage.
  284. schema:
  285. type: hostpath
  286. show_if: [["aclEnable", "=", false]]
  287. required: true
  288. - variable: additionalStorages
  289. label: Additional Storage
  290. description: Additional storage for Prometheus.
  291. schema:
  292. type: list
  293. default: []
  294. items:
  295. - variable: storageEntry
  296. label: Storage Entry
  297. schema:
  298. type: dict
  299. attrs:
  300. - variable: type
  301. label: Type
  302. description: |
  303. ixVolume: Is dataset created automatically by the system.</br>
  304. Host Path: Is a path that already exists on the system.</br>
  305. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  306. schema:
  307. type: string
  308. required: true
  309. default: "ixVolume"
  310. immutable: true
  311. enum:
  312. - value: "hostPath"
  313. description: Host Path (Path that already exists on the system)
  314. - value: "ixVolume"
  315. description: ixVolume (Dataset created automatically by the system)
  316. - value: "smb-pv-pvc"
  317. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  318. - variable: readOnly
  319. label: Read Only
  320. description: Mount the volume as read only.
  321. schema:
  322. type: boolean
  323. default: false
  324. - variable: mountPath
  325. label: Mount Path
  326. description: The path inside the container to mount the storage.
  327. schema:
  328. type: path
  329. required: true
  330. - variable: hostPathConfig
  331. label: Host Path Configuration
  332. schema:
  333. type: dict
  334. show_if: [["type", "=", "hostPath"]]
  335. attrs:
  336. - variable: aclEnable
  337. label: Enable ACL
  338. description: Enable ACL for the dataset.
  339. schema:
  340. type: boolean
  341. default: false
  342. - variable: acl
  343. label: ACL Configuration
  344. schema:
  345. type: dict
  346. show_if: [["aclEnable", "=", true]]
  347. attrs: []
  348. $ref:
  349. - "normalize/acl"
  350. - variable: hostPath
  351. label: Host Path
  352. description: The host path to use for storage.
  353. schema:
  354. type: hostpath
  355. show_if: [["aclEnable", "=", false]]
  356. required: true
  357. - variable: ixVolumeConfig
  358. label: ixVolume Configuration
  359. description: The configuration for the ixVolume dataset.
  360. schema:
  361. type: dict
  362. show_if: [["type", "=", "ixVolume"]]
  363. $ref:
  364. - "normalize/ixVolume"
  365. attrs:
  366. - variable: aclEnable
  367. label: Enable ACL
  368. description: Enable ACL for the dataset.
  369. schema:
  370. type: boolean
  371. default: false
  372. - variable: datasetName
  373. label: Dataset Name
  374. description: The name of the dataset to use for storage.
  375. schema:
  376. type: string
  377. required: true
  378. immutable: true
  379. default: "storage_entry"
  380. - variable: aclEntries
  381. label: ACL Configuration
  382. schema:
  383. type: dict
  384. show_if: [["aclEnable", "=", true]]
  385. attrs: []
  386. - variable: smbConfig
  387. label: SMB Share Configuration
  388. description: The configuration for the SMB Share.
  389. schema:
  390. type: dict
  391. show_if: [["type", "=", "smb-pv-pvc"]]
  392. attrs:
  393. - variable: server
  394. label: Server
  395. description: The server for the SMB share.
  396. schema:
  397. type: string
  398. required: true
  399. - variable: share
  400. label: Share
  401. description: The share name for the SMB share.
  402. schema:
  403. type: string
  404. required: true
  405. - variable: domain
  406. label: Domain (Optional)
  407. description: The domain for the SMB share.
  408. schema:
  409. type: string
  410. - variable: username
  411. label: Username
  412. description: The username for the SMB share.
  413. schema:
  414. type: string
  415. required: true
  416. - variable: password
  417. label: Password
  418. description: The password for the SMB share.
  419. schema:
  420. type: string
  421. required: true
  422. private: true
  423. - variable: size
  424. label: Size (in Gi)
  425. description: The size of the volume quota.
  426. schema:
  427. type: int
  428. required: true
  429. min: 1
  430. default: 1
  431. - variable: resources
  432. label: ""
  433. group: Resources Configuration
  434. schema:
  435. type: dict
  436. attrs:
  437. - variable: limits
  438. label: Limits
  439. schema:
  440. type: dict
  441. attrs:
  442. - variable: cpu
  443. label: CPU
  444. description: CPU limit for Prometheus.
  445. schema:
  446. type: string
  447. max_length: 6
  448. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  449. valid_chars_error: |
  450. Valid CPU limit formats are</br>
  451. - Plain Integer - eg. 1</br>
  452. - Float - eg. 0.5</br>
  453. - Milicpu - eg. 500m
  454. default: "4000m"
  455. required: true
  456. - variable: memory
  457. label: Memory
  458. description: Memory limit for Prometheus.
  459. schema:
  460. type: string
  461. max_length: 12
  462. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  463. valid_chars_error: |
  464. Valid Memory limit formats are</br>
  465. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  466. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  467. - Plain Integer in bytes - eg. 1024</br>
  468. - Exponent - eg. 134e6
  469. default: "8Gi"
  470. required: true