智能运维-Prometheus远程存储至ElasticSearch的配置方法

本文详细介绍了如何在CentOS/Linux系统中,将Prometheus的监控数据远程存储到ElasticSearch,包括ElasticSearch的安装、prometheusbeat的部署以及Prometheus配置文件的修改步骤,并提供了安装成功的截图作为验证。
摘要由CSDN通过智能技术生成

1、安装ElasticSearch

#查询镜像
# docker search elasticsearch

#拉取镜像
# docker pull elasticsearch:7.5.1

#查看镜像
# docker images 

#运行容器  ,最后为镜像ID
# docker run -d --name elasticsearch  -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" 2bd69c322e98

2、安装prometheusbeat

#配置文件如下配置如下:

prometheusbeat:
  # Listen port of the server. Defaults to :8080
  listen: ":8080"
  # Context path. Defaults to /prometheus
  context: "/prometheus"
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["172.17.0.47:9200"]  # 具体的elasticserch主机IP
  # Optional protocol and basic auth credentials.
  #protocol: "https"
  #username: "elastic"
  #password: "changeme"




# 拉取镜像
# docker pull  infonova/prometheusbeat:latest

# 查看镜像
# docker images

# 运行容器  ,最后为镜像ID
# docker run -d  --name prometheusbeat -p 8080:8
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值