questions.yaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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. immutable: true
  210. required: true
  211. - variable: config
  212. label: Prometheus Config Storage
  213. description: The path to store Prometheus config storage.
  214. schema:
  215. type: dict
  216. attrs:
  217. - variable: type
  218. label: Type
  219. description: |
  220. ixVolume: Is dataset created automatically by the system.</br>
  221. Host Path: Is a path that already exists on the system.
  222. schema:
  223. type: string
  224. required: true
  225. immutable: true
  226. default: ixVolume
  227. enum:
  228. - value: hostPath
  229. description: Host Path (Path that already exists on the system)
  230. - value: ixVolume
  231. description: ixVolume (Dataset created automatically by the system)
  232. - variable: ixVolumeConfig
  233. label: ixVolume Configuration
  234. description: The configuration for the ixVolume dataset.
  235. schema:
  236. type: dict
  237. show_if: [["type", "=", "ixVolume"]]
  238. $ref:
  239. - "normalize/ixVolume"
  240. attrs:
  241. - variable: aclEnable
  242. label: Enable ACL
  243. description: Enable ACL for the dataset.
  244. schema:
  245. type: boolean
  246. default: false
  247. - variable: datasetName
  248. label: Dataset Name
  249. description: The name of the dataset to use for storage.
  250. schema:
  251. type: string
  252. required: true
  253. immutable: true
  254. hidden: true
  255. default: "config"
  256. - variable: aclEntries
  257. label: ACL Configuration
  258. schema:
  259. type: dict
  260. show_if: [["aclEnable", "=", true]]
  261. attrs: []
  262. - variable: hostPathConfig
  263. label: Host Path Configuration
  264. schema:
  265. type: dict
  266. show_if: [["type", "=", "hostPath"]]
  267. attrs:
  268. - variable: aclEnable
  269. label: Enable ACL
  270. description: Enable ACL for the dataset.
  271. schema:
  272. type: boolean
  273. default: false
  274. - variable: acl
  275. label: ACL Configuration
  276. schema:
  277. type: dict
  278. show_if: [["aclEnable", "=", true]]
  279. attrs: []
  280. $ref:
  281. - "normalize/acl"
  282. - variable: hostPath
  283. label: Host Path
  284. description: The host path to use for storage.
  285. schema:
  286. type: hostpath
  287. show_if: [["aclEnable", "=", false]]
  288. immutable: true
  289. required: true
  290. - variable: additionalStorages
  291. label: Additional Storage
  292. description: Additional storage for Prometheus.
  293. schema:
  294. type: list
  295. default: []
  296. items:
  297. - variable: storageEntry
  298. label: Storage Entry
  299. schema:
  300. type: dict
  301. attrs:
  302. - variable: type
  303. label: Type
  304. description: |
  305. ixVolume: Is dataset created automatically by the system.</br>
  306. Host Path: Is a path that already exists on the system.</br>
  307. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  308. schema:
  309. type: string
  310. required: true
  311. default: "ixVolume"
  312. immutable: true
  313. enum:
  314. - value: "hostPath"
  315. description: Host Path (Path that already exists on the system)
  316. - value: "ixVolume"
  317. description: ixVolume (Dataset created automatically by the system)
  318. - value: "smb-pv-pvc"
  319. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  320. - variable: readOnly
  321. label: Read Only
  322. description: Mount the volume as read only.
  323. schema:
  324. type: boolean
  325. default: false
  326. - variable: mountPath
  327. label: Mount Path
  328. description: The path inside the container to mount the storage.
  329. schema:
  330. type: path
  331. required: true
  332. - variable: hostPathConfig
  333. label: Host Path Configuration
  334. schema:
  335. type: dict
  336. show_if: [["type", "=", "hostPath"]]
  337. attrs:
  338. - variable: aclEnable
  339. label: Enable ACL
  340. description: Enable ACL for the dataset.
  341. schema:
  342. type: boolean
  343. default: false
  344. - variable: acl
  345. label: ACL Configuration
  346. schema:
  347. type: dict
  348. show_if: [["aclEnable", "=", true]]
  349. attrs: []
  350. $ref:
  351. - "normalize/acl"
  352. - variable: hostPath
  353. label: Host Path
  354. description: The host path to use for storage.
  355. schema:
  356. type: hostpath
  357. show_if: [["aclEnable", "=", false]]
  358. immutable: true
  359. required: true
  360. - variable: ixVolumeConfig
  361. label: ixVolume Configuration
  362. description: The configuration for the ixVolume dataset.
  363. schema:
  364. type: dict
  365. show_if: [["type", "=", "ixVolume"]]
  366. $ref:
  367. - "normalize/ixVolume"
  368. attrs:
  369. - variable: aclEnable
  370. label: Enable ACL
  371. description: Enable ACL for the dataset.
  372. schema:
  373. type: boolean
  374. default: false
  375. - variable: datasetName
  376. label: Dataset Name
  377. description: The name of the dataset to use for storage.
  378. schema:
  379. type: string
  380. required: true
  381. immutable: true
  382. default: "storage_entry"
  383. - variable: aclEntries
  384. label: ACL Configuration
  385. schema:
  386. type: dict
  387. show_if: [["aclEnable", "=", true]]
  388. attrs: []
  389. - variable: smbConfig
  390. label: SMB Share Configuration
  391. description: The configuration for the SMB Share.
  392. schema:
  393. type: dict
  394. show_if: [["type", "=", "smb-pv-pvc"]]
  395. attrs:
  396. - variable: server
  397. label: Server
  398. description: The server for the SMB share.
  399. schema:
  400. type: string
  401. required: true
  402. - variable: share
  403. label: Share
  404. description: The share name for the SMB share.
  405. schema:
  406. type: string
  407. required: true
  408. - variable: domain
  409. label: Domain (Optional)
  410. description: The domain for the SMB share.
  411. schema:
  412. type: string
  413. - variable: username
  414. label: Username
  415. description: The username for the SMB share.
  416. schema:
  417. type: string
  418. required: true
  419. - variable: password
  420. label: Password
  421. description: The password for the SMB share.
  422. schema:
  423. type: string
  424. required: true
  425. private: true
  426. - variable: size
  427. label: Size (in Gi)
  428. description: The size of the volume quota.
  429. schema:
  430. type: int
  431. required: true
  432. min: 1
  433. default: 1
  434. - variable: resources
  435. label: ""
  436. group: Resources Configuration
  437. schema:
  438. type: dict
  439. attrs:
  440. - variable: limits
  441. label: Limits
  442. schema:
  443. type: dict
  444. attrs:
  445. - variable: cpu
  446. label: CPU
  447. description: CPU limit for Prometheus.
  448. schema:
  449. type: string
  450. max_length: 6
  451. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  452. valid_chars_error: |
  453. Valid CPU limit formats are</br>
  454. - Plain Integer - eg. 1</br>
  455. - Float - eg. 0.5</br>
  456. - Milicpu - eg. 500m
  457. default: "4000m"
  458. required: true
  459. - variable: memory
  460. label: Memory
  461. description: Memory limit for Prometheus.
  462. schema:
  463. type: string
  464. max_length: 12
  465. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  466. valid_chars_error: |
  467. Valid Memory limit formats are</br>
  468. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  469. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  470. - Plain Integer in bytes - eg. 1024</br>
  471. - Exponent - eg. 134e6
  472. default: "8Gi"
  473. required: true