<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>graphite ubuntu 20 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/graphite-ubuntu-20/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 07 Dec 2020 08:51:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Graphite and Graphite Web On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-graphite-and-graphite-web-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-graphite-and-graphite-web-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Sun, 06 Dec 2020 22:48:00 +0000</pubDate>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Graphite installation ubuntu 20.04]]></category>
		<category><![CDATA[graphite ubuntu 20]]></category>
		<category><![CDATA[graphite web]]></category>
		<category><![CDATA[How To Install Graphite & Graphite Web On Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[ubuntu 20.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25097</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install Graphite &#38; Graphite Web on Ubuntu 20.04. Before proceeding towards the installation process, let&#8217;s have a short introduction on it. Introduction: Graphite is an open source monitoring platform used for the purpose of data visualization. Graphite has front-end and backend that can be used to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-graphite-and-graphite-web-on-ubuntu-20-04/">How To Install Graphite and Graphite Web On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that<a href="https://www.osradar.com/?p=25097" target="_blank" rel="noreferrer noopener"> how to install Graphite &amp; Graphite Web</a> on Ubuntu 20.04. Before proceeding towards the installation process, let&#8217;s have a short introduction on it.</p>



<h2>Introduction:</h2>



<p>Graphite is an open source monitoring platform used for the purpose of data visualization. Graphite has front-end and backend that can be used to get and store the data from numeric time-series to the graph format. Main purpose of graphite is to store numeric time-series data and provide the graph of the stored data when requested. So, let&#8217;s move towards the installation process.</p>



<h3>Step 1: Update Your System</h3>



<p>As usual we do update your system to have the latest packages installed. To do so run the below command.</p>



<pre class="wp-block-preformatted">sudo apt update &amp;&amp; sudo apt upgrade -y</pre>



<p>Once, the update finished reboot your system and move towards the next step.</p>



<pre class="wp-block-preformatted">sudo reboot</pre>



<h3>Step 2: Install Docker Container Engine on Ubuntu 20.04</h3>



<p>Type the following command after the system reboot in your terminal.</p>



<pre class="wp-block-preformatted">sudo apt -y install vim apt-transport-https ca-certificates curl gnupg-agent software-properties-common</pre>



<p>Now, import the docker GPG key using the below command.</p>



<pre class="wp-block-preformatted">curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -</pre>



<p>And then, add the Docker CE repository in Ubuntu system by hitting the given command.</p>



<pre class="wp-block-preformatted">sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"</pre>



<p>Finally, fire the below command to install Docker CE on Ubuntu 20.04 server.</p>



<pre class="wp-block-preformatted">sudo apt update<br>sudo apt install docker-ce docker-ce-cli containerd.io</pre>



<p>Once, the installation finished add your user to the docker group. To do so, fire the given command in your terminal.</p>



<pre class="wp-block-preformatted">sudo usermod -aG docker $USER<br>newgrp docker</pre>



<p>Make sure the installation is successfull.</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>docker info</strong>
Client:
Debug Mode: false
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 19.03.13
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8fba4e9a7d01810a393d5d25a3621dc101981175
runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 5.4.0-54-generic
Operating System: Ubuntu 20.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.914GiB
Name: Ubuntu20
ID: AAWZ:QW4H:GBZD:BTEX:N3L7:SMPQ:JATK:7KVM:HNCZ:DNC6:WYFW:FQAP
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false</pre>



<p>Also, verify that the service is in running status before further proceeding.</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>systemctl status docker</strong>
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor prese&gt;
Active: active (running) since Mon 2020-11-30 02:51:53 PKT; 14min ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 1252 (dockerd)
Tasks: 11
Memory: 99.5M
CGroup: /system.slice/docker.service
└─1252 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/con&gt;
نومبر 30 02:51:50 Ubuntu20 dockerd[1252]: time="2020-11-30T02:51:50.816377373+&gt;
نومبر 30 02:51:50 Ubuntu20 dockerd[1252]: time="2020-11-30T02:51:50.816385494+&gt;
نومبر 30 02:51:50 Ubuntu20 dockerd[1252]: time="2020-11-30T02:51:50.816393200+&gt;
نومبر 30 02:51:50 Ubuntu20 dockerd[1252]: time="2020-11-30T02:51:50.816775170+&gt;
نومبر 30 02:51:52 Ubuntu20 dockerd[1252]: time="2020-11-30T02:51:52.057634448+&gt;
نومبر 30 02:51:52 Ubuntu20 dockerd[1252]: time="2020-11-30T02:51:52.114419939+&gt;
نومبر 30 02:51:53 Ubuntu20 dockerd[1252]: time="2020-11-30T02:51:53.017677598+&gt;
نومبر 30 02:51:53 Ubuntu20 dockerd[1252]: time="2020-11-30T02:51:53.092645598+&gt;
نومبر 30 02:51:53 Ubuntu20 systemd[1]: Started Docker Application Container En&gt;
نومبر 30 02:51:53 Ubuntu20 dockerd[1252]: time="2020-11-30T02:51:53.490281794+&gt;
lines 1-21/21 (END)</pre>



<h3>Step 3: Running Graphite in Docker Container</h3>



<p>As we&#8217;ve finished the installation of docker engine, now we&#8217;ll start docker container for Graphite. Here we&#8217;ll use the <a href="https://github.com/graphite-project/docker-graphite-statsd" target="_blank" rel="noreferrer noopener">official docker repository</a> for graphite.</p>



<p>Get the latest docker image by typing</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ docker pull graphiteapp/graphite-statsd
Using default tag: latest
latest: Pulling from graphiteapp/graphite-statsd
df20fa9351a1: Pull complete
a30ee9926b20: Pull complete
51a4bd789783: Pull complete
9eb78f4a78c8: Pull complete
Digest: sha256:aaec5e5daadad64efb8039dd128e89dc6ac95bc129553427fca980a049d1fb40
Status: Downloaded newer image for graphiteapp/graphite-statsd:latest
docker.io/graphiteapp/graphite-statsd:latest</pre>



<p>This image will contain the following parts.</p>



<ul><li>Nginx (Reverse proxy the graphite dashboard)</li><li>Graphite(Front-end)</li><li>Carbon(Back-end)</li><li>Statsd(UDP based backend proxy)</li></ul>



<p>Following default mapped ports will be used.</p>



<figure class="wp-block-table"><table><tbody><tr><td><strong>Host</strong></td><td><strong>Container</strong></td><td><strong>Service</strong></td></tr><tr><td>80</td><td>80</td><td>nginx</td></tr><tr><td>2003</td><td>2003</td><td>carbon reciever &#8211; plaintext</td></tr><tr><td>2004</td><td>2004</td><td>carbon reciever &#8211; pickle</td></tr><tr><td>2023</td><td>2023</td><td>carbon aggregator &#8211; plaintext</td></tr><tr><td>2024</td><td>2024</td><td>carbon aggregator &#8211; pickle</td></tr><tr><td>8080</td><td>8080</td><td>Graphite internal gunicorn port</td></tr><tr><td>8125</td><td>8125</td><td>statsd</td></tr><tr><td>8126</td><td>8126</td><td>statsd admin</td></tr></tbody></table></figure>



<p>Graphite and Statsd should be handled carefully as they are very complex to setup. The docker image downloaded above help us to run &amp; collect the stats in few minutes.</p>



<p>To see the available images type</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>docker images</strong>
REPOSITORY TAG IMAGE ID CREATED SIZE
graphiteapp/graphite-statsd latest 976c24bf0bc6 4 weeks ago 723MB</pre>



<p>Now, create the following directories on the host system for persistent data storage.</p>



<pre class="wp-block-preformatted">sudo mkdir -p /data/graphite/{data,logs,conf,statsd_config}</pre>



<p>Make sure to set the correct timezone and then run the following commands.</p>



<pre class="wp-block-preformatted">docker run -d \
--name graphit \
--restart=always \
-p 80:80 \
-p 2003-2004:2003-2004 \
-p 2023-2024:2023-2024 \
-p 8125:8125/udp \
-p 8126:8126 \
-v /data/graphite/data:/opt/graphite/storage \
-v /data/graphite/conf:/opt/graphite/conf \
-v /data/graphite/statsd_config:/opt/statsd/config \
-v /data/graphite/logs:/var/log \
-e GRAPHITE_TIME_ZONE='Asia/Karachi' \
graphiteapp/graphite-statsd</pre>



<p>Verify the status of graphite container</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>docker ps</strong><br>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES<br>420150f994b9 graphiteapp/graphite-statsd "/entrypoint" About a minute ago Up About a minute 0.0.0.0:80-&gt;80/tcp, 0.0.0.0:2003-2004-&gt;2003-2004/tcp, 2013-2014/tcp, 8080/tcp, 0.0.0.0:2023-2024-&gt;2023-2024/tcp, 0.0.0.0:8126-&gt;8126/tcp, 8125/tcp, 0.0.0.0:8125-&gt;8125/udp graphit</pre>



<p>If you face any error, refer to the logs</p>



<pre class="wp-block-preformatted">docker logs -f graphite</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">,,..
30/11/2020 01:23:58 :: [tagdb] Tagged carbon.aggregator.4a26c4c0f746-a.destinations.127_0_0_1:2004:None.attemptedRelays, carbon.aggregator.4a26c4c0f746-a.bufferedDatapoints in 0.021245479583740234
30/11/2020 01:24:06 :: [listener] MetricLineReceiver connection with 127.0.0.1:57472 established
30/11/2020 01:24:06 :: [listener] MetricLineReceiver connection with 127.0.0.1:57472 closed cleanly
30/11/2020 01:24:08 :: [tagdb] Tagging carbon.agents.4a26c4c0f746-a.errors
30/11/2020 01:24:08 :: [tagdb] Tagged carbon.agents.4a26c4c0f746-a.errors in 0.15246272087097168
30/11/2020 01:24:16 :: [listener] MetricLineReceiver connection with 127.0.0.1:57476 established
30/11/2020 01:24:16 :: [listener] MetricLineReceiver connection with 127.0.0.1:57476 closed cleanly
30/11/2020 01:24:26 :: [listener] MetricLineReceiver connection with 127.0.0.1:57478 established
30/11/2020 01:24:26 :: [listener] MetricLineReceiver connection with 127.0.0.1:57478 closed cleanly</pre>



<p>As by default, statsd is listening to <strong>8125</strong> UDP port,you can change it to tcp port if you want. To do so, you&#8217;ve to set the environment variable <strong>STATSD_INTERFACE</strong> to TCP port while running the container.</p>



<h3>Step 4: Access Graphite Web Dashboard</h3>



<p>Access the Graphite web interface by typing <strong>server</strong> <strong>IP</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="467" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-64-1024x467.png" alt="How To Install Graphite &amp; Graphite Web On Ubuntu 20.04" class="wp-image-26059" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-64-1024x467.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/image-64-300x137.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/image-64-768x350.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/image-64-1536x700.png 1536w, https://www.osradar.com/wp-content/uploads/2020/11/image-64-696x317.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/image-64-1068x487.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/image-64.png 1847w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Use the pre-defined credentials to login.</p>



<pre class="wp-block-preformatted">User:<strong>root</strong>
Pass:<strong>root</strong></pre>



<p>For security reasons, change the default credentials, by typing <a href="http://osradar.com" target="_blank" rel="noreferrer noopener">IP/admin/auth/user/1/</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="493" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-65-1024x493.png" alt="How To Install Graphite &amp; Graphite Web On Ubuntu 20.04" class="wp-image-26060" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-65-1024x493.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/image-65-300x145.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/image-65-768x370.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/image-65-1536x740.png 1536w, https://www.osradar.com/wp-content/uploads/2020/11/image-65-696x335.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/image-65-1068x514.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/image-65.png 1802w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>You&#8217;ll get success message of password change.</p>



<p>So,this is how you can install graphite &amp; graphite web on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-graphite-and-graphite-web-on-ubuntu-20-04/">How To Install Graphite and Graphite Web On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-graphite-and-graphite-web-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
