<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Prometheus on HiMySQL - leopku 润物细无声</title>
    <link>https://himysql.now.sh/tags/prometheus/</link>
    <description>Recent content in Prometheus on HiMySQL - leopku 润物细无声</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Tue, 28 Mar 2017 17:55:59 +0800</lastBuildDate>
    
	<atom:link href="https://himysql.now.sh/tags/prometheus/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>利用 Prometheus 监控 NodeJS 应用</title>
      <link>https://himysql.now.sh/post/monitoring-node-apps-with-prometheus/</link>
      <pubDate>Tue, 28 Mar 2017 17:55:59 +0800</pubDate>
      
      <guid>https://himysql.now.sh/post/monitoring-node-apps-with-prometheus/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://askmike.org/articles/setting-up-prometheus-on-ubuntu-16-04/&#34;&gt;「欢快的搭建好 Prometheus」&lt;/a&gt;之后，记录我们 nodejs 应用的指标就是一件更欢快的事了。&lt;/p&gt;

&lt;p&gt;脑洞主要是在应用中引入一个外部的 node 模块，这个模块提供了对 Prometheus &lt;a href=&#34;https://prometheus.io/docs/concepts/metric_types/&#34;&gt;指标类型(metric types)&lt;/a&gt;的支持。本文中用到的是 &lt;em&gt;Counter&lt;/em&gt; 和 &lt;em&gt;Gauge&lt;/em&gt; 。这个模块通过一个轻量的 express 服务暴露统计数据，以便 Prometheus 来抓取。&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>