开发者社区> 问答> 正文

使用prometheus监控flink的时候,重新启动flink的推送的消息会缓存,比如总槽数会累加

image.png 实际就只有一个,但是重新启动了2次,说明之前的缓存数据还在,image.png ,大佬有什么解决思路没,时间拉取以前的数据删掉?

展开
收起
游客dsdoomcsq4ozo 2021-02-04 12:05:06 1106 0
1 条回答
写回答
取消 提交回答
  • 下一站是幸福

    配置Prometheus

    修改Prometheus根目录prometheus.yml文件的scrape_config,如下图所示: scrape_configs: # The job name is added as a label job=<job_name> to any timeseries scraped from this config. - job_name: 'pushgateway'

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.
    
    static_configs:
    - targets: ['10.180.210.172:9091']
      labels:
        instance: 'pushgateway'
    
    • job_name: 'linux' static_configs:

      • targets: ['10.180.210.172:9100'] labels: instance: 'linux'
    • job_name: prometheus static_configs:

      • targets: ['10.180.210.172:9090'] labels: instance: prometheus

    启动prometheus, node_exporter和pushgateway

    在命令行启动prometheus, node_exporter和pushgateway。

    通过访问组件对应的URL确定是否成功启动。 端口号:

    prometheus: 9090
    node_exporter: 9100
    pushgateway: 9091
    

    来源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

    2021-04-02 22:04:04
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
基于英特尔 SSD 的虚拟机缓存解决SSD 立即下载
用户态高速块缓存方案 立即下载
高性能Web架构之缓存体系 立即下载