2019-04-04 13:37:54 +00:00
|
|
|
[Unit]
|
|
|
|
Description=HBase Exporter for Prometheus
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
2019-04-10 11:14:37 +00:00
|
|
|
User=hdfs
|
2020-07-01 19:18:40 +00:00
|
|
|
EnvironmentFile=/etc/env-hbase-exporter
|
2020-07-01 19:43:22 +00:00
|
|
|
ExecStart=/usr/local/bin/hbase-exporter --zookeeper-server-address=${ZOOKEEPER_SERVER_1} \
|
|
|
|
--zookeeper-server-address=${ZOOKEEPER_SERVER_2} \
|
|
|
|
--zookeeper-server-address=${ZOOKEEPER_SERVER_3} \
|
|
|
|
--zookeeper-server-address=${ZOOKEEPER_SERVER_4} \
|
|
|
|
--zookeeper-server-address=${ZOOKEEPER_SERVER_5} \
|
2020-07-01 19:18:40 +00:00
|
|
|
--export-refresh-rate=${EXPORT_REFRESH_RATE} \
|
|
|
|
--hbck-refresh-rate=${HBCK_REFRESH_RATE}
|
2019-04-04 13:37:54 +00:00
|
|
|
Restart=always
|
|
|
|
RestartSec=30s
|