<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>6. Instrumenting with client libraries on IT-CNE Cloud-Native Core</title>
		<link>https://kubernetes.tbz.pstark.ch/en/modul/2_unterrichtsressourcen/04-prometheus/exercises/06/</link>
		<description>Recent content in 6. Instrumenting with client libraries on IT-CNE Cloud-Native Core</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<atom:link href="https://kubernetes.tbz.pstark.ch/en/modul/2_unterrichtsressourcen/04-prometheus/exercises/06/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>6.1 Tasks: Instrumenting</title>
				<link>https://kubernetes.tbz.pstark.ch/en/modul/2_unterrichtsressourcen/04-prometheus/exercises/06/labs/61/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://kubernetes.tbz.pstark.ch/en/modul/2_unterrichtsressourcen/04-prometheus/exercises/06/labs/61/</guid>
				<description>&lt;h3 id=&#34;task-611-get-the-source-code&#34;&gt;Task 6.1.1: Get the source code&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git clone https://github.com/acend/prometheus-training-go-instrumentation.git&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Change into the freshly cloned git repository&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cd prometheus-training-go-instrumentation&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;TODO: create Dockerfile&#xA;This application creates a simple webserver which listens at &lt;code&gt;http://localhost:8083&lt;/code&gt; and returns the string &lt;code&gt;Prometheus Training&lt;/code&gt; after a random interval between 0 and 1000 milliseconds. You can test the app by building it as a docker image using &lt;code&gt;docker build -t prometheus-training-go-instrumentation:local .&lt;/code&gt; and then running the built image using &lt;code&gt;docker run --rm -p 8083:8083 prometheus-training-go-instrumentation:local&lt;/code&gt;. You can then (in a separate terminal) issue a request using the command &lt;code&gt;curl http://localhost:8083&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>6.1 Tasks: Instrumenting</title>
				<link>https://kubernetes.tbz.pstark.ch/en/modul/2_unterrichtsressourcen/04-prometheus/exercises/06/labs/61_springboot/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://kubernetes.tbz.pstark.ch/en/modul/2_unterrichtsressourcen/04-prometheus/exercises/06/labs/61_springboot/</guid>
				<description>&lt;h3 id=&#34;task-611-spring-boot-example-instrumentation&#34;&gt;Task 6.1.1: Spring Boot Example Instrumentation&lt;/h3&gt;&#xA;&lt;p&gt;Using the &lt;a href=&#34;https://spring.io/blog/2018/03/16/micrometer-spring-boot-2-s-new-application-metrics-collector&#34;&gt;micrometer metrics facade&lt;/a&gt; in Spring Boot Applications lets us collect all sort of metrics within a Spring Boot application. Those metrics can be exported for Prometheus to scrape by a few additional dependencies and configuration.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s have a deeper look at how the instrumentation of a Spring Boot application works. For that we can use the prometheus-training-spring-boot-example application located at &lt;a href=&#34;https://github.com/acend/prometheus-training-spring-boot-example&#34;&gt;https://github.com/acend/prometheus-training-spring-boot-example&lt;/a&gt;. To make the application collect metrics and provide a Prometheus endpoint we now need to simply add the following two dependencies in the &lt;code&gt;pom.xml&lt;/code&gt; file, where it says &lt;code&gt;&amp;lt;!-- Add Dependencies here--&amp;gt;&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
