zoukankan      html  css  js  c++  java
  • 外国域名无法访问 metricbeat.docker.yml 无法下载问题解决

    需要安装一个监控工具,

    最近喜欢docker版,根据官网配置

    curl -L -O https://raw.githubusercontent.com/elastic/beats/7.8/deploy/docker/metricbeat.docker.yml

    发现拒绝访问。。

    解决:

    通过 http://ip.tool.chinaz.com/ 查询具体IP地址,

    然后将地址放入本机hosts文件中。

    再次访问通了。。。。

    能通过迅雷给下载下来,仅此记录,备忘。

    metricbeat.docker.yml

    metricbeat.config:
      modules:
        path: ${path.config}/modules.d/*.yml
        # Reload module configs as they change:
        reload.enabled: false
    
    metricbeat.autodiscover:
      providers:
        - type: docker
          hints.enabled: true
    
    metricbeat.modules:
    - module: docker
      metricsets:
        - "container"
        - "cpu"
        - "diskio"
        - "healthcheck"
        - "info"
        #- "image"
        - "memory"
        - "network"
      hosts: ["unix:///var/run/docker.sock"]
      period: 10s
      enabled: true
    
    processors:
      - add_cloud_metadata: ~
    
    output.elasticsearch:
      hosts: '${ELASTICSEARCH_HOSTS:elasticsearch:9200}'
      username: '${ELASTICSEARCH_USERNAME:}'
      password: '${ELASTICSEARCH_PASSWORD:}'
  • 相关阅读:
    vmstat
    linux内存机制
    TOP命令
    linux下查阅文件内容cat,more,less,tail
    linux stat命令
    linux修改主机名-IP
    alias
    linux软硬链接
    linux 常用find命令
    ubuntu下交叉编译imagemagick
  • 原文地址:https://www.cnblogs.com/a393060727/p/13262030.html
Copyright © 2011-2022 走看看