{
"name": "metric",
"data": {
"settings": {
"index": {
"number_of_shards": 3,
"number_of_replicas": 1
}
},
"mappings": {
"properties": {
"name": {
"type": "keyword"
},
"hash": {
"type": "keyword"
},
"alias": {
"type": "keyword"
},
"path": {
"type": "keyword"
},
"parent": {
"type": "keyword"
},
"text": {
"type": "keyword"
},
"leaf": {
"type": "integer"
},
"tag": {
"type": "object"
}
}
}
}
}
CREATE DATABASE dormer KEEP 1095 DAYS 10 BLOCKS 4;
CREATE TABLE metric_datapoints (ts timestamp, value float) TAGS (metric_name binary(1024));
cd dormer-receiver
echo development > env
cd configure
cp example.ini development.ini # 与env同名
vim development.ini
mkdir /var/log/dormer-receiver
python3 app.py 2003
yum install supervisor
systemctl start supervisord.service
cd dormer-receiver
echo production > env
cd configure
cp example.ini production.ini # 与env同名
vim production.ini
mkdir /var/log/dormer-receiver
python3 server.py start|stop|restart [port]