<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sairaj G on Medium]]></title>
        <description><![CDATA[Stories by Sairaj G on Medium]]></description>
        <link>https://medium.com/@sairaj479?source=rss-20fc82129f90------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wHRPyzqgGWJL6dMNdWksXg.jpeg</url>
            <title>Stories by Sairaj G on Medium</title>
            <link>https://medium.com/@sairaj479?source=rss-20fc82129f90------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:14:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sairaj479/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Monitoring of Jenkins-server using Telegraf , Prometheus and Grafana]]></title>
            <link>https://medium.com/@sairaj479/monitoring-of-jenkins-server-using-telegraf-prometheus-and-grafana-673dbba5708c?source=rss-20fc82129f90------2</link>
            <guid isPermaLink="false">https://medium.com/p/673dbba5708c</guid>
            <dc:creator><![CDATA[Sairaj G]]></dc:creator>
            <pubDate>Wed, 15 Jun 2022 09:13:16 GMT</pubDate>
            <atom:updated>2022-06-15T09:16:30.832Z</atom:updated>
            <content:encoded><![CDATA[<h3>Monitoring of Jenkins-server using Telegraf , Prometheus and Grafana</h3><p># Monitoring-of-jenkins-server-using-telegraf-prometheus-and-grafana<br>Install telegraf and Jenkins in instance-A and install prometheus and grafana in instance-B<br>Here we are using separate instance one for jenkins server and Prometheus <br>we can use only one instance for both jenkins and prometheus</p><p>In the telegraf.conf we have configure output plugins and input plugins for Jenkins server monitoring <br>install telegraf <br>Cd /etc/telegraf<br>telegraf.conf telegraf.d (you’ll see two files in the telegraf directory)<br>vi telegraf.conf (edit the input and output plugins in telegraf.conf)<br>Input plugins:<br># Read jobs and metrics from Jenkins instances<br>[[inputs.jenkins]]<br> ## The Jenkins URL in the format “schema://host:port”<br> url = “<a href="http://my-jenkins-instance:8080/">http://my-jenkins-instance ip address :8080</a>&quot;<br> # username = “admin”<br> # password = “admin”</p><p>Uncomment the URL and username and password(remove # which means uncomment) Add URL, username and password<br>URL = “<a href="http://ip/">http://IP</a> address of jenkins:8080” {if you have installed telegraf and Jenkins instance (server)}</p><h3>And you should enter Jenkin’s “username” and “password” in the input plugins of telegraf.conf Otherwise<br>If you miss entering username and password you will json/api error</h3><p>Output plugins:<br># Configuration for the Prometheus client to spawn in <br>[[outputs.prometheus_client]]<br> ## Address to listen on.<br> listen = “:9273”</p><p>Here we have to port number (any port) but it should not in use <br>Ex : don’t assign port number 8080 or 9090 etc, These are already assign to Jenkins and Prometheus<br>telegraf — config telegraf.conf (use this command for save the edited configurations)<br>it gives the output and telegraf is giving out metrics on port number “9273”</p><p>In the browser IPaddress of Jenkins-server:9273<br>You’ll see metrics and with respective port number <br> 2022–05–14T12:52:33Z I! [outputs.prometheus_client] Listening on <a href="http://[::]:9273/metrics">http://[::]:9273/metrics</a><br>In the browser IP address of Jenkins -server:9273<br><a href="http://ipaddress:9273/metrics">http://IPaddress:9273/metrics</a> then you’ll see metrics of Jenkins which are scraped by telegraf</p><p>SETUP PROMETHEUS SERVER:<br>Install prometheus in new server<br>In the prometheus directory edit targets in prometheus.yml (it is config file of Prometheus where you need to add targets)<br>Under targets <br>scrape_configs:<br> # The job name is added as a label `job=&lt;job_name&gt;` to any timeseries scraped from this config.<br>- job_name: “prometheus”<br> # metrics_path defaults to ‘/metrics’<br> # scheme defaults to ‘http’.<br> static_configs:<br> — targets: [“localhost:9090”]<br>- job_name: “Jenkins”<br> # metrics_path defaults to ‘/metrics’<br> # scheme defaults to ‘http’.<br> static_configs:<br> — targets: [“IP address of jenkins server:9273”]<br> you can assign any other port number</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=673dbba5708c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>