<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Prometheus on TinyChen's Blog</title><link>https://tinychen.com/tags/prometheus/</link><description>Recent content in Prometheus on TinyChen's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Wed, 22 Jul 2026 20:00:00 +0800</lastBuildDate><atom:link href="https://tinychen.com/tags/prometheus/index.xml" rel="self" type="application/rss+xml"/><item><title>etcdctl与etcd Prometheus指标监控</title><link>https://tinychen.com/20250118-etcdctl-etcd-metrics/</link><pubDate>Sat, 18 Jan 2025 19:00:00 +0800</pubDate><guid>https://tinychen.com/20250118-etcdctl-etcd-metrics/</guid><description>&lt;p&gt;本文主要记录如何在已启用 TLS 的 etcd 集群（以 Kubernetes 控制面 etcd 为例）上配置 &lt;code&gt;etcdctl&lt;/code&gt;，以及如何通过 Prometheus 抓取 etcd metrics。Grafana 大盘可在指标稳定后再叠加，本文以采集链路为主。&lt;/p&gt;</description></item><item><title>CoreDNS篇3-接入prometheus监控</title><link>https://tinychen.com/20210623-dns-06-coredns-03-prometheus/</link><pubDate>Thu, 24 Jun 2021 17:00:00 +0800</pubDate><guid>https://tinychen.com/20210623-dns-06-coredns-03-prometheus/</guid><description>&lt;p&gt;本文主要对coredns的&lt;em&gt;prometheus&lt;/em&gt;监控进行介绍，以及对grafana中配置coredns的dashboard进行分享。&lt;/p&gt;</description></item><item><title>Prometheus系列01-单机版二进制部署</title><link>https://tinychen.com/20210105-prometheus-01-binary-install/</link><pubDate>Tue, 05 Jan 2021 11:00:00 +0800</pubDate><guid>https://tinychen.com/20210105-prometheus-01-binary-install/</guid><description>&lt;p&gt;作为 CNCF 中最成功的开源项目之一，&lt;code&gt;Prometheus&lt;/code&gt; 已经成为了云原生监控的代名词，被广泛应用在 &lt;code&gt;Kubernetes&lt;/code&gt;和&lt;code&gt;OpenShift&lt;/code&gt; 等项目中，同时有很多第三方解决方案也会集成 &lt;code&gt;Prometheus&lt;/code&gt;。随着 &lt;code&gt;Kubernetes&lt;/code&gt; 在容器调度和管理上确定领头羊的地位，&lt;code&gt;Prometheus&lt;/code&gt; 也成为&lt;code&gt;Kubernetes&lt;/code&gt;容器监控的标配。&lt;/p&gt;
&lt;p&gt;考虑到k8s系统的复杂性和上手难度较高，本文将从最简单最基础的部分开始循序渐进，主要介绍如何在CentOS8系统上直接使用二进制文件和&lt;code&gt;systemd&lt;/code&gt;进行&lt;code&gt;Prometheus server&lt;/code&gt;的单机版本部署，本文只涉及到最基础的&lt;code&gt;Prometheus server&lt;/code&gt;、&lt;code&gt;node_exporter&lt;/code&gt;和&lt;code&gt;Grafana&lt;/code&gt;三个模块，暂未涉及&lt;code&gt;Pushgateway&lt;/code&gt;和&lt;code&gt;Alertmanager&lt;/code&gt;两个模块。&lt;/p&gt;
&lt;p&gt;一般来说，&lt;code&gt;Prometheus server&lt;/code&gt;是用于作为服务端来存储各类&lt;code&gt;exporter&lt;/code&gt;在被监控节点上面采集的数据，而&lt;code&gt;Grafana&lt;/code&gt;则负责将&lt;code&gt;Prometheus server&lt;/code&gt;上的数据可视化，因此&lt;code&gt;Prometheus server&lt;/code&gt;和&lt;code&gt;Grafana&lt;/code&gt;不一定要部署在同一台机器上面，只需要部署两者的机器能够互相通信即可，同理，各类&lt;code&gt;exporter&lt;/code&gt;应该部署在需要被监控的节点机器上。这里由于机器数量有限且只作为测试，会将三者都部署在同一台机器上。&lt;/p&gt;</description></item></channel></rss>