プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

create prometheus

Kohei Watanabe (May 29, 2022, 10:59 PM +0900) ff9a69d3 24195044

+34
+27
prometheus/compose.yml
··· 1 + services: 2 + node-exporter: 3 + image: prom/node-exporter 4 + expose: ["9100"] 5 + command: 6 + - '--path.procfs=/host/proc' 7 + - '--path.rootfs=/rootfs' 8 + - '--path.sysfs=/host/sys' 9 + - '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)' 10 + volumes: 11 + - /proc:/host/proc:ro 12 + - /sys:/host/sys:ro 13 + - /:/rootfs:ro 14 + prometheus: 15 + image: prom/prometheus 16 + expose: ["9090"] 17 + volumes: 18 + - ./etc/prometheus:/etc/prometheus 19 + - prometheus_data:/prometheus 20 + grafana: 21 + image: grafana/grafana-oss 22 + ports: ["3000:3000"] 23 + volumes: 24 + - grafana_data:/var/lib/grafana 25 + volumes: 26 + prometheus_data: 27 + grafana_data:
+7
prometheus/etc/prometheus/prometheus.yml
··· 1 + scrape_configs: 2 + - job_name: "prometheus" 3 + static_configs: 4 + - targets: ["localhost:9090"] 5 + - job_name: "node" 6 + static_configs: 7 + - targets: ["node-exporter:9100"]