questions.yaml 8.2 KB

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