Navigation Menu

Skip to content

Commit

Permalink
Consistent naming btw directories, plugin files, and class names, cha…
Browse files Browse the repository at this point in the history
…nged Celery => CeleryOverall for clarity, dropped needs 'rubygems' as it is automatically required.
  • Loading branch information
itsderek23 committed Oct 17, 2011
1 parent 516cb7e commit 60e2565
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
15 changes: 9 additions & 6 deletions celery/celery.rb → celery_overall/celery_overall.rb
@@ -1,18 +1,21 @@
# =================================================================================
# celery
# This is a "global view" of your Celery system.
# It monitors and reports on how many workers you have running, total task results/state, and task results per minute/second.
#
# Created by Erik Wickstrom on 2011-10-14.
# =================================================================================

class Celery < Scout::Plugin
needs 'rubygems'
class CeleryOverall < Scout::Plugin
needs 'json'
needs 'net/http'

OPTIONS=<<-EOS
celerymon_url: default: http://localhost:8989 notes: The base URL of your Celerymon server. frequency:
default: minute
notes: The frequency at which sample rates should be calculated (ie "7 failures per minute"). Valid options are minute and second.
celerymon_url:
default: http://localhost:8989
notes: The base URL of your Celerymon server.
frequency:
default: minute
notes: The frequency at which sample rates should be calculated (ie "7 failures per minute"). Valid options are minute and second.
EOS

def build_report
Expand Down
19 changes: 10 additions & 9 deletions celery_task_details/celery_task_details.rb
@@ -1,20 +1,21 @@
# =================================================================================
# celery_task_details
# This monitors detailed stats on specific celery task types (results/states, average runtime, etc)
#
# Created by Erik Wickstrom on 2011-10-14.
# =================================================================================

class CeleryTaskDetails < Scout::Plugin
needs 'rubygems'
needs 'json'
needs 'net/http'
OPTIONS=<<-EOS celerymon_url: default: http://localhost:8989
notes: The base URL of your Celerymon server.
frequency:
default: minute
notes: The frequency at which sample rates should be calculated (ie "7 failures per minute"). Valid options are minute and second.
task_name:
notes: The fully qualified name of the task (ie module.tasks.my_task)
OPTIONS=<<-EOS
celerymon_url:
default: http://localhost:8989
notes: The base URL of your Celerymon server.
frequency:
default: minute
notes: The frequency at which sample rates should be calculated (ie "7 failures per minute"). Valid options are minute and second.
task_name:
notes: The fully qualified name of the task (ie module.tasks.my_task)
EOS

def build_report
Expand Down
12 changes: 7 additions & 5 deletions celery_task/celery_task.rb → celery_tasks/celery_tasks.rb
@@ -1,18 +1,20 @@
# =================================================================================
# celery_tasks
# This monitors throughput of your 20 most active celery tasks.
#
# Created by Erik Wickstrom on 2011-10-14.
# =================================================================================

class CeleryTasks < Scout::Plugin
needs 'rubygems'
needs 'json'
needs 'net/http'

OPTIONS=<<-EOS
celerymon_url:
default: http://localhost:8989 notes: The base URL of your Celerymon server. frequency: default: minute
notes: The frequency at which sample rates should be calculated (ie "7 failures per minute"). Valid options are minute and second.
celerymon_url:
default: http://localhost:8989
notes: The base URL of your Celerymon server.
frequency:
default: minute
notes: The frequency at which sample rates should be calculated (ie "7 failures per minute"). Valid options are minute and second.
EOS

def build_report
Expand Down

0 comments on commit 60e2565

Please sign in to comment.