outline-server
outline-server copied to clipboard
Option to disable prometheus
prometheus uses a lot of cpu and rams, so that I think I can't handle it. Is there a way to disable prometheus or uninstall it for the outline?
What do you mean with "lot of cpu and ram"? Do you have resource charts showing that? You can get some Prometheus metrics from localhost:9090 is you ssh into the server.
I have seen while monitoring server in the ssh, if prometheus is on and manager is now looking for usage data of user, prometheus was using a huuuuuge amaount of(almost all of the) cpu and rams.
it made server slow, I need some way to disable / remove it.
Woops, I'd not expect to close it.
Is the CPU spike only when the manager is open?
The manager keeps querying the management API, which in turns queries Prometheus for data usage information, so it may be that.
@alalamav @JonathanDCohen we may need to optimize our Prometheus use. Some ideas:
- Precompute the queries we use
- See if we can optimize the queries to be cheaper
- Query from the Manager less often
- Save lower resolution data (it's currently every 15s), so there's less data to process on each query.
only when manager is open and prometheus is runnung.
and actually there is a lots of keys and a huge amount of usage so that one querie even makes a problem.. for here.
@SJang1 just making sure I'm understanding the conversation correctly: The server your running has a lot of keys and data throughput, but if you had another server with fewer keys it would be fine? Do you mind sharing what order of magnitude you're talking about for number of keys on the server and how much usage you're getting?
fewers key ad fewers data usage was fine. keys were almost 300, it was over 20TBs for a month.
I also would like to disable prometheus installation. I do not need prometheus, I only need a VPN!
@gadelkareem you can run outline-ss-server directly.
But I am just following the outline manager docs https://getoutline.org/get-started/#step-3 and it does not give me any other install options.
I do not think normal user like me needs these extra add-ons.
Hello. I can explain case, when there is no need in Prometheus. F.e. you're installing Outline in existing kubernetes cluster, where prometheus is already running (or another tsdb for the same purposes with same API, like VictoriaMetrics). In this case you don't need Prom running locally. It will be nice, if shadowbox will have keys to:
- disable prometheus
- provide url of existing Prom, where shdowbox-exporter can write metrics and read them
Also, using external Prometheus will allow you to run several replicas of shadowbox and collect stats per replica. For now the only one possible solution to scale shadowbox in kubernetes - use nfs or another RWX storage, but this is bad pattern.
Hi, i dont whant to use prometheus, I need disabled it, is it posible?!?!
also having this
Prometheus on a server with 3k keys is panicking every hour
I am running the server in a server with few keys and Prometheus stresses so much my server, it notably degrades my user experience.
When logon with ssh and run htop I see a Prometheus working a lot even when there is no users actively using the service