Feature #995

Admin tool to collect and display statistics from the Synnefo DB and the backend

Added by Vangelis Koukis over 12 years ago. Updated about 12 years ago.

Status:Assigned Start date:08/04/2011
Priority:High Due date:11/11/2011
Assignee:Giorgos Verigakis % Done:

0%

Category:Admin Spent time: -
Target version:v0.9.0

Description

Extend the admin tool to collect statistics from the DB and the backend.
Allow for pluggable presentation layers.

More specifically:
a) Collect DB statistics: number of users, number of VMs, number of invitations, number of images, distribution of VMs per image, etc. Access the DB directly, over Django.
b) Collect backend statistics: If possible, over RAPI: number of VMs, Ganeti queue length, number of nodes, total disk GB, used/free disk GB, total memory, used/free memory.

Presentation layers. Initially:
a) simple text presentation, e.g. snf-admin stats, using a nice tabular text display.
b) output in a specific plugin format, initially munin, e.g. with a --output munin, --output collectd option.
This way the tool will be callable as a plugin. Its data will be fed to a munin or collectd infrastructure for presentation.


Related issues

related to Synnefo - Feature #849: snf-admin should be made as a simple web interface Closed 07/17/2011

Associated revisions

Revision 60f5da1a
Added by Giorgos Verigakis over 12 years ago

Add some simple stats on the admin home page

Refs #995

Revision f5c6e3f4
Added by Giorgos Verigakis over 12 years ago

Add some Ganeti stats on admin home

Refs #849
Refs #995

Revision 87c1dadc
Added by Giorgos Verigakis over 12 years ago

Add stats command

Refs #995

Revision b5ea06fa
Added by Giorgos Verigakis over 12 years ago

Add stats command

Refs #995

Revision 17852fe9
Added by Giorgos Verigakis over 12 years ago

Add some Ganeti stats on admin home

Refs #849
Refs #995

Revision 428785f2
Added by Giorgos Verigakis over 12 years ago

Add some simple stats on the admin home page

Refs #995

History

#1 Updated by Giorgos Verigakis over 12 years ago

Where can I find documentation for the required output formats?

#2 Updated by Vangelis Koukis over 12 years ago

Please see here for info on how to write a munin plugin:

http://munin-monitoring.org/wiki/HowToWritePlugins

#3 Updated by Vangelis Koukis over 12 years ago

  • Target version changed from v0.5.5 to v0.6

#4 Updated by Giorgos Verigakis over 12 years ago

I think it is a better idea to be munin (and collected) agnostic and have other scripts that will handle the format conversion.

For example, a munin plugin needs to accept a config argument that will output graph configuration. Moreover it may decide to only create graphs for a subset of the output. Since parsing stats output is fairly easy, keeping all this logic external is far more flexible.

As an example, a munin plugin to graph the number of VMs would be:

#!/bin/bash

if [ "$1" = "config" ]; then
    echo "graph_title Number of VMs" 
    echo "graph_vlabel VMs" 
    exit 0
fi

echo -n "vms.value" 
snf-admin stats | grep VMs | cut -d: -f2

#5 Updated by Vangelis Koukis over 12 years ago

  • Target version changed from v0.6 to v0.6.1

#6 Updated by Vangelis Koukis over 12 years ago

  • Target version changed from v0.6.1 to v0.6.2

#7 Updated by Vangelis Koukis over 12 years ago

  • Target version changed from v0.6.2 to 67

#8 Updated by Vangelis Koukis over 12 years ago

  • Status changed from New to Assigned
  • Target version changed from 67 to v0.8.0

Moving to v0.8, this needs to be re-evaluated in the context of the new web-based admin interface.

#9 Updated by Vangelis Koukis over 12 years ago

  • Due date set to 11/11/2011

#10 Updated by Vangelis Koukis about 12 years ago

  • Target version changed from v0.8.0 to v0.9.0

Again moving to v0.9, again needs to be seen as part of the web-based admin interface.

Also available in: Atom PDF