Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

graph_columns #15

Open
corbosman opened this issue May 28, 2012 · 5 comments
Open

graph_columns #15

corbosman opened this issue May 28, 2012 · 5 comments

Comments

@corbosman
Copy link

I cant seem to be able to override the default graph_columns in a graph-specific dash.yaml. No matter what I do, the central gdash.yaml setting is used.

@ripienaar
Copy link
Owner

you'll need to provide more details of exactly what you are trying

@corbosman
Copy link
Author

Actually, it seems to be a problem when graph_columns is 1, gdash even crashed if I set graph_columns to 1 in gdash.yaml

@corbosman
Copy link
Author

Ok,

gdash.yaml:

:graphite: http://graphite.xs4all.net
:templatedir: /data/gdash/graph_templates
:options:
:title: XS4ALL gdash
:prefix: ""
:graph_columns: 2
:whisper_dir: "/data/graphite/storage/whisper"
:interval_filters:
- 🏷️ Last Hour
:from: -1hour
:to: now
- 🏷️ Last Day
:from: -1day
- 🏷️ Last Week
:from: -1week
- 🏷️ Last Month
:from: -1month
- 🏷️ Last Year
:from: -1year
:intervals:
- [ "-1hour", "1 hour" ]
- [ "-2hour", "2 hour" ]
- [ "-1day", "1 day" ]
- [ "-1month", "1 month" ]
- [ "-1year", "1 year" ]

dash.yaml:

:name: Readmail
:description: Number of unique logins
:options:
:graph_columns: 1

This doesnt show 1 column in that graph, but still 2 columns. Tried with and without the :options: line.

Also, if I set :graph_columns: 1 in gdash.yaml, I get this error (latest git clone)

NoMethodError - undefined method rindex' for #<Hash:0x7f87d29598e8>: /data/gdash/lib/gdash/../../views/dashboard.erb:11:inevaluate_source'
/data/gdash/lib/gdash/../../views/dashboard.erb:10:in each' /data/gdash/lib/gdash/../../views/dashboard.erb:10:inevaluate_source'
/data/gdash/lib/gdash/../../views/dashboard.erb:8:in each' /data/gdash/lib/gdash/../../views/dashboard.erb:8:inevaluate_source'
/var/lib/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.rb:144:in cached_evaluate' /var/lib/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.rb:127:inevaluate'
/var/lib/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.rb:76:in render' /var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:636:inrender'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:522:in erb' ./lib/gdash/sinatra_app.rb:134:inGET /:category/:dash/?*'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in call' /var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:incompile!'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in []' /var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:inroute!'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in route_eval' /var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:inroute!'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in process_route' /var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:incatch'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in process_route' /var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:inroute!'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in each' /var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:inroute!'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in dispatch!' /var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:incall!'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in invoke' /var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:incatch'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in invoke' /var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:incall!'
/var/lib/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in call' /var/lib/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:incall'
/var/lib/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in call' /var/lib/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:incall'
/var/lib/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in call' /var/lib/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:incall'
/var/lib/gems/1.8/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:in call' /var/lib/gems/1.8/gems/rack-1.4.1/lib/rack/head.rb:9:incall'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in process_request' /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:inmain_loop'
/usr/lib/ruby/1.8/phusion_passenger/rack/application_spawner.rb:118:in run' /usr/lib/ruby/1.8/phusion_passenger/rack/application_spawner.rb:65:inspawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in safe_fork' /usr/lib/ruby/1.8/phusion_passenger/rack/application_spawner.rb:58:inspawn_application'
/usr/lib/ruby/1.8/phusion_passenger/rack/application_spawner.rb:41:in spawn_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:159:inspawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:insend'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:instart_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:61

@bookest
Copy link
Contributor

bookest commented Feb 15, 2013

I think this is the same problem I ran into with gdash. A fix is here: ripienaar/gdash#79

@bookest
Copy link
Contributor

bookest commented Feb 16, 2013

I was mistaken - the crash has already been fixed by a recent change in gdash.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants