<?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"><channel><title><![CDATA[Prometheus + Grafana actually working]]></title><description><![CDATA[<p dir="auto">Has anyone actually hooked up Grafana to Promtheus (both installed using cloudron)?</p>
<p dir="auto">When I try and add the prometheus server I get CORS errors and it is preventing the page from redirecting (to authenticate I guess).</p>
<p dir="auto">It says it needs a Access-Control-Allow-Origin header on the prometheus side to allow grafana hostname.</p>
<p dir="auto">What is odd is that I have it set the access mode set to Server yet is it still trying to connect to it from the browser.</p>
<p dir="auto">Any tips would be welcome. This would be great to get working.</p>
]]></description><link>https://forum.cloudron.io/topic/6901/prometheus-grafana-actually-working</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 16:59:28 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6901.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Apr 2022 03:59:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Prometheus + Grafana actually working on Mon, 06 Nov 2023 19:21:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lcd_official" aria-label="Profile: lcd_official">@<bdi>lcd_official</bdi></a> indeed, <code>prometheus_variables.sh</code> is obsolete by now. Use <a href="http://env.sh" target="_blank" rel="noopener noreferrer nofollow ugc">env.sh</a> instead.</p>
]]></description><link>https://forum.cloudron.io/post/76729</link><guid isPermaLink="true">https://forum.cloudron.io/post/76729</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 06 Nov 2023 19:21:36 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus + Grafana actually working on Mon, 06 Nov 2023 16:31:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brutalbirdie" aria-label="Profile: BrutalBirdie">@<bdi>BrutalBirdie</bdi></a> said in <a href="/post/46864">Prometheus + Grafana actually working</a>:</p>
<blockquote>
<p dir="auto">ps: up the retention_time in your <code>/app/data/prometheus_variables.sh</code></p>
<pre><code>#!/bin/bash

# https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects
export retention_time="180d"
</code></pre>
<p dir="auto">Default is 15 days which is... well useless for long term analytics.<br />
<a href="https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects" target="_blank" rel="noopener noreferrer nofollow ugc">https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects</a></p>
</blockquote>
<p dir="auto">Just FYI, I noticed that /app/data/prometheus_variables.sh did not exist anymore - and in fact the app at startup will actually take prometheus_variables.sh if it DOES exist, and mv (replace) over /app/data/env.sh, which isn't good...</p>
<p dir="auto">You can edit /app/data/env.sh itself though, and update the storage.tsdb.retention.time CLI option.  Here is my <a href="http://env.sh" target="_blank" rel="noopener noreferrer nofollow ugc">env.sh</a> for reference:</p>
<pre><code>#!/bin/bash

# https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects
# edit this variable to change startup options
export cli_options="--storage.tsdb.retention.time=180d --storage.tsdb.path=/app/data/storage"
</code></pre>
<p dir="auto">Thanks <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=b6971addb6c" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/76718</link><guid isPermaLink="true">https://forum.cloudron.io/post/76718</guid><dc:creator><![CDATA[lcd_official]]></dc:creator><pubDate>Mon, 06 Nov 2023 16:31:15 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus + Grafana actually working on Tue, 03 Jan 2023 22:47:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jan-macenka" aria-label="Profile: Jan-Macenka">@<bdi>Jan-Macenka</bdi></a> said in <a href="/post/59170">Prometheus + Grafana actually working</a>:</p>
<blockquote>
<p dir="auto">just had the same issue and wanted to add something here as a documentation:</p>
<p dir="auto">If both Grafana and Prometheus are running as a cloudron-app, you can add Prometheus as a data-source in Grafana by inputting <code>http://&lt;PROMETHEUS-SERVICE-UUID&gt;:9090</code> in the URL-field where PROMETHEUS-SERVICE-UUID can be found form the prometheus container either by looking up its installation location in the Storage-Tab or by connecting via terminal and copying the hostname.</p>
<p dir="auto">Cheers,<br />
Jan</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-group plugin-mentions-a" href="/groups/staff" aria-label="Profile: staff">@<bdi>staff</bdi></a> sounds like something that belongs in the docs <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=b6971addb6c" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/59178</link><guid isPermaLink="true">https://forum.cloudron.io/post/59178</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Tue, 03 Jan 2023 22:47:44 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus + Grafana actually working on Tue, 03 Jan 2023 21:19:23 GMT]]></title><description><![CDATA[<p dir="auto">just had the same issue and wanted to add something here as a documentation:</p>
<p dir="auto">If both Grafana and Prometheus are running as a cloudron-app, you can add Prometheus as a data-source in Grafana by inputting <code>http://&lt;PROMETHEUS-SERVICE-UUID&gt;:9090</code> in the URL-field where PROMETHEUS-SERVICE-UUID can be found form the prometheus container either by looking up its installation location in the Storage-Tab or by connecting via terminal and copying the hostname.</p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.cloudron.io/post/59170</link><guid isPermaLink="true">https://forum.cloudron.io/post/59170</guid><dc:creator><![CDATA[Jan Macenka]]></dc:creator><pubDate>Tue, 03 Jan 2023 21:19:23 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus + Grafana actually working on Fri, 06 May 2022 08:54:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brutalbirdie" aria-label="Profile: BrutalBirdie">@<bdi>BrutalBirdie</bdi></a> Yes, adding data sources. I wasn't able to get prometheus integrated <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f62c.png?v=b6971addb6c" class="not-responsive emoji emoji-android emoji--grimacing" style="height:1.4em;width:auto;vertical-align:middle" title=":grimacing:" alt="😬" /></p>
]]></description><link>https://forum.cloudron.io/post/47319</link><guid isPermaLink="true">https://forum.cloudron.io/post/47319</guid><dc:creator><![CDATA[andreasdueren]]></dc:creator><pubDate>Fri, 06 May 2022 08:54:18 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus + Grafana actually working on Mon, 02 May 2022 17:38:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brutalbirdie" aria-label="Profile: BrutalBirdie">@<bdi>BrutalBirdie</bdi></a> Ah thanks! Got it working now.</p>
<p dir="auto">The browser trying to connect threw me off. Once I supplied Basic Auth credentials it works!</p>
]]></description><link>https://forum.cloudron.io/post/46995</link><guid isPermaLink="true">https://forum.cloudron.io/post/46995</guid><dc:creator><![CDATA[cadorn]]></dc:creator><pubDate>Mon, 02 May 2022 17:38:47 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus + Grafana actually working on Fri, 29 Apr 2022 12:36:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andreasdueren" aria-label="Profile: andreasdueren">@<bdi>andreasdueren</bdi></a> well Grafana is only a view source, it does not provide any data it self.<br />
I am collecting data from servers via prometheus and I am displaying this in grafana.</p>
<p dir="auto">ps: up the retention_time in your <code>/app/data/prometheus_variables.sh</code></p>
<pre><code>#!/bin/bash

# https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects
export retention_time="180d"
</code></pre>
<p dir="auto">Default is 15 days which is... well useless for long term analytics.<br />
<a href="https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects" target="_blank" rel="noopener noreferrer nofollow ugc">https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects</a></p>
<p dir="auto">What exactly do you mean by <code>setup instructions</code>?<br />
Building a dashboard? Adding Datasources?</p>
]]></description><link>https://forum.cloudron.io/post/46864</link><guid isPermaLink="true">https://forum.cloudron.io/post/46864</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Fri, 29 Apr 2022 12:36:14 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus + Grafana actually working on Fri, 29 Apr 2022 12:20:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/brutalbirdie" aria-label="Profile: BrutalBirdie">@<bdi>BrutalBirdie</bdi></a> Nice! Would you mind sharing setup instructions for absolute grafana noobs? I tried to set things up but failed completely with the documentation.</p>
]]></description><link>https://forum.cloudron.io/post/46862</link><guid isPermaLink="true">https://forum.cloudron.io/post/46862</guid><dc:creator><![CDATA[andreasdueren]]></dc:creator><pubDate>Fri, 29 Apr 2022 12:20:30 GMT</pubDate></item><item><title><![CDATA[Reply to Prometheus + Grafana actually working on Fri, 29 Apr 2022 07:53:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cadorn" aria-label="Profile: cadorn">@<bdi>cadorn</bdi></a> Yes I do.</p>
<p dir="auto"><img src="/assets/uploads/files/1651218422800-8990d28a-bc19-4922-922b-9a29678a7d39-image.png" alt="8990d28a-bc19-4922-922b-9a29678a7d39-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto"><img src="/assets/uploads/files/1651218481817-022e436e-caca-4336-a7e8-c14ca48a2aff-image-resized.png" alt="022e436e-caca-4336-a7e8-c14ca48a2aff-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto"><img src="/assets/uploads/files/1651218633765-cff74892-caf9-4b08-810d-7eefacd1ebc0-image.png" alt="cff74892-caf9-4b08-810d-7eefacd1ebc0-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto"><img src="/assets/uploads/files/1651218653398-b5e90bf5-1c6a-4516-84e1-a52566a602dc-image.png" alt="b5e90bf5-1c6a-4516-84e1-a52566a602dc-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">(alt: multiple screenshots showing grafana and prometheus hooked up in cloudron with data in a dashboard)</p>
]]></description><link>https://forum.cloudron.io/post/46855</link><guid isPermaLink="true">https://forum.cloudron.io/post/46855</guid><dc:creator><![CDATA[BrutalBirdie]]></dc:creator><pubDate>Fri, 29 Apr 2022 07:53:25 GMT</pubDate></item></channel></rss>