juju_metrics takes a long time

Bug #1800713 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

Hi,

We're trying to use the metrics from 'juju_metrics' (from juju-introspection) via telegraf and feed that into our prometheus instance. Unfortunately, it seems juju_metrics takes a long time to run. On our shared Juju 2.x controller running 2.4.3:

machine-0: real 0m29.995s
machine-1: real 0m7.402s
machine-2: real 0m44.294s

Paul Gear (paulgear)
description: updated
summary: - juju_metrics takes forever
+ juju_metrics takes a long time
Revision history for this message
Tim Penhey (thumper) wrote :

Getting the metrics should be fast. I have a strong suspicion that this is related to gathering the mongo metrics.

Changed in juju:
milestone: none → 2.5-rc1
status: New → Triaged
importance: Undecided → High
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1800713] Re: juju_metrics takes a long time

We should consider what Stats we can get quickly and possibly skip some of
them if it takes too long. Certainly it is better to get timely incomplete
stats than no stats. Especially when trying to figure out why things are
slow/overloaded.

John
=:->

On Fri, Nov 2, 2018, 07:25 Tim Penhey <<email address hidden> wrote:

> Getting the metrics should be fast. I have a strong suspicion that this
> is related to gathering the mongo metrics.
>
> ** Changed in: juju
> Milestone: None => 2.5-rc1
>
> ** Changed in: juju
> Status: New => Triaged
>
> ** Changed in: juju
> Importance: Undecided => High
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1800713
>
> Title:
> juju_metrics takes a long time
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1800713/+subscriptions
>

Ian Booth (wallyworld)
Changed in juju:
milestone: 2.5-rc1 → 2.5-beta2
Changed in juju:
milestone: 2.5-beta2 → 2.5.1
Revision history for this message
Tim Penhey (thumper) wrote :

For Juju 2.4.7 and later, the slow part (which happens on big controllers) can be skipped by setting the following:

juju controller-config features=[disable-state-metrics]

Ian Booth (wallyworld)
Changed in juju:
milestone: 2.5.1 → 2.5.2
Changed in juju:
milestone: 2.5.2 → 2.5.3
Changed in juju:
milestone: 2.5.3 → 2.5.4
Changed in juju:
milestone: 2.5.4 → 2.5.5
Changed in juju:
milestone: 2.5.6 → 2.5.8
Changed in juju:
milestone: 2.5.8 → 2.5.9
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Removing from a milestone as this work will not be done in 2.5 series.

Changed in juju:
milestone: 2.5.9 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: High → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.