Skip to content

Instantly share code, notes, and snippets.

@kbkaran
Created January 7, 2013 23:09
Show Gist options
  • Save kbkaran/4479442 to your computer and use it in GitHub Desktop.
Save kbkaran/4479442 to your computer and use it in GitHub Desktop.
[cloudera_mapred_server]
definition = index="cmmon_index" TYPE="JOBTRACKER" | stats latest(HOST) as INSTANCE by CLUSTER, SERVICE | table CLUSTER, SERVICE, INSTANCE
iseval = 0
[cloudera_hdfs_server]
definition = index="cmmon_index" TYPE="NAMENODE" | stats latest(HOST) as INSTANCE by CLUSTER, SERVICE | table CLUSTER, SERVICE,INSTANCE
iseval = 0
[cloudera_hue_server]
definition = index="cmmon_index" TYPE="HUE_SERVER" | stats latest(HOST) as INSTANCE by CLUSTER, SERVICE | table CLUSTER, SERVICE, INSTANCE
iseval = 0
[cloudera_oozie_server]
definition = index="cmmon_index" TYPE="OOZIE_SERVER" | stats latest(HOST) as INSTANCE by CLUSTER, SERVICE | table CLUSTER, SERVICE, INSTANCE
iseval = 0
[cloudera_health_summary]
definition = index="cmmon_index" | lookup cluster2server CLUSTER SERVICE OUTPUTNEW |stats dc(HOST) as service_count by INSTANCE CLUSTER TYPE SERVICE STATUS | eval upcount=if(STATUS == "GOOD",service_count,0)| stats sum(service_count) as total_nodes sum(upcount) as up_nodes values(TYPE) as service_summary by SERVICE CLUSTER TYPE INSTANCE |eval health_summary = service_summary . " - " .up_nodes . "/" . total_nodes . " are up" | stats values(CLUSTER) as Cluster , values(SERVICE) as Service , values(health_summary) as Health, values(INSTANCE) as Server by CLUSTER SERVICE | table Cluster Service Server Health
iseval = 0
[__generate_lookup_cluster2mapred]
cron_schedule = 5 0 * * *
dispatch.earliest_time = -720d@d
dispatch.latest_time = now
enableSched = 1
search = `cloudera_mapred_server` | outputlookup cluster2server
[__generate_lookup_cluster2hdfs]
cron_schedule = 5 0 * * *
dispatch.earliest_time = -720d@d
dispatch.latest_time = now
enableSched = 1
search = `cloudera_hdfs_server` | outputlookup cluster2server
[__generate_lookup_cluster2hue]
cron_schedule = 5 0 * * *
dispatch.earliest_time = -720d@d
dispatch.latest_time = now
enableSched = 1
search = `cloudera_hue_server` | outputlookup cluster2server
[__generate_lookup_cluster2oozie]
cron_schedule = 5 0 * * *
dispatch.earliest_time = -720d@d
dispatch.latest_time = now
enableSched = 1
search = `cloudera_oozie_server` | outputlookup cluster2server
[__append_lookup_cluster2mapred]
cron_schedule = */15 * * * *
dispatch.earliest_time = -15m
dispatch.latest_time = now
enableSched = 1
search = `cloudera_mapred_server` | append [ inputlookup cluster2server ] | outputlookup cluster2server
[__append_lookup_cluster2hdfs]
cron_schedule = */15 * * * *
dispatch.earliest_time = -15m
dispatch.latest_time = now
enableSched = 1
search = `cloudera_hdfs_server` | append [ inputlookup cluster2server ] | outputlookup cluster2server
[__append_lookup_cluster2hue]
cron_schedule = */15 * * * *
dispatch.earliest_time = -15m
dispatch.latest_time = now
enableSched = 1
search = `cloudera_hue_server` | append [ inputlookup cluster2server ] | outputlookup cluster2server
[__append_lookup_cluster2oozie]
cron_schedule = */15 * * * *
dispatch.earliest_time = -15m
dispatch.latest_time = now
enableSched = 1
search = `cloudera_oozie_server` | append [ inputlookup cluster2server ] | outputlookup cluster2server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment