visage-app 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +34 -17
  2. data/VERSION +1 -1
  3. metadata +3 -3
data/README.md CHANGED
@@ -91,17 +91,43 @@ Then head to your Apache instance and Visage will be up and running.
91
91
  Configuring
92
92
  -----------
93
93
 
94
- On the off chance you need to tweak Visage's configuration, it lives in several files
95
- under `lib/visage/config/`.
94
+ Visage looks for two environment variables when starting up:
96
95
 
97
- * `plugin-colors.yaml` - colors for specific plugins/plugin instances
98
- * `fallback-colors.yaml` - ordered list of fallback colors
99
- * `init.rb` - bootstrapping code, specifies collectd's RRD directory
96
+ * `CONFIG_PATH`, an entry on the configuration file search path
97
+ * `RRDDIR`, the location of collectd's RRDs
100
98
 
101
- Make sure collectd's RRD directory is readable by whatever user the web server
102
- is running as. You can specify where collectd's rrd directory is in `init.rb`,
103
- with the `c['rrddir']` key.
99
+ Visage has a configuration search path which can be used for overriding
100
+ individual files. By default it has one entry: `$VISAGE_ROOT/lib/visage/config/`.
101
+ You can set the `CONFIG_PATH` environment variable to add another directory to
102
+ the config load path. This directory will be searched when loading up
103
+ configuration files.
104
104
 
105
+ CONFIG_PATH=/var/lib/visage visage
106
+
107
+ This is especially useful when you want to deploy + run Visage from an installed
108
+ gem with Passenger. e.g.
109
+
110
+ <VirtualHost *:80>
111
+ ServerName monitoring.example.org
112
+ ServerAdmin me@example.org
113
+
114
+ SetEnv CONFIG_PATH /var/lib/visage
115
+ SetEnv RRDDIR /opt/collectd/var/lib/collectd
116
+
117
+ DocumentRoot /var/lib/gems/1.8/gems/visage-app-0.3.0/lib/visage/public
118
+ <Directory />
119
+ Options FollowSymLinks
120
+ AllowOverride None
121
+ </Directory>
122
+
123
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
124
+ CustomLog /var/log/apache2/access.log common
125
+ </VirtualHost>
126
+
127
+ Also to keep in mind when deploying with Passenger, the `CONFIG_PATH` directory
128
+ and its files need to have the correct ownership:
129
+
130
+ chown nobody:nogroup -R /var/lib/visage
105
131
 
106
132
  Developing + testing
107
133
  --------------------
@@ -126,12 +152,3 @@ Run all cucumber features:
126
152
 
127
153
  $ rake cucumber
128
154
 
129
- TODO
130
- ----
131
-
132
- * make other lines slightly opaque when hovering over labels
133
- * detailed point-in-time data on hover (timestamp, value)
134
- * give graph profile an alternate private url
135
- * make notes/annotations on private url
136
- * include table of axis mappings + default y-axis heights for rendering
137
- * view metrics from multiple hosts on the same graph
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Lindsay Holmwood
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-15 00:00:00 +11:00
17
+ date: 2010-10-18 00:00:00 +11:00
18
18
  default_executable: visage
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency