1. 概要

rbd-monitor负责处理集群节点、服务、容器的监控和报警。

2. 启动参数

  1. Usage of /run/rainbond-monitor:
  2. --advertise-addr string advertise address, and registry into etcd. (default "manage01:9999")
  3. --alertmanager-address stringSlice AlertManager url.
  4. --alertmanager.notification-queue-capacity string The capacity of the queue for pending Alertmanager notifications. (default "10000")
  5. --alertmanager.timeout string Timeout for sending alerts to Alertmanager. (default "10s")
  6. --config.file string Prometheus configuration file path. (default "/etc/prometheus/prometheus.yml")
  7. --etcd-endpoints string etcd endpoints list. (default "http://127.0.0.1:2379")
  8. --log.level string log level. (default "info")
  9. --query.lookback-delta string The delta difference allowed for retrieving metrics during expression evaluations. (default "5m")
  10. --query.max-concurrency string Maximum number of queries executed concurrently. (default "20")
  11. --query.timeout string Maximum time a query may take before being aborted. (default "2m")
  12. --rules-config.file string Prometheus alerting rules config file path. (default "/etc/prometheus/rules.yml")
  13. --storage.remote.flush-deadline string How long to wait flushing sample on shutdown or config reload. (default "1m")
  14. --storage.tsdb.max-block-duration string Maximum duration compacted blocks may span. For use in testing. (Defaults to 10% of the retention period).
  15. --storage.tsdb.min-block-duration string Minimum duration of a data block before being persisted. For use in testing. (default "2h")
  16. --storage.tsdb.no-lockfile Do not create lockfile in data directory.
  17. --storage.tsdb.path string Base path for metrics storage. (default "/prometheusdata")
  18. --storage.tsdb.retention string How long to retain samples in storage. (default "7d")
  19. --web.console.libraries string Path to the console library directory. (default "console_libraries")
  20. --web.console.templates string Path to the console template directory, available at /consoles. (default "consoles")
  21. --web.enable-admin-api Enable API endpoints for admin control actions.
  22. --web.enable-lifecycle Enable shutdown and reload via HTTP request.
  23. --web.external-url string The URL under which Prometheus is externally reachable (for example, if Prometheus is served via a reverse proxy). Used for generating relative and absolute links back to Prometheus itself. If the URL has a path portion, it will be used to prefix all HTTP endpoints served by Prometheus. If omitted, relevant URL components will be derived automatically.
  24. --web.listen-address string Address to listen on for UI, API, and telemetry. (default "0.0.0.0:9999")
  25. --web.max-connections int Maximum number of simultaneous connections. (default 512)
  26. --web.read-timeout string Maximum duration before timing out read of the request, and closing idle connections. (default "5m")
  27. --web.route-prefix string Prefix for the internal routes of Web endpoints. Defaults to path of --Web.external-url.
  28. --web.user-assets string Path to static asset directory, available at /user.

环境变量

环境变量名称默认值说明