随笔分类 - promeheus
本来无一物,何处惹尘埃
摘要:前言: servicemonitor监控存在两种情况: 1、有metrics ,创建service+servicemonitor配置 2、无metrics 配置exporter,exporter进行采集 一、监控自带metrics接口 ①、部署ServiceMonitor $ vi promethe
阅读全文
摘要:一、速补基础 1、什么是metrics 缺省是在http(s)的url的/metrics输出。 而metrics要么程序定义输出(模块或者自定义开发),要么用官方的各种exporter(node-exporter,mysqld-exporter,memcached_exporter…)采集要监控的信
阅读全文
摘要:1、全局配置 global标签下的配置,会作用到所有的抓取目标。有4种配置 scrape_interval:拉取 targets的默认时间间隔。 scrape_timeout:拉取一个 target 的超时时间。 evaluation_interval:评估rules的时间间隔。 external_
阅读全文
摘要:1.下载并解压Metrics-Server https://github.com/kubernetes-sigs/metrics-server/archive/v0.3.6.tar.gz tar -zxvf v0.3.6.tar.gz 2.修改Metrics-Server配置文件 cd metric
阅读全文
摘要:一、下载 1、下载文件 $ cd /opt/k8s/work/ $ wget -O kube-state-metrics.zip https://github.com/kubernetes/kube-state-metrics/archive/master.zip $ unzip kube-stat
阅读全文
摘要:一、安装grafana wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.0.1-1480694114.x86_64.rpm yum localinstall grafana-4.0.1-148069
阅读全文
摘要:一、cAdvisor的安装 1、docker拉取cadvisor镜像* docker pull docker.io/google/cadvisor 2、运行一个容器,并配置 docker run \ --volume=/:/rootfs:ro \ --volume=/var/run:/var/run
阅读全文