Skip to main content Skip to complementary content

Service Activity Monitoring Policy

About this task

From Talend ESB, you can enable the Service Activity Monitoring feature via a custom policy that the user can maintain and assign to a service via the Service Registry.

Procedure

  1. Make sure the Talend Runtime is running, and the Service Registry service has been started. For more information, see Introduction to Service Activity Monitoring.
  2. Import the Service Activity Monitoring policy to use, either directly from the Talend Runtime. For more information, see Using the Service Registry with Talend ESB or via the Talend Administration Center, for more information, see Managing policies.
    Talend ESB provides a default Service Activity Monitoring policy called wspolicy_sam.policy in its /add-ons/registry/policies folder. This policy is by default applicable for consumer, but you can modify it according to your need.
    <wsp:Policy Name="wspolicy_sam" 
                xmlns:wsp="http://www.w3.org/ns/ws-policy">
        <wsp:ExactlyOne>
            <wsp:All>
                <tpa:ServiceActivityMonitoring 
                    xmlns:tpa="http://types.talend.com/policy/assertion/1.0" 
                    appliesTo="consumer" />
            </wsp:All>
        </wsp:ExactlyOne>
    </wsp:Policy>
    Where appliesTo can be consumer, provider, or always (both consumer and provider).
    This parameter is restricted to events that can be monitored by the Service Activity Monitoring.
  3. Assign the policy to the service for which you want to activate the Service Activity Monitoring.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!