Skip to main content

Command Palette

Search for a command to run...

Start a prometheus server

Updated
1 min readView as Markdown

use follow command, to run a prometheus server by docker container

docker run --name prometheus  -p 9090:9090  -v /etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus

edit the config to find your nodeExporter

scrape_configs:
  - job_name: 'prometheus'
    static_configs:
      - targets: ['localhost:9090']
  # 采集node exporter监控数据
  - job_name: 'node'
    static_configs:
      - targets: ['host.docker.internal:9300']

More from this blog

NSQ(A realtime distributed messaging platform)

nsq 重要组件 nsqd 开放tcp:4150,http:4151端口与生产消费者通信,连接nsqlookup的4160端口注册,上报心跳 nsqlookupd 守护进程负责nsqd服务发现 开放http:4161,供nsqadmin和消费者查询当前nsqd列表等信息,开放tcp:4160端口给nsqd注册 nsqadmin 前端可视化页面,开放http:4171端口,连接nsqlookupd的4161端口查询数据 部署测试 docker-compose 官方配置文件没有指定端口映射,以...

Jun 23, 20222 min read

Joengtou's blog

11 posts