Environment Variables
Environment Variable Name | Description |
---|---|
ENV_OPS_TOKEN | Access authentication key for the Ops Platform |
ENV_PROMETHEUS_HOST | Node_Exporter service address; replace with the actual server IP. The port is fixed at 59100 . For multiple Node_Exporters, use a comma to separate them in the format: custom_hostname/IP:59100 . If deployed using Docker Compose, the Node_Exporter is single-node by default. Enter the server's internal IP. Example: hap_1/192.168.1.12:59100 . For Kubernetes deployment, Node_Exporter is multi-node; use commas to separate. Example: service_01/192.168.1.12:59100,service_02/192.168.1.13:59100 . |
ENV_PROMETHEUS_KAFKA | Kafka monitoring agent address; no modification needed by default. Example: kafka_1/agent:9308 |
ENV_PROMETHEUS_ELASTICSEARCH | Elasticsearch monitoring agent address; no modification needed by default. Example: elasticsearch_1/ops-agent:9114 |
ENV_PROMETHEUS_REDIS | Redis monitoring agent address; no modification needed by default. Example: redis_1/ops-agent:9121 |
ENV_PROMETHEUS_MONGODB | MongoDB monitoring agent address; no modification needed by default. Example: mongodb_1/ops-agent:9216 |
ENV_PROMETHEUS_MYSQL | MySQL monitoring agent address; no modification needed by default. Example: mysql_1/ops-agent:9104 |
ENV_MYSQL_HOST | MySQL database host address. Example: 10.206.0.6 |
ENV_MYSQL_PORT | MySQL database connection port. Example: 3306 |
ENV_MYSQL_USERNAME | MySQL database username. Example: root |
ENV_MYSQL_PASSWORD | MySQL database password. Example: 123456 |
ENV_MONGODB_URI | MongoDB connection URI. Example: mongodb://root:123456@10.206.0.6:27017 Replica set example: mongodb://root:123456@10.206.0.6:27017,10.206.0.7:27017,10.206.0.8:27017 |
ENV_MONGODB_OPTIONS | MongoDB additional connection options, typically specify the authentication database as admin . If the database does not have authentication enabled, this value can be empty. Example: ?authSource=admin |
ENV_REDIS_HOST | Redis database host address. Example: 10.206.0.6 |
ENV_REDIS_PORT | Redis database connection port. Example: 6379 |
ENV_REDIS_PASSWORD | Redis database password. Example: 123456 |
ENV_KAFKA_ENDPOINTS | Kafka service address. If in a cluster, just enter one node. Example: 10.206.0.6:9092 |
ENV_ELASTICSEARCH_ENDPOINTS | Elasticsearch service address. If in a cluster, just enter one node. Example: http://10.206.0.6:9200 |
ENV_ELASTICSEARCH_PASSWORD | Elasticsearch user and password. Example: elastic:kF44FEchQU9k |
ENV_FLINK_URL | Flink Web service address. Comment out if not needed or not deployed. Example: http://flink:8081 |
ENV_PROMETHEUS_RETENTION | Prometheus data retention days; defaults to 15d if not configured. Example: 30d |
ENV_SMTP_ENABLED | Enable SMTP email capability. Example: true |
ENV_SMTP_HOST | SMTP mail server address. Example: smtp.example.com |
ENV_SMTP_PORT | SMTP mail server port. Example: 465 |
ENV_SMTP_USER | SMTP mail server account. Example: ops@example.com |
ENV_SMTP_PASSWORD | SMTP mail server authorization code. Example: ************ |
ENV_SMTP_SKIPVERIFY | Skip SSL/TLS certificate verification for the mail server. Example: true |
ENV_SMTP_FROM_ADDR | Alert sender's email address. Example: ops@example.com |
ENV_SMTP_FROM_NAME | Alert email subject. Example: HAP Alert |