一、前提:

直通车 ————>↓↓↓↓↓↓

  1. 需要ES集群
    https://blog.csdn.net/wdy_2099/article/details/125441436
  2. 需要filebeat
    https://blog.csdn.net/wdy_2099/article/details/125445893
  3. 需要logstash
    https://blog.csdn.net/wdy_2099/article/details/125464226
  4. 需要grafana
    https://blog.csdn.net/wdy_2099/article/details/124211397
  5. 需要nginx
  6. 需要对grafana添加数据源+导入想要的dashboards有了解
    https://blog.csdn.net/wdy_2099/article/details/124211866

二、模板导入

https://grafana.com/grafana/dashboards/11190
模版整体效果:

导入模板后,如果提示少plugin,就去安装一下:

grafana-cli plugins install grafana-piechart-panelgrafana-cli plugins install grafana-worldmap-panel

安装完重启grafana

systemctl restart grafana-server

ES里nginx日志数据:

grafana显示效果:

END