Plugins

Navigation:  LVE-Stats 2 >

Plugins

Previous pageReturn to chapter overviewNext page

LVE Stats 2 comes with a set of generic plugins:

 

Plugin Name

Order

Default

Period (seconds)

Description

LVECollector

1000

Y

5

Collects usage/limits data from /proc/lve/list

CPUInfoCollector

2000

Y

5

collents info about CPU - /proc/cpuinfo

LVEUsernamesCollector

3000

Y

3600

collects usernames & user ids to match uid <-> lve id later on

LVEUsageAnalyzer

4000

Y

5

analyzes usage of LVE

LveUsageAggregator

5000

Y

60

aggregates data by time periods

DBGovSaver

6000

Y

5

Saves data about database governor

FileSaver

7000

Y

5

Saves LVE data into /var/lve/info

CloudLinuxTopFileSaver

8000

Y

60

saves data used by cloudlinux-top to /var/lve/cloudlinux-top.json

DBSaver

9000

Y

60

save LVE data to dabase

DbUsernamesSaver

10000

Y

3600

saves users name to database

DBSaverX60

11000

Y

3600

saves aggregated hourly data into database

SnapshotSaver

12000

Y

30

collects & saves snapshots data

StatsNotifier

13000

Y

varied

notify user/admin based on usage

HistoryCleaner

14000

Y

3600

removes old usage

ResMEMCollector

1500

N

30

collects physical memory usage from processes RES field instead of /proc/lve/list

LVEDestroyer

-

N

5

destroys LVEs that weren't active for X iterations. Number of iterations is passed from config using iterations variable. iterations=0 means plugin disabled

 

 

To enable non-default plugin, copy or link it to /usr/share/lve-stats/plugins director.

 

For example to enable ResMEMCollector plugin, do:

 

ln -s /usr/share/lve-stats/plugins.other/res_mem_collector.py /usr/share/lve-stats/plugins/

service lvestats restart