Prometheus配置job采集数据示例

    - job_name: node_exporter_agent_id_e5555824-304b-48cf-a1d4-6e6a53bb4522_hr
      honor_timestamps: false
      params:
        collect[]:
            - buddyinfo
            - cpu
            - diskstats
            - filefd
            - filesystem
            - loadavg
            - meminfo
            - meminfo_numa
            - netdev
            - netstat
            - processes
            - standard.go
            - standard.process
            - stat
            - textfile.hr
            - time
            - vmstat
      scrape_interval: 5s
      scrape_timeout: 4500ms
      metrics_path: /metrics
      static_configs:
        - targets:
            - 127.0.0.1:42003
          labels:
            agent_id: /agent_id/e5555824-304b-48cf-a1d4-6e6a53bb4522
            agent_type: node_exporter
            instance: /agent_id/e5555824-304b-48cf-a1d4-6e6a53bb4522
            node_id: pmm-server
            node_name: pmm-server
            node_type: generic
      basic_auth:
        username: pmm
        password: /agent_id/e5555824-304b-48cf-a1d4-6e6a53bb4522
      follow_redirects: false

你可能感兴趣的:(Prometheus,prometheus)