questions.yaml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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: datasetName
  154. label: Dataset Name
  155. schema:
  156. type: string
  157. show_if: [["type", "=", "ixVolume"]]
  158. required: true
  159. hidden: true
  160. immutable: true
  161. default: data
  162. $ref:
  163. - "normalize/ixVolume"
  164. - variable: hostPath
  165. label: Host Path
  166. schema:
  167. type: hostpath
  168. show_if: [["type", "=", "hostPath"]]
  169. immutable: true
  170. required: true
  171. - variable: config
  172. label: Prometheus Config Storage
  173. description: The path to store Prometheus config storage.
  174. schema:
  175. type: dict
  176. attrs:
  177. - variable: type
  178. label: Type
  179. description: |
  180. ixVolume: Is dataset created automatically by the system.</br>
  181. Host Path: Is a path that already exists on the system.
  182. schema:
  183. type: string
  184. required: true
  185. immutable: true
  186. default: ixVolume
  187. enum:
  188. - value: hostPath
  189. description: Host Path (Path that already exists on the system)
  190. - value: ixVolume
  191. description: ixVolume (Dataset created automatically by the system)
  192. - variable: datasetName
  193. label: Dataset Name
  194. schema:
  195. type: string
  196. show_if: [["type", "=", "ixVolume"]]
  197. required: true
  198. hidden: true
  199. immutable: true
  200. default: config
  201. $ref:
  202. - "normalize/ixVolume"
  203. - variable: hostPath
  204. label: Host Path
  205. schema:
  206. type: hostpath
  207. show_if: [["type", "=", "hostPath"]]
  208. immutable: true
  209. required: true
  210. - variable: resources
  211. label: ""
  212. group: Resources Configuration
  213. schema:
  214. type: dict
  215. attrs:
  216. - variable: limits
  217. label: Limits
  218. schema:
  219. type: dict
  220. attrs:
  221. - variable: cpu
  222. label: CPU
  223. description: CPU limit for Prometheus.
  224. schema:
  225. type: string
  226. max_length: 6
  227. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  228. valid_chars_error: |
  229. Valid CPU limit formats are</br>
  230. - Plain Integer - eg. 1</br>
  231. - Float - eg. 0.5</br>
  232. - Milicpu - eg. 500m
  233. default: "4000m"
  234. required: true
  235. - variable: memory
  236. label: Memory
  237. description: Memory limit for Prometheus.
  238. schema:
  239. type: string
  240. max_length: 12
  241. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  242. valid_chars_error: |
  243. Valid Memory limit formats are</br>
  244. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  245. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  246. - Plain Integer in bytes - eg. 1024</br>
  247. - Exponent - eg. 134e6
  248. default: "8Gi"
  249. required: true