Grafana status boxes are flapping sometimes

Bug #1554993 reported by Swann Croiset
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StackLight
Confirmed
Medium
LMA-Toolchain Fuel Plugins

Bug Description

I've observed that a service which is OKAY can flap to CRITICAL sometimes. Depending on when the request is made, the "group by" returns 'null' and grafana panel interpret it as CRITICAL.

request/response:
==============
SELECT last("value") FROM "haproxy_backend_status" WHERE "hostname" =~ /node-110/ AND time > now() - 5m GROUP BY time(1m)

{"results":[{"series":[{"name":"haproxy_backend_status","columns":["time","last"],"values":[[1457193600000,1],[1457193660000,1],[1457193720000,1],[1457193780000,1],[1457193840000,1],[1457193900000,null]]}]}]}

Solution
=======
add fill(previous) to avoid null results on ALL "Single stat" panel representing a service status

Tags: grafana
Swann Croiset (swann-w)
description: updated
Revision history for this message
Simon Pasquier (simon-pasquier) wrote :

So it means that the "last" datapoint is missing? Maybe in that case it is more correct to say that the status is unknown?

Revision history for this message
Swann Croiset (swann-w) wrote :

So it seems that fill(none) makes the trick

Changed in lma-toolchain:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → LMA-Toolchain Fuel Plugins (mos-lma-toolchain)
milestone: none → 1.0.0
Changed in lma-toolchain:
milestone: 1.0.0 → 0.10.0
Changed in lma-toolchain:
milestone: 0.10.0 → none
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-plugin-influxdb-grafana (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/401243

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-plugin-influxdb-grafana (master)

Reviewed: https://review.openstack.org/401243
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-influxdb-grafana/commit/?id=768d468bf8010039fabe1203b27b50f7c763bbae
Submitter: Jenkins
Branch: master

commit 768d468bf8010039fabe1203b27b50f7c763bbae
Author: Swann Croiset <email address hidden>
Date: Wed Nov 23 13:52:01 2016 +0100

    Fix HAproxy dashboard

    * missing WHERE clause for the backend status
    * remove the GROUP_BY clause to avoid flapping

    Change-Id: Ifab23ad13e2621d5eb50a53753ebe63d44ae785a
    Related-bug: #1554993

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-plugin-influxdb-grafana (stable/1.0)

Related fix proposed to branch: stable/1.0
Review: https://review.openstack.org/419944

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-plugin-influxdb-grafana (stable/1.0)

Reviewed: https://review.openstack.org/419944
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-influxdb-grafana/commit/?id=b5e8156d8f80bf08ef876ecd4f1dd913063eae0b
Submitter: Jenkins
Branch: stable/1.0

commit b5e8156d8f80bf08ef876ecd4f1dd913063eae0b
Author: Swann Croiset <email address hidden>
Date: Wed Nov 23 13:52:01 2016 +0100

    Fix HAproxy dashboard

    * missing WHERE clause for the backend status
    * remove the GROUP_BY clause to avoid flapping

    Change-Id: Ifab23ad13e2621d5eb50a53753ebe63d44ae785a
    Related-bug: #1554993
    (cherry picked from commit 768d468bf8010039fabe1203b27b50f7c763bbae)

Swann Croiset (swann-w)
Changed in lma-toolchain:
milestone: none → 1.1.0
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.