{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf470 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww23440\viewh11560\viewkind0 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 \f0\fs24 \cf0 \{\ "AlertDefinition" : \{\ "cluster_name" : "sparkcluster123", //Change to your cluster name\ "component_name" : "RESOURCEMANAGER", //Change to component using are trying to monitor\ "description" : "This host-level alert is triggered if cluster yarn memory exceeds 1GB. The threshold values are in Bytes.", //Change the description \ "enabled" : true, //Set to true\ "help_url" : null,\ "ignore_host" : false,\ "interval" : 5, //Change the interval if you want.\ "label" : "ResourceManager used Memory ", //Change the labels\ "name" : "yarn_used_mem", //Change the name \ "repeat_tolerance" : 1,\ "repeat_tolerance_enabled" : false,\ "scope" : "ANY",\ "service_name" : "YARN",\ "source" : \{\ "jmx" : \{\ "property_list" : [\ "Hadoop:service=ResourceManager,name=QueueMetrics,q0=root/AllocatedMB" //Change the root of metrics you want to monitor\ ],\ "value" : "\{0\}"\ \},\ "reporting" : \{\ "ok" : \{\ "text" : "Yarn Memory Used \{0\} B"\ \},\ "warning" : \{\ "text" : " Yarn Memory Used \{0\} B",\ "value" : 1024 //Change the threshold values\ \},\ "critical" : \{\ "text" : "Yarn Memory Used \{0\} B",\ "value" : 2048\ \},\ "units" : "B" //Change the units like B,m,Bytes,GB \ \},\ "type" : "METRIC", //This type is valid because we are fetching from JMX. \ "uri" : \{\ "http" : "\{\{yarn-site/yarn.resourcemanager.webapp.address\}\}", //We need them for secure environment.\ "https" : "\{\{yarn-site/yarn.resourcemanager.webapp.https.address\}\}",\ "https_property" : "\{\{yarn-site/yarn.http.policy\}\}",\ "https_property_value" : "HTTPS_ONLY",\ "kerberos_keytab" : "\{\{yarn-site/yarn.resourcemanager.webapp.spnego-keytab-file\}\}",\ "kerberos_principal" : "\{\{yarn-site/yarn.resourcemanager.webapp.spnego-principal\}\}",\ "default_port" : 0.0,\ "connection_timeout" : 5.0,\ "high_availability" : \{\ "alias_key" : "\{\{yarn-site/yarn.resourcemanager.ha.rm-ids\}\}",\ "http_pattern" : "\{\{yarn-site/yarn.resourcemanager.webapp.address.\{\{alias\}\}\}\}",\ "https_pattern" : "\{\{yarn-site/yarn.resourcemanager.webapp.https.address.\{\{alias\}\}\}\}"\ \}\ \}\ \}\ \}\ \}\ }