常用的prometheus啟動(dòng)參數(shù)有哪些

小億
146
2024-03-12 20:36:48

  1. –config.file:指定Prometheus的配置文件
  2. –web.listen-address:指定Prometheus HTTP服務(wù)器的地址和端口,默認(rèn)為0.0.0.0:9090
  3. –storage.tsdb.path:指定時(shí)間序列數(shù)據(jù)庫(kù)存儲(chǔ)路徑
  4. –web.enable-lifecycle:?jiǎn)⒂肏TTP服務(wù)器的生命周期端點(diǎn)
  5. –web.enable-admin-api:?jiǎn)⒂肏TTP服務(wù)器的管理員API端點(diǎn)
  6. –web.console.templates:指定控制臺(tái)模板文件的路徑
  7. –web.console.libraries:指定控制臺(tái)庫(kù)文件的路徑
  8. –web.console.templates="/path/to/templates”:指定控制臺(tái)模板文件的路徑
  9. –log.level:設(shè)置日志級(jí)別,可選值有debug、info、warn、error、fatal
  10. –log.format:設(shè)置日志格式,可選值有l(wèi)ogfmt、json
  11. –query.max-concurrency:設(shè)置查詢最大并發(fā)數(shù),默認(rèn)為20
  12. –storage.tsdb.retention:設(shè)置時(shí)間序列數(shù)據(jù)保留時(shí)間,默認(rèn)為15d
  13. –storage.tsdb.retention.time:設(shè)置時(shí)間序列數(shù)據(jù)保留時(shí)間,不使用retention參數(shù)時(shí)的替代參數(shù)

0