<?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 Puppeteers Oy</title>
		<link>https://www.puppeteers.net/tags/prometheus/</link>
		<description>Recent content in Prometheus on Puppeteers Oy</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Thu, 31 Oct 2024 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://www.puppeteers.net/tags/prometheus/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Monitoring Azure with Prometheus</title>
				<link>https://www.puppeteers.net/blog/monitoring-azure-with-prometheus/</link>
				<pubDate>Thu, 31 Oct 2024 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/monitoring-azure-with-prometheus/</guid>
				<description>&lt;p&gt;&lt;img src=&#34;https://puppeteers-public.hel1.your-objectstorage.com/pexels-kelly-2543201-trimmed-1.jpg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://prometheus.io/&#34;&gt;Prometheus&lt;/a&gt; is a great tool for &amp;ldquo;cloud-native&amp;rdquo; metrics gathering and monitoring. It is particularly easy to manage with &lt;a href=&#34;https://www.puppeteers.net/learn/understanding-infrastructure-as-code-iac/&#34;&gt;infrastructure as code&lt;/a&gt; methods. Prometheus can collect metrics from various sources, including &lt;a href=&#34;https://azure.microsoft.com/en-us/products/monitor/&#34;&gt;Azure Monitor&lt;/a&gt;. You can use &lt;a href=&#34;https://github.com/webdevops/azure-metrics-exporter&#34;&gt;Azure Metrics Exporter&lt;/a&gt; to convert Azure Monitor metrics into Prometheus metrics, but doing so is definitely not trivial unless you&amp;rsquo;re pretty familiar with Prometheus, Azure Monitor and Microsoft Entra ID apps. This article tries to help you make monitoring Azure with Prometheus a breeze instead of a struggle. We won&amp;rsquo;t go into a lot of detail about Prometheus or Azure Monitor as there&amp;rsquo;s plenty of information available elsewhere about both of them. Also note that this article is about vanilla Prometheus, &lt;em&gt;not&lt;/em&gt; Microsoft&amp;rsquo;s &amp;ldquo;Azure Monitor managed service for Prometheus&amp;rdquo;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Blackbox Exporter ICMP module and selinux</title>
				<link>https://www.puppeteers.net/blog/blackbox-exporter-icmp-module-and-selinux/</link>
				<pubDate>Thu, 21 Sep 2023 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/blackbox-exporter-icmp-module-and-selinux/</guid>
				<description>&lt;p&gt;&lt;img src=&#34;https://puppeteers-public.hel1.your-objectstorage.com/pexels-pixabay-2748861-1024x682.jpg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Blackbox Exporter ICMP module and selinux do not like each other. Same goes for systemd units and ICMP Echo sockets. However, with persistence, skill and a bit of luck you can make it all work together. &lt;a href=&#34;https://www.pexels.com/it-it/foto/foto-in-scala-di-grigi-del-filo-spinato-274886/&#34;&gt;Photo credit&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/prometheus/blackbox_exporter&#34;&gt;Blackbox Exporter&lt;/a&gt; is an exporter for the &lt;a href=&#34;https://prometheus.io/&#34;&gt;Prometheus&lt;/a&gt; monitoring system. It is able to probe a target, such as a host or an application from the outside. Blackbox Exporter does probing with modules such as http, tcp, dns, icmp and grpc (details &lt;a href=&#34;https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md&#34;&gt;here&lt;/a&gt;). The icmp module is special because it does privileged operations that require the CAP_NET_RAW capability and as well as custom selinux policies. This article aims to explain how you can make Blackbox Exporter ICMP module and selinux work together. &lt;strong&gt;NOTE:&lt;/strong&gt; you do not need any of these tricks if you use non-icmp Blackbox exporter modules.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Excluding down targets in Prometheus</title>
				<link>https://www.puppeteers.net/blog/excluding-down-targets-in-prometheus/</link>
				<pubDate>Fri, 11 Aug 2023 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/excluding-down-targets-in-prometheus/</guid>
				<description>&lt;p&gt;&lt;img src=&#34;https://puppeteers-public.hel1.your-objectstorage.com/pexels-kelly-2543201-trimmed-1-1021x1024.jpg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Excluding down targets in Prometheus is easy. It allow you to monitor volatile systems that start and shut down on demand.&lt;/p&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://prometheus.io/&#34;&gt;Prometheus&lt;/a&gt; is an open source metrics and alerting solution used to monitor a wide range of things. Unlike many classic network monitoring systems Prometheus is focused on colleting metrics. This makes it quite easy to do things that would be difficult in others systems. For example excluding down targets in Prometheus is quite trivial. This can be highly useful when you have volatile, static targets that come and go - for example Jenkins slaves (or build agents). Even on such targets you&amp;rsquo;d want to monitor things like systemd service status, memory usage and disk usage.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Integrating Twilio SMS and Prometheus Alertmanager</title>
				<link>https://www.puppeteers.net/blog/integrating-twilio-sms-and-prometheus-alertmanager/</link>
				<pubDate>Thu, 16 Feb 2023 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/integrating-twilio-sms-and-prometheus-alertmanager/</guid>
				<description>&lt;p&gt;&lt;img src=&#34;https://puppeteers-public.hel1.your-objectstorage.com/prometheus-logo.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://prometheus.io/&#34;&gt;Prometheus&lt;/a&gt; is a widely used, cloud-native open source monitoring solution. Its alerting component is called &lt;a href=&#34;https://prometheus.io/docs/alerting/latest/alertmanager/&#34;&gt;Alertmanager&lt;/a&gt;, which can send alerts to email, Slack and elsewhere. Both Prometheus and Alertmanager fit very well into the &lt;a href=&#34;https://www.puppeteers.net/learn/understanding-infrastructure-as-code-iac/&#34;&gt;infrastructure as code model&lt;/a&gt; as well. &lt;a href=&#34;https://www.twilio.com/docs/sms&#34;&gt;Twilio SMS&lt;/a&gt; is a SMS sending service with consumption-based pricing model with an extensive API. With some effort you can integrate Twilio SMS and Prometheus together as described in this article.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Testing AlertManager webhooks with curl</title>
				<link>https://www.puppeteers.net/blog/testing-alertmanager-webhooks-with-curl/</link>
				<pubDate>Mon, 06 Feb 2023 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/testing-alertmanager-webhooks-with-curl/</guid>
				<description>&lt;p&gt;&lt;img src=&#34;https://puppeteers-public.hel1.your-objectstorage.com/pexels-steve-johnson-1256916-scaled.jpg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://prometheus.io&#34;&gt;Prometheus&lt;/a&gt; is a Cloud-native metrics platforms that is very easy to manage with &lt;a href=&#34;https://www.puppeteers.net/learn/understanding-infrastructure-as-code-iac/&#34;&gt;infrastructure as code&lt;/a&gt; tools. Prometheus is often couple with Alertmanager which handles alerting and alert routing. AlertManager has good support for various alert transport (e.g. email or slack) but its alerting capabilities can be extended with custom webhooks. When AlertManager is configured to use a webhook in an alert route, it forwards alerts to an HTTPS/HTTP endpoint instead of handling transporting of the alert itself. AlertManager&amp;rsquo;s official documentation gives a rough idea of what kind of payload to use and how to configure the webhook in alertmanager.yaml. What is not documented is how you can send test alerts to the webhook &lt;em&gt;without&lt;/em&gt; having to trigger real (or fake) alerts in Prometheus. While using fake alerts does work, it is a slow, tedious and invasive process. This article shows one way for testing AlertManager webhooks with curl. In our case the target was to speed up testing of changes to &lt;a href=&#34;https://github.com/Swatto/promtotwilio&#34;&gt;promtotwilio&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Making Prometheus and Alertmanager work behind a reverse proxy</title>
				<link>https://www.puppeteers.net/blog/making-prometheus-and-alertmanager-work-behind-a-reverse-proxy/</link>
				<pubDate>Wed, 09 Dec 2020 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/making-prometheus-and-alertmanager-work-behind-a-reverse-proxy/</guid>
				<description>&lt;p&gt;We maintain a &lt;a href=&#34;https://prometheus.io/docs/introduction/overview/&#34;&gt;Prometheus&lt;/a&gt; and &lt;a href=&#34;https://prometheus.io/docs/alerting/latest/alertmanager/&#34;&gt;Alertmanager&lt;/a&gt; setup where both services are running on the same host and an Apache reverse proxy handles TLS and authentication, authorization and single sign-on with Apache &lt;a href=&#34;https://github.com/latchset/mod_auth_mellon&#34;&gt;mod_auth_mellon&lt;/a&gt; configured as a &lt;a href=&#34;https://www.keycloak.org/&#34;&gt;Keycloak&lt;/a&gt; SAML client. This way we can limit access to Prometheus and Alertmanager to people who belong to a certain &lt;a href=&#34;https://www.freeipa.org/page/Main_Page&#34;&gt;FreeIPA&lt;/a&gt; group.&lt;/p&gt;&#xA;&lt;p&gt;From end-user perspective Prometheus and Alertmanager are available at these locations:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://prometheus.example.org/prometheus&#34;&gt;https://prometheus.example.org/prometheus&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://prometheus.example.org/alertmanager&#34;&gt;https://prometheus.example.org/alertmanager&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;In this setup both Prometheus and Alertmanager require additional startup options to work correctly. First Prometheus:&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
