Kibana
Kibana是一个开源的分析与可视化平台,设计出来用于和Elasticsearch一起使用的。你可以用kibana搜索、查看存放在Elasticsearch中的数据。Kibana与Elasticsearch的交互方式是各种不同的图表、表格、地图等,直观的展示数据,从而达到高级的数据分析与可视化的目的。
kibana安装
拉取kibana镜像
shell
[root@localhost config]# docker pull kibana:7.17.7
Trying to pull repository docker.io/library/kibana ...
7.17.7: Pulling from docker.io/library/kibana
fb0b3276a519: Already exists
8ff10acfee0e: Pull complete
389dd4b16fb3: Pull complete
e0a153be433a: Pull complete
7f70ada2dbae: Pull complete
4f4fb700ef54: Pull complete
f886755e1fae: Pull complete
71c4c41a32c3: Pull complete
f06e31ef44b1: Pull complete
aa5de441a7b6: Pull complete
9501cd64e5ec: Pull complete
8aa2ba840eb0: Pull complete
09b573bb90be: Pull complete
bb60bde26a17: Pull complete
Digest: sha256:414b6a159b8ab8049bcf45236d7ec86bc0238ba9ec86fbd362e948c09cc34991
Status: Downloaded newer image for docker.io/kibana:7.17.7
创建配置文件 kibana.yml
yml
server.host: "0.0.0.0"
server.shutdownTimeout: "5s"
elasticsearch.hosts: [ "http://192.168.198.128:9200" ]
monitoring.ui.container.elasticsearch.enabled: true
创建、运行容器
shell
docker run -itd \
--name kibana \
--privileged \
-p 5601:5601 \
--network wn_docker_net \
--ip 172.18.12.52 \
-v /usr/local/software/elk/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml \
kibana:7.17.7
或者在创建时直接连接elasticseach地址
shell
docker run -itd --name kibana -e "ELASTICSEARCH_HOSTS=http://192.168.1.106:9200" -p 5601:5601 kibana:7.17.7