Skip to content

Prometheus Integration

OpsAnt's monitoring and alerting capabilities are based on Prometheus / Alertmanager, and must first be configured in "System Settings - Prometheus Integration".

Configuration Items

Field Description
Prometheus Address For example, http://<内网IP>:9090
Alertmanager Address For example, http://<内网IP>:9093
Enable Basic Auth Whether to enable HTTP basic authentication
Username / Password Basic Auth credentials
Disable SSL Verification Verification can be disabled in self-signed certificate scenarios
Consul Address Service registry address

One-Click Install Has Already Configured Automatically

When installing with the one-click script, the Prometheus / Alertmanager / Consul addresses and credentials are written automatically, with no manual configuration required.

Host Metric Collection

OpsAnt collects metrics from onboarded hosts in two ways:

  1. SSH Hosts: Collected through a custom exporter (Consul registers the consul-prometheus-scrape job)
  2. OpsMini Onboarded Hosts: Direct collection by the panel (consul-prometheus job, default /metrics)

After hosts are onboarded, the platform automatically registers the hosts with Consul, and Prometheus scrapes metrics accordingly, with no manual maintenance required.

Verification

After the configuration is saved, you can:

  • View active alerts on the "Alert Events" page
  • Query metric charts on the "Monitoring Charts" page
  • View rule groups on the "Alert Rules" page

If no data is displayed, please confirm:

  1. The Prometheus address is accessible
  2. The Basic Auth username and password are correct
  3. The hosts have been successfully onboarded and registered by Consul