Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting consumption spikes when using rate(scaph_host_energy_microjoules) on prometheus #324

Open
Louan-Robert opened this issue Jun 5, 2023 · 2 comments

Comments

@Louan-Robert
Copy link

Hello, I am using scaphandre in one of my projects, and I am encountering some problems.

When using scaph_host_energy_microjoules and applying prometheus rate() function to it, I am getting uge consumption spikes.

image

Note that this behavior only occures with scaph_host_energy_microjoules metric.

Do you have any idea on where these could come from ?

Thanks !

@TheElectronWill
Copy link
Contributor

What does rate do? This may be normal, since scaph_host_energy_microjoules reports the energy consumed since the previous measurement. And the energy measurements occur at regular intervals.

@bpetit
Copy link
Contributor

bpetit commented Oct 17, 2024

Hi,

Do you have anything suspicious in the logs, like scaphandre crashing or permissions issues ?

If not, what does the raw scaph_host_energy_microjoules graph look like ? / could you look at the raw data points stored in prometheus and see if there are actually big gaps or weird values ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

3 participants