Start Prometheus

You should start Prometheus with the startup flag options that you need.

For example,

./prometheus --storage.tsdb.retention.time 30d --web.enable-admin-api --query.max-samples 5000000000
  • --storage.tsdb.retention.time 30d

    Prometheus defaults to 15 days. SMM monitors metrics up to 30 days. Therefore, this flag must be configured.

  • --web.enable-admin-api

    Optional. If Admin APIs are needed, such as deleting time series entities, this flag should be set.

  • --query.max-samples

    Optional. When many entities or samples exist, bulk query might reach the maximum sample limit.