<?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 Miek Gieben</title>
    <link>https://miek.nl/tags/prometheus/</link>
    <description>Recent content in Prometheus on Miek Gieben</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Copyright 2007-2024 Miek Gieben</copyright>
    <lastBuildDate>Wed, 02 Mar 2016 07:53:58 +0000</lastBuildDate>
    <atom:link href="https://miek.nl/tags/prometheus/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Enable Prometheus metrics in Caddy</title>
      <link>https://miek.nl/2016/march/02/enable-prometheus-metrics-in-caddy/</link>
      <pubDate>Wed, 02 Mar 2016 07:53:58 +0000</pubDate>
      <guid>https://miek.nl/2016/march/02/enable-prometheus-metrics-in-caddy/</guid>
      <description>&lt;p&gt;The &lt;a href=&#34;https://caddyserver.com/&#34;&gt;Caddy webserver&lt;/a&gt; is a modern webserver written in Go.&#xA;I like it because I can easily extend it by writing some middleware (in&#xA;Go). One of the things missing is&#xA;&lt;a href=&#34;https://github.com/mholt/caddy/issues/577&#34;&gt;metrics&lt;/a&gt;, which prompted me&#xA;to implement &lt;a href=&#34;https://github.com/miekg/caddy-prometheus/&#34;&gt;enough metrics&lt;/a&gt; to make me happy.&lt;/p&gt;&#xA;&lt;p&gt;Using this is relatively straight forward, but you&amp;rsquo;ll need to compile Caddy yourself and add this&#xA;middleware.&lt;/p&gt;&#xA;&lt;h2 id=&#34;setup&#34;&gt;Setup&lt;/h2&gt;&#xA;&lt;p&gt;(Assuming you have Go installed), first get the goodies:&lt;/p&gt;&#xA;&lt;dl&gt;&#xA;&lt;dt&gt;Caddy:&lt;/dt&gt;&#xA;&lt;dd&gt;&lt;code&gt;go get github.com/mholt/caddy&lt;/code&gt;&lt;/dd&gt;&#xA;&lt;dt&gt;Caddyext:&lt;/dt&gt;&#xA;&lt;dd&gt;This is needed to compile in the new middleware, &lt;code&gt;go get github.com/caddyserver/caddyext&lt;/code&gt;&lt;/dd&gt;&#xA;&lt;dt&gt;Caddy-prometheus:&lt;/dt&gt;&#xA;&lt;dd&gt;&lt;code&gt;go get github.com/miekg/caddy-prometheus&lt;/code&gt;&lt;/dd&gt;&#xA;&lt;/dl&gt;&#xA;&lt;p&gt;Then, with &lt;code&gt;caddyext&lt;/code&gt; register the new middleware:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Monitoring with SSH and Prometheus</title>
      <link>https://miek.nl/2016/february/24/monitoring-with-ssh-and-prometheus/</link>
      <pubDate>Wed, 24 Feb 2016 11:35:01 +0000</pubDate>
      <guid>https://miek.nl/2016/february/24/monitoring-with-ssh-and-prometheus/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;I just wanted to see some qps metrics from BIND9.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This is a bit of hand wavey post on how to set up remote monitoring with&#xA;&lt;a href=&#34;https://prometheus.io&#34;&gt;Prometheus&lt;/a&gt;, &lt;a href=&#34;http://grafana.org&#34;&gt;Grafana&lt;/a&gt; and SSH tunnels.&lt;/p&gt;&#xA;&lt;p&gt;Initially I &lt;em&gt;just&lt;/em&gt; wanted to monitor BIND9 because it actually exports some reasonable&#xA;&lt;a href=&#34;https://kb.isc.org/article/AA-01123&#34;&gt;metrics&lt;/a&gt;, that can be made usable with&#xA;&lt;a href=&#34;https://github.com/digitalocean/bind_exporter&#34;&gt;bind_exporter&lt;/a&gt;. But of course BIND is BIND so this&#xA;is different in &lt;a href=&#34;https://github.com/digitalocean/bind_exporter/issues/7&#34;&gt;BIND 9.10&lt;/a&gt; which is what&#xA;I have on my server&amp;hellip;. &lt;em&gt;sigh&lt;/em&gt;. &lt;a href=&#34;https://twitter.com/@jpmens&#34;&gt;@jpmens&lt;/a&gt; also has some&#xA;&lt;a href=&#34;http://jpmens.net/2010/10/21/using-binds-statistics-server-to-list-zones-and-axfr-the-list/&#34;&gt;interesting tidbits&lt;/a&gt;&#xA;about this BIND9 feature.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
