Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Ideas to limit resource usage? #1

Open
JohannesRudolph opened this issue Jul 10, 2021 · 1 comment
Open

Ideas to limit resource usage? #1

JohannesRudolph opened this issue Jul 10, 2021 · 1 comment

Comments

@JohannesRudolph
Copy link

Hi @marefr and thanks for making this available! I was playing with this to monitor an ER-X SFP, however I can't get the agent to start and stay up (it gets OOM killed, manages to ship some logs to Loki but no metrics).

I even tried limiting it's CPU usage via systemd using

CPUWeight=20
CPUQuota=50%

but to no success. Do you have any idea how to better limit resource usage of the grafana-agent? I know it's not exactly built with low power platforms like MIPS in mind, but I was looking through the grafana-agent.yaml configuration reference and didn't discover any obvious knobs to turn.

Also it would be cool if you could post how you built the MIPS binaries, maybe there's also some golang level trickery that can make grafana-agent more amenable to low power platforms.

@marefr
Copy link
Owner

marefr commented Jan 26, 2022

@JohannesRudolph sorry for late response.

Changing the scrape_interval or the wal_truncate_frequency might help. It did for me.

Maybe try the v0.13.1 release instead of latest (v0.14.1).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants