outline-server icon indicating copy to clipboard operation
outline-server copied to clipboard

Option to disable prometheus

Open SJang1 opened this issue 5 years ago • 16 comments

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?

SJang1 avatar Jun 06 '19 03:06 SJang1

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.

fortuna avatar Aug 02 '19 19:08 fortuna

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.

SJang1 avatar Aug 02 '19 22:08 SJang1

Woops, I'd not expect to close it.

SJang1 avatar Aug 02 '19 22:08 SJang1

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.

fortuna avatar Aug 02 '19 22:08 fortuna

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 avatar Aug 02 '19 23:08 SJang1

@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?

JonathanDCohen avatar Aug 05 '19 15:08 JonathanDCohen

fewers key ad fewers data usage was fine. keys were almost 300, it was over 20TBs for a month.

SJang1 avatar Aug 11 '19 14:08 SJang1

I also would like to disable prometheus installation. I do not need prometheus, I only need a VPN!

gadelkareem avatar Mar 02 '21 19:03 gadelkareem

@gadelkareem you can run outline-ss-server directly.

fortuna avatar Mar 03 '21 00:03 fortuna

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.

gadelkareem avatar Mar 03 '21 10:03 gadelkareem

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.

krakazyabra avatar Mar 08 '22 12:03 krakazyabra

Hi, i dont whant to use prometheus, I need disabled it, is it posible?!?!

xandross389 avatar Apr 28 '23 00:04 xandross389

also having this

Prometheus on a server with 3k keys is panicking every hour

ch3rrydrunk avatar Jun 15 '23 20:06 ch3rrydrunk

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

xandross389 avatar Jun 15 '23 22:06 xandross389