Skip to content

Test Monitor Issue #45

@yl2chen

Description

@yl2chen

Hi Rearview Team,

Our team was on the Scala version and everything worked well. Now we are setting up a new rearview instance using the latest version.

When I took an currently working Metric from one of our rearview monitors, and entered it on the new rearview instance, and hit test monitor, the following errors were shown.

Monitor Test Error!
Metrics contains an invalid metric: {working metrics I entered}

Server logs
I, [2014-06-19T22:06:14.118000 #433] INFO -- : Started POST "/monitor.json" for 24.137.223.133 at 2014-06-19 22:06:14 +0000
I, [2014-06-19T22:06:14.156000 #433] INFO -- : Processing by Rearview::MonitorController#create as JSON
I, [2014-06-19T22:06:14.157000 #433] INFO -- : Parameters: {"id"=>"", "dashboardId"=>"1", "userId"=>"2", "name"=>"test", "active"=>"true", "jobType"=>"monitor", "version"=>"2", "cronExpr"=>"0 0 * ? Mar,May,Sep Sun,Mon,Wed,Thu,Fri,Sat", "errorTimeout"=>"60", "minutes"=>"15", "metrics"=>["{my metric}"], "monitorExpr"=>"limit = 25000\n\nif not @a.nil?\n \nvalue = @a.values[-2] \n\nif not value.nil?\n\n\traise "Max 95 Percentile for Get Anonymous Access Code is currently at #{value}) higher than the #{limit}" if value > limit\n \nend\n\nend", "toDate"=>"now", "createdAt"=>"", "modifiedAt"=>"", "description"=>""}
I, [2014-06-19T22:06:15.135000 #433] INFO -- : Rendered /home/ubuntu/.rvm/gems/jruby-1.7.5@rearview/gems/rearview-1.2.1-java/app/views/rearview/monitor/create.json.jbuilder (2.0ms)
I, [2014-06-19T22:06:15.137000 #433] INFO -- : Completed 200 OK in 970ms (Views: 6.0ms | ActiveRecord: 2.0ms)

I have a valid hosted graphite connection as can be seen here #44

Any idea why its happening?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions