forked from kazeburo/GrowthForecast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
116 lines (76 loc) · 2.9 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
NAME
growthforecast.pl - Lightning Fast Graphing/Visualization
SYNOPSIS
% growthforecast.pl --data-dir=/path/to/dir
DESCRIPTION
GrowthForecast is graphing/visualization web tool built on RRDtool
INSTALL
Install dependencies
To install growthforecast, these libraries are needed.
* glib
* xml2
* pango
* cairo
(CentOS) $ sudo yum groupinstall "Development Tools"
$ sudo yum install pkgconfig glib2-devel gettext libxml2-devel pango-devel cairo-devel
(Ubuntu) $ sudo apt-get build-dep rrdtool
Install GrowthForecast
$ cpanm GrowthForecast
It's recommended to using perlbrew
OPTIONS
--data-dir
A directory to store rrddata and metadata
--port
TCP port listen on. Default is 5125
--host
IP address to listen on
--front-proxy
IP addresses or CIDR of reverse proxy
--allow-from
IP addresses or CIDR to allow access from. Default is empty (allow
access from any remote ip address)
--disable-1min-metrics
don't generate 1min rrddata and graph Default is "1" (enabled)
--enable-float-number
Store numbers of graph data as float rather than integer. Default is
"0" (disabled)
--with-mysql
DB connection setting to store metadata. format like
dbi:mysql:[dbname];hostname=[hostnaem] Default is no mysql setting.
GrowthForecast save metadata to SQLite
--web-max-workers
Number of web server processes. Default is 4
--rrdcached
rrdcached address. format is like either of
unix:</path/to/unix.sock>
/<path/to/unix.sock>
<hostname-or-ip>
[<hostname-or-ip>]:<port>
<hostname-or-ipv4>:<port>
See the manual of rrdcached for more details. Default does not use
rrdcached.
--mount
Provide GrowthForecast with specify url path. Default is empty (
provide GrowthForecast on root path )
-h --help
Display help
MYSQL Setting
GrowthForecast uses SQLite as metadata by default. And also supports
MySQL
GrowthForecast needs these MySQL privileges.
* CREATE
* ALTER
* DELETE
* INSERT
* UPDATE
* SELECT
Sample GRANT statement
mysql> GRANT statement sample> GRANT CREATE, ALTER, DELETE, INSERT, UPDATE, SELECT \\
ON growthforecast.* TO 'www'\@'localhost' IDENTIFIED BY foobar;
Give USERNAME and PASSWORD to GrowthForecast by environment value
$ MYSQL_USER=www MYSQL_PASSWORD=foobar growthforecast.pl \\
--data-dir /home/user/growthforecast \\
-with-mysql dbi:mysql:growthforecast;hostname=localhost
AUTHOR Masahiro Nagano <kazeburo {at} gmail.com>
LICENSE This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.