<?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[Change feature flag of prometheus]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I am trying to set the Command-Line Flag "--web.enable-remote-write-receiver" to "true".</p>
<p dir="auto">Using the CLI I am getting the following error:</p>
<pre><code>root@XXXXX:/app/code# ./prometheus --web.enable-remote-write-receiver    
ts=2023-07-11T11:07:23.963Z caller=main.go:534 level=info msg="No time or size retention was set so using the default time retention" duration=15d
ts=2023-07-11T11:07:23.963Z caller=main.go:578 level=info msg="Starting Prometheus Server" mode=server version="(version=2.45.0, branch=HEAD, revision=8ef767e396bf8445f009f945b0162fd71827f445)"
ts=2023-07-11T11:07:23.963Z caller=main.go:583 level=info build_context="(go=go1.20.5, platform=linux/amd64, user=root@920118f645b7, date=20230623-15:09:49, tags=netgo,builtinassets,stringlabels)"
ts=2023-07-11T11:07:23.963Z caller=main.go:584 level=info host_details="(Linux 5.4.0-153-generic #170-Ubuntu SMP Fri Jun 16 13:43:31 UTC 2023 x86_64 534579d8-6c67-4084-8afe-f2a0b9e83487 (none))"
ts=2023-07-11T11:07:23.963Z caller=main.go:585 level=info fd_limits="(soft=1048576, hard=1048576)"
ts=2023-07-11T11:07:23.964Z caller=main.go:586 level=info vm_limits="(soft=unlimited, hard=unlimited)"
ts=2023-07-11T11:07:23.964Z caller=query_logger.go:113 level=error component=activeQueryTracker msg="Failed to create directory for logging active queries"
ts=2023-07-11T11:07:23.964Z caller=query_logger.go:91 level=error component=activeQueryTracker msg="Error opening query log file" file=/app/code/data/queries.active err="open data/queries.active: no such file or directory"
panic: Unable to create mmap-ed active query log

goroutine 1 [running]:
github.com/prometheus/prometheus/promql.NewActiveQueryTracker({0x34bc8ac, 0x5}, 0x14, {0x3d0af20, 0xc000470280})
	/app/promql/query_logger.go:121 +0x3cd
main.main()
	/app/cmd/prometheus/main.go:640 +0x7013
</code></pre>
<p dir="auto">How could I solve this issue?</p>
]]></description><link>https://forum.cloudron.io/topic/9610/change-feature-flag-of-prometheus</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 11:39:29 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/9610.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Jul 2023 11:14:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change feature flag of prometheus on Tue, 11 Jul 2023 14:57:27 GMT]]></title><description><![CDATA[<p dir="auto">I have adjusted the latest package to make CLI args customizable (since there's no way to do this via env vars).</p>
]]></description><link>https://forum.cloudron.io/post/70011</link><guid isPermaLink="true">https://forum.cloudron.io/post/70011</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 11 Jul 2023 14:57:27 GMT</pubDate></item><item><title><![CDATA[Reply to Change feature flag of prometheus on Tue, 11 Jul 2023 13:15:49 GMT]]></title><description><![CDATA[<p dir="auto">If this is a startup argument to the prometheus command, then this would have to be provided at <a href="https://git.cloudron.io/cloudron/prometheus-server-app/-/blob/master/start.sh#L25" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/prometheus-server-app/-/blob/master/start.sh#L25</a> however that cannot be customized individually. Is this something all app instances would find useful?</p>
<p dir="auto">Or maybe there is a way to enable that via ENV variables as well?</p>
]]></description><link>https://forum.cloudron.io/post/70005</link><guid isPermaLink="true">https://forum.cloudron.io/post/70005</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 11 Jul 2023 13:15:49 GMT</pubDate></item></channel></rss>