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:
- SSH Hosts: Collected through a custom exporter (Consul registers the
consul-prometheus-scrapejob) - OpsMini Onboarded Hosts: Direct collection by the panel (
consul-prometheusjob, 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:
- The Prometheus address is accessible
- The Basic Auth username and password are correct
- The hosts have been successfully onboarded and registered by Consul