Skip to main content

Environment Variables

Environment Variable NameDescription
ENV_OPS_TOKENAccess authentication key for the Ops Platform
ENV_PROMETHEUS_HOSTNode_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_KAFKAKafka monitoring agent address; no modification needed by default. Example: kafka_1/agent:9308
ENV_PROMETHEUS_ELASTICSEARCHElasticsearch monitoring agent address; no modification needed by default. Example: elasticsearch_1/ops-agent:9114
ENV_PROMETHEUS_REDISRedis monitoring agent address; no modification needed by default. Example: redis_1/ops-agent:9121
ENV_PROMETHEUS_MONGODBMongoDB monitoring agent address; no modification needed by default. Example: mongodb_1/ops-agent:9216
ENV_PROMETHEUS_MYSQLMySQL monitoring agent address; no modification needed by default. Example: mysql_1/ops-agent:9104
ENV_MYSQL_HOSTMySQL database host address. Example: 10.206.0.6
ENV_MYSQL_PORTMySQL database connection port. Example: 3306
ENV_MYSQL_USERNAMEMySQL database username. Example: root
ENV_MYSQL_PASSWORDMySQL database password. Example: 123456
ENV_MONGODB_URIMongoDB 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_OPTIONSMongoDB 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_HOSTRedis database host address. Example: 10.206.0.6
ENV_REDIS_PORTRedis database connection port. Example: 6379
ENV_REDIS_PASSWORDRedis database password. Example: 123456
ENV_KAFKA_ENDPOINTSKafka service address. If in a cluster, just enter one node. Example: 10.206.0.6:9092
ENV_ELASTICSEARCH_ENDPOINTSElasticsearch service address. If in a cluster, just enter one node. Example: http://10.206.0.6:9200
ENV_ELASTICSEARCH_PASSWORDElasticsearch user and password. Example: elastic:kF44FEchQU9k
ENV_FLINK_URLFlink Web service address. Comment out if not needed or not deployed. Example: http://flink:8081
ENV_PROMETHEUS_RETENTIONPrometheus data retention days; defaults to 15d if not configured. Example: 30d
ENV_SMTP_ENABLEDEnable SMTP email capability. Example: true
ENV_SMTP_HOSTSMTP mail server address. Example: smtp.example.com
ENV_SMTP_PORTSMTP mail server port. Example: 465
ENV_SMTP_USERSMTP mail server account. Example: ops@example.com
ENV_SMTP_PASSWORDSMTP mail server authorization code. Example: ************
ENV_SMTP_SKIPVERIFYSkip SSL/TLS certificate verification for the mail server. Example: true
ENV_SMTP_FROM_ADDRAlert sender's email address. Example: ops@example.com
ENV_SMTP_FROM_NAMEAlert email subject. Example: HAP Alert