questions.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  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: Labels Configuration
  11. description: Configure Labels for Prometheus
  12. - name: Resources Configuration
  13. description: Configure Resources for Prometheus
  14. questions:
  15. - variable: prometheus
  16. label: ""
  17. group: Prometheus Configuration
  18. schema:
  19. type: dict
  20. attrs:
  21. - variable: retention_time
  22. label: Retention Time
  23. description: The time to retain data for. Use the format 15d, 6w, 10y, etc.
  24. schema:
  25. type: string
  26. default: "1d"
  27. required: true
  28. - variable: retention_size
  29. label: Retention Size
  30. description: The size to retain data for. Use the format 100MB, 10GB, etc.
  31. schema:
  32. type: string
  33. default: ""
  34. - variable: wal_compression
  35. label: WAL Compression
  36. description: Compress the time series database write-ahead log.
  37. schema:
  38. type: boolean
  39. default: true
  40. - variable: additional_args
  41. label: Additional Arguments
  42. description: Additional arguments for Prometheus.
  43. schema:
  44. type: list
  45. default: []
  46. items:
  47. - variable: arg
  48. label: Argument
  49. schema:
  50. type: string
  51. required: true
  52. - variable: additional_envs
  53. label: Additional Environment Variables
  54. schema:
  55. type: list
  56. default: []
  57. items:
  58. - variable: env
  59. label: Environment Variable
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: name
  64. label: Name
  65. schema:
  66. type: string
  67. required: true
  68. - variable: value
  69. label: Value
  70. schema:
  71. type: string
  72. - variable: run_as
  73. label: ""
  74. group: User and Group Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: user
  79. label: User ID
  80. description: The user id that Prometheus files will be owned by.
  81. schema:
  82. type: int
  83. min: 568
  84. default: 568
  85. required: true
  86. - variable: group
  87. label: Group ID
  88. description: The group id that Prometheus files will be owned by.
  89. schema:
  90. type: int
  91. min: 568
  92. default: 568
  93. required: true
  94. - variable: network
  95. label: ""
  96. group: Network Configuration
  97. schema:
  98. type: dict
  99. attrs:
  100. - variable: web_port
  101. label: WebUI Port
  102. schema:
  103. type: dict
  104. attrs:
  105. - variable: bind_mode
  106. label: Port Bind Mode
  107. description: |
  108. The port bind mode.</br>
  109. - Publish: The port will be published on the host for external access.</br>
  110. - Expose: The port will be exposed for inter-container communication.</br>
  111. - None: The port will not be exposed or published.</br>
  112. Note: If the Dockerfile defines an EXPOSE directive,
  113. the port will still be exposed for inter-container communication regardless of this setting.
  114. schema:
  115. type: string
  116. default: "published"
  117. enum:
  118. - value: "published"
  119. description: Publish port on the host for external access
  120. - value: "exposed"
  121. description: Expose port for inter-container communication
  122. - value: ""
  123. description: None
  124. - variable: port_number
  125. label: Port Number
  126. schema:
  127. type: int
  128. default: 30104
  129. min: 1
  130. max: 65535
  131. required: true
  132. - variable: host_ips
  133. label: Host IPs
  134. description: IPs on the host to bind this port
  135. schema:
  136. type: list
  137. show_if: [["bind_mode", "=", "published"]]
  138. default: []
  139. items:
  140. - variable: host_ip
  141. label: Host IP
  142. schema:
  143. type: string
  144. required: true
  145. $ref:
  146. - definitions/node_bind_ip
  147. - variable: host_network
  148. label: Host Network
  149. description: |
  150. Bind to the host network. It's recommended to keep this disabled.
  151. schema:
  152. type: boolean
  153. default: false
  154. - variable: storage
  155. label: ""
  156. group: Storage Configuration
  157. schema:
  158. type: dict
  159. attrs:
  160. - variable: config
  161. label: Prometheus Config Storage
  162. description: The path to store Prometheus Config.
  163. schema:
  164. type: dict
  165. attrs:
  166. - variable: type
  167. label: Type
  168. description: |
  169. ixVolume: Is dataset created automatically by the system.</br>
  170. Host Path: Is a path that already exists on the system.
  171. schema:
  172. type: string
  173. required: true
  174. default: "ix_volume"
  175. enum:
  176. - value: "host_path"
  177. description: Host Path (Path that already exists on the system)
  178. - value: "ix_volume"
  179. description: ixVolume (Dataset created automatically by the system)
  180. - variable: ix_volume_config
  181. label: ixVolume Configuration
  182. description: The configuration for the ixVolume dataset.
  183. schema:
  184. type: dict
  185. show_if: [["type", "=", "ix_volume"]]
  186. $ref:
  187. - "normalize/ix_volume"
  188. attrs:
  189. - variable: acl_enable
  190. label: Enable ACL
  191. description: Enable ACL for the storage.
  192. schema:
  193. type: boolean
  194. default: false
  195. - variable: dataset_name
  196. label: Dataset Name
  197. description: The name of the dataset to use for storage.
  198. schema:
  199. type: string
  200. required: true
  201. hidden: true
  202. default: "config"
  203. - variable: acl_entries
  204. label: ACL Configuration
  205. schema:
  206. type: dict
  207. show_if: [["acl_enable", "=", true]]
  208. attrs: []
  209. - variable: host_path_config
  210. label: Host Path Configuration
  211. schema:
  212. type: dict
  213. show_if: [["type", "=", "host_path"]]
  214. attrs:
  215. - variable: acl_enable
  216. label: Enable ACL
  217. description: Enable ACL for the storage.
  218. schema:
  219. type: boolean
  220. default: false
  221. - variable: acl
  222. label: ACL Configuration
  223. schema:
  224. type: dict
  225. show_if: [["acl_enable", "=", true]]
  226. attrs: []
  227. $ref:
  228. - "normalize/acl"
  229. - variable: path
  230. label: Host Path
  231. description: The host path to use for storage.
  232. schema:
  233. type: hostpath
  234. show_if: [["acl_enable", "=", false]]
  235. required: true
  236. - variable: data
  237. label: Prometheus Data Storage
  238. description: The path to store Prometheus Data.
  239. schema:
  240. type: dict
  241. attrs:
  242. - variable: type
  243. label: Type
  244. description: |
  245. ixVolume: Is dataset created automatically by the system.</br>
  246. Host Path: Is a path that already exists on the system.
  247. schema:
  248. type: string
  249. required: true
  250. default: "ix_volume"
  251. enum:
  252. - value: "host_path"
  253. description: Host Path (Path that already exists on the system)
  254. - value: "ix_volume"
  255. description: ixVolume (Dataset created automatically by the system)
  256. - variable: ix_volume_config
  257. label: ixVolume Configuration
  258. description: The configuration for the ixVolume dataset.
  259. schema:
  260. type: dict
  261. show_if: [["type", "=", "ix_volume"]]
  262. $ref:
  263. - "normalize/ix_volume"
  264. attrs:
  265. - variable: acl_enable
  266. label: Enable ACL
  267. description: Enable ACL for the storage.
  268. schema:
  269. type: boolean
  270. default: false
  271. - variable: dataset_name
  272. label: Dataset Name
  273. description: The name of the dataset to use for storage.
  274. schema:
  275. type: string
  276. required: true
  277. hidden: true
  278. default: "data"
  279. - variable: acl_entries
  280. label: ACL Configuration
  281. schema:
  282. type: dict
  283. show_if: [["acl_enable", "=", true]]
  284. attrs: []
  285. - variable: host_path_config
  286. label: Host Path Configuration
  287. schema:
  288. type: dict
  289. show_if: [["type", "=", "host_path"]]
  290. attrs:
  291. - variable: acl_enable
  292. label: Enable ACL
  293. description: Enable ACL for the storage.
  294. schema:
  295. type: boolean
  296. default: false
  297. - variable: acl
  298. label: ACL Configuration
  299. schema:
  300. type: dict
  301. show_if: [["acl_enable", "=", true]]
  302. attrs: []
  303. $ref:
  304. - "normalize/acl"
  305. - variable: path
  306. label: Host Path
  307. description: The host path to use for storage.
  308. schema:
  309. type: hostpath
  310. show_if: [["acl_enable", "=", false]]
  311. required: true
  312. - variable: additional_storage
  313. label: Additional Storage
  314. schema:
  315. type: list
  316. default: []
  317. items:
  318. - variable: storageEntry
  319. label: Storage Entry
  320. schema:
  321. type: dict
  322. attrs:
  323. - variable: type
  324. label: Type
  325. description: |
  326. ixVolume: Is dataset created automatically by the system.</br>
  327. Host Path: Is a path that already exists on the system.</br>
  328. SMB Share: Is a SMB share that is mounted to as a volume.
  329. schema:
  330. type: string
  331. required: true
  332. default: "ix_volume"
  333. enum:
  334. - value: "host_path"
  335. description: Host Path (Path that already exists on the system)
  336. - value: "ix_volume"
  337. description: ixVolume (Dataset created automatically by the system)
  338. - value: "cifs"
  339. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  340. - variable: read_only
  341. label: Read Only
  342. description: Mount the volume as read only.
  343. schema:
  344. type: boolean
  345. default: false
  346. - variable: mount_path
  347. label: Mount Path
  348. description: The path inside the container to mount the storage.
  349. schema:
  350. type: path
  351. required: true
  352. - variable: host_path_config
  353. label: Host Path Configuration
  354. schema:
  355. type: dict
  356. show_if: [["type", "=", "host_path"]]
  357. attrs:
  358. - variable: acl_enable
  359. label: Enable ACL
  360. description: Enable ACL for the storage.
  361. schema:
  362. type: boolean
  363. default: false
  364. - variable: acl
  365. label: ACL Configuration
  366. schema:
  367. type: dict
  368. show_if: [["acl_enable", "=", true]]
  369. attrs: []
  370. $ref:
  371. - "normalize/acl"
  372. - variable: path
  373. label: Host Path
  374. description: The host path to use for storage.
  375. schema:
  376. type: hostpath
  377. show_if: [["acl_enable", "=", false]]
  378. required: true
  379. - variable: ix_volume_config
  380. label: ixVolume Configuration
  381. description: The configuration for the ixVolume dataset.
  382. schema:
  383. type: dict
  384. show_if: [["type", "=", "ix_volume"]]
  385. $ref:
  386. - "normalize/ix_volume"
  387. attrs:
  388. - variable: acl_enable
  389. label: Enable ACL
  390. description: Enable ACL for the storage.
  391. schema:
  392. type: boolean
  393. default: false
  394. - variable: dataset_name
  395. label: Dataset Name
  396. description: The name of the dataset to use for storage.
  397. schema:
  398. type: string
  399. required: true
  400. default: "storage_entry"
  401. - variable: acl_entries
  402. label: ACL Configuration
  403. schema:
  404. type: dict
  405. show_if: [["acl_enable", "=", true]]
  406. attrs: []
  407. $ref:
  408. - "normalize/acl"
  409. - variable: cifs_config
  410. label: SMB Configuration
  411. description: The configuration for the SMB dataset.
  412. schema:
  413. type: dict
  414. show_if: [["type", "=", "cifs"]]
  415. attrs:
  416. - variable: server
  417. label: Server
  418. description: The server to mount the SMB share.
  419. schema:
  420. type: string
  421. required: true
  422. - variable: path
  423. label: Path
  424. description: The path to mount the SMB share.
  425. schema:
  426. type: string
  427. required: true
  428. - variable: username
  429. label: Username
  430. description: The username to use for the SMB share.
  431. schema:
  432. type: string
  433. required: true
  434. - variable: password
  435. label: Password
  436. description: The password to use for the SMB share.
  437. schema:
  438. type: string
  439. required: true
  440. private: true
  441. - variable: domain
  442. label: Domain
  443. description: The domain to use for the SMB share.
  444. schema:
  445. type: string
  446. - variable: labels
  447. label: ""
  448. group: Labels Configuration
  449. schema:
  450. type: list
  451. default: []
  452. items:
  453. - variable: label
  454. label: Label
  455. schema:
  456. type: dict
  457. attrs:
  458. - variable: key
  459. label: Key
  460. schema:
  461. type: string
  462. required: true
  463. - variable: value
  464. label: Value
  465. schema:
  466. type: string
  467. required: true
  468. - variable: containers
  469. label: Containers
  470. description: Containers where the label should be applied
  471. schema:
  472. type: list
  473. items:
  474. - variable: container
  475. label: Container
  476. schema:
  477. type: string
  478. required: true
  479. enum:
  480. - value: prometheus
  481. description: prometheus
  482. - variable: resources
  483. label: ""
  484. group: Resources Configuration
  485. schema:
  486. type: dict
  487. attrs:
  488. - variable: limits
  489. label: Limits
  490. schema:
  491. type: dict
  492. attrs:
  493. - variable: cpus
  494. label: CPUs
  495. description: CPUs limit for Prometheus.
  496. schema:
  497. type: int
  498. default: 2
  499. required: true
  500. - variable: memory
  501. label: Memory (in MB)
  502. description: Memory limit for Prometheus.
  503. schema:
  504. type: int
  505. default: 4096
  506. required: true