监控:
#yum -y install epel
# sudo sed -e 's!^mirrorlist=!#mirrorlist=!g' \
-e 's!^#baseurl=!baseurl=!g' \
-e 's!//download\.fedoraproject\.org/pub!//mirrors.ustc.edu.cn!g' \
-e 's!http://mirrors\.ustc!https://mirrors.ustc!g' \
-i /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel-testing.repo
#yum -y install git python36 python36-devel python36-pip
# git clone https://github.com/ElasticHQ/elasticsearch-HQ.git
# du -sh elasticsearch-HQ/
48Melasticsearch-HQ/
# pip3 install -r requirements.txt
启动或者:
python3 application.py.
或者: ./manage.py runserver
安装的依赖包:
# pip3 list
Package Version
---------------------- --------
alembic 1.0.10
aniso8601 6.0.0
APScheduler 3.5.0
bit-array 0.1.0
bitarray 0.9.2
certifi 2019.3.9
chardet 3.0.4
Click 7.0
coverage 3.7.1
dogpile.cache 0.6.5
eventlet 0.23.0
Flask 0.12.4
Flask-APScheduler 1.7.1
flask-marshmallow 0.8.0
Flask-Migrate 2.5.1
Flask-RESTful 0.3.6
Flask-Script 2.0.6
Flask-SocketIO 3.1.0
Flask-SQLAlchemy 2.3.2
Flask-Testing 0.7.1
greenlet 0.4.15
idna 2.8
impyla 0.15.0
itsdangerous 1.1.0
Jinja2 2.10.1
jmespath 0.9.3
kafka 1.3.5
Mako 1.0.10
MarkupSafe 1.1.1
marshmallow 3.0.0b5
marshmallow-sqlalchemy 0.13.2
meld3 1.0.2
nose 1.3.4
pip 10.0.1
ply 3.11
py 1.8.0
pytest 3.0.2
pytest-cov 2.3.1
pytest-ordering 0.5
python-dateutil 2.7.2
python-editor 1.0.4
python-engineio 3.0.0
python-socketio 2.1.0
pytz 2019.1
requests 2.22.0
sasl 0.2.1
setuptools 39.0.1
six 1.11.0
SQLAlchemy 1.2.0
supervisor 4.0.3
thrift 0.9.3
thrift-sasl 0.3.0
thriftpy 0.3.9
thriftpy2 0.4.0
tzlocal 1.5.1
ufile 3.0.1
urllib3 1.22
Werkzeug 0.15.4
参考:
https://github.com/ElasticHQ/elasticsearch-HQ
http://docs.elastichq.org/
监控
kibana:
告警:
https://github.com/bitsensor/elastalert#installation
访问的端口: