Microsoft HDInsight

Microsoft.HDInsight.Template.AmbariDiscovery (Template)

This template allows you to monitor Microsoft HDInsight Clusters through Ambari service.

Source Code:

<Template ID="Microsoft.HDInsight.Template.AmbariDiscovery">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.Discovery.MapperSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Name" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Description" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AmbariUri" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IsCloudService" type="xsd:boolean"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="RunAsAccount" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ResourcePoolId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ResourcePoolClassId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ResourcePoolProperties" minOccurs="0" type="SettingsType"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ResourcePoolPropertiesString" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TemplateIdString" type="xsd:string"/>
</Configuration>
<References>
<Reference ID="Self"/>
<Reference ID="System"/>
<Reference ID="Windows"/>
<Reference ID="SC"/>
</References>
<Implementation>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="Microsoft.HDInsight.Ambari.$TemplateConfig/TemplateIdString$" Base="$Reference/Self$Microsoft.HDInsight.Ambari" Accessibility="Internal" Abstract="false" Hosted="false" Singleton="false"/>
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="Microsoft.HDInsight.Discovery.Ambari.$TemplateConfig/TemplateIdString$" Enabled="true" Target="$Reference/SC$Microsoft.SystemCenter.ManagementGroup">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.HDInsight.Ambari.$TemplateConfig/TemplateIdString$">
<Property TypeID="$Reference/System$System.Entity" PropertyID="DisplayName"/>
<Property TypeID="$Reference/Self$Microsoft.HDInsight.Ambari" PropertyID="TemplateName"/>
<Property TypeID="$Reference/Self$Microsoft.HDInsight.Ambari" PropertyID="AmbariUri"/>
<Property TypeID="$Reference/Self$Microsoft.HDInsight.Ambari" PropertyID="IsCloudService"/>
<Property TypeID="$Reference/Self$Microsoft.HDInsight.Ambari" PropertyID="ClustersQueryUriSegment"/>
<Property TypeID="$Reference/Self$Microsoft.HDInsight.Ambari" PropertyID="ResourcePoolClassId"/>
<Property TypeID="$Reference/Self$Microsoft.HDInsight.Ambari" PropertyID="ResourcePoolProperties"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="$Reference/Self$Microsoft.HDInsight.Module.AmbariDiscoveryDataSource">
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<TemplateName>$TemplateConfig/Name$</TemplateName>
<AmbariClassId>$MPElement[Name="Microsoft.HDInsight.Ambari.$TemplateConfig/TemplateIdString$"]$</AmbariClassId>
<ResourcePoolId>$TemplateConfig/ResourcePoolId$</ResourcePoolId>
<ResourcePoolClassId>$TemplateConfig/ResourcePoolClassId$</ResourcePoolClassId>
<ResourcePoolProperties>$TemplateConfig/ResourcePoolProperties$</ResourcePoolProperties>
<ResourcePoolPropertiesString>$TemplateConfig/ResourcePoolPropertiesString$</ResourcePoolPropertiesString>
<AmbariUri>$TemplateConfig/AmbariUri$</AmbariUri>
<IsCloudService>$TemplateConfig/IsCloudService$</IsCloudService>
<ClustersQueryUriSegment>v1/clusters</ClustersQueryUriSegment>
</DataSource>
</Discovery>
</Discoveries>
<Overrides>
<SecureReferenceOverride ID="Microsoft.HDInsight.Profile.Ambari.$TemplateConfig/TemplateIdString$.AmbariOverride" Context="Microsoft.HDInsight.Ambari.$TemplateConfig/TemplateIdString$" SecureReference="$Reference/Self$Microsoft.HDInsight.Profile.Ambari" Enforced="false">
<Value>$TemplateConfig/RunAsAccount$</Value>
</SecureReferenceOverride>
</Overrides>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="Microsoft.HDInsight.Ambari.$TemplateConfig/TemplateIdString$">
<Name>HDInsight Ambari Service ($TemplateConfig/Name$)</Name>
<Description>This class defines HDInsight Ambari Service created by $TemplateConfig/Name$ template.</Description>
</DisplayString>
<DisplayString ElementID="Microsoft.HDInsight.Discovery.Ambari.$TemplateConfig/TemplateIdString$">
<Name>HDInsight Ambari Service Seed Discovery ($TemplateConfig/Name$)</Name>
<Description>This workflow discovers HDInsight Ambari Service Seed defined in the "$TemplateConfig/Name$" template.</Description>
</DisplayString>
</DisplayStrings>
<KnowledgeArticles>
<KnowledgeArticle ElementID="Microsoft.HDInsight.Discovery.Ambari.$TemplateConfig/TemplateIdString$">
<MamlContent>
<section xmlns="http://schemas.microsoft.com/maml/2004/10">
<title>Summary</title>
<para>This workflow discovers HDInsight Ambari Service defined in the "$TemplateConfig/Name$" template.</para>
</section>
</MamlContent>
</KnowledgeArticle>
</KnowledgeArticles>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>