TSDBRelay systemd 單元檔案

TSDBRelay 可用於將指標轉發到 OpenTSDB 例項,傳送到 Bosun 進行索引,並轉發到另一個 opentsdb 相容例項以進行備份/ DR / HA。它還可以選擇使用高標籤基數對指標進行非規範化,或者建立 redis / ledis 支援的外部計數器。

#Create tsdbrelay unit file at /etc/systemd/system/tsdbrelay.service
[Unit]
Description=tsdbrelay Service
After=network.target

[Service]
Type=simple
User=root
ExecStart=/opt/tsdbrelay/tsdbrelay -b localhost:8070 -t localhost:4242 -l 0.0.0.0:5252  -r localhost:4243 #Local tsdb/bosun and influxdb opentsdb endpoint at 4243
#For external counters add: -redis redishostname:6379 -db 0
#For denormalized metrics: -denormalize=os.cpu__host,os.mem.used__host,os.net.bytes__host,os.net.bond.bytes__host,os.net.other.bytes__host,os.net.tunnel.bytes__host,os.net.virtual.bytes__host
Restart=on-abort

[Install]
WantedBy=multi-user.target