Users should refer to the How to setup Collection Agent and How to setup Self Announcing Netprobes on the pre-requisites to set these components up.
Note it is recommend you run GA6.X version of netprobe alongside 3.x collection agent version.
One can use an example netprobe.setup.xml configuration for the self announcing netprobe.
1. Use the below as template guidance
<?xml version="1.0" encoding="ISO-8859-1"?>
<netprobe
compatibility="1">
<selfAnnounce>
<enabled>true</enabled>
<retryInterval>60</retryInterval>
<requireReverseConnection>true</requireReverseConnection>
<probeName>JMXCASelf</probeName>
<managedEntities>
<managedEntity>
<name>Stats Monitoring</name>
<attributes>
<attribute name="CITY">London</attribute>
<attribute name="ENVIRONMENT">production</attribute>
<attribute name="GATEWAY">MARKETDATA</attribute>
<attribute name="APP">InfraServices</attribute>
<attribute name="TEAM">MarketData</attribute>
</attributes>
<types>
<type>Generic</type>
</types>
<variables>
<var name="EMAILRECIPIENTS">
<string>MarketData@abc.net</string>
</var>
</variables>
</managedEntity>
</managedEntities>
<dynamicEntities>
<mappingType>Java</mappingType>
<collectionAgentParameters>MineBundled</collectionAgentParameters>
</dynamicEntities>
<gateways>
<gateway>
<hostname>mygatewayhostname</hostname>
<port>11000</port>
<insecure>true</insecure>
</gateway>
</gateways>
</selfAnnounce>
</netprobe>
2. We are doing bundledYAML, with collection_agent/collection-agent.yml
packaged with the Netprobe binary .Use the following collection-agent.yml - this test use case uses statsd plugin
plugin-directory: ${env:CA_PLUGIN_DIR}
monitoring:
reporting-interval: 10000
health-probe:
enabled: true
listen-port: ${env:HEALTH_CHECK_PORT}
self-metrics:
enabled: false
dimensions:
app: collection-agent
reporters:
- type: tcp
name: tcp
hostname: localhost
port: ${env:TCP_REPORTER_PORT}
collectors:
- name: statsd
type: plugin
class-name: StatsdServer
transport-protocol: tcp
listen-port: 30095
workflow:
store-directory: .
attributes:
reporter: tcp
metrics:
reporter: tcp
events:
reporter: tcp
logs:
reporter: tcp
traces:
enabled: false
3. Ensure Mapping Type is defined across your gateways
4. Ensure your Mapping is defined across your gateways
5. Ensure you have defined Collection Agent Parameters section across your gateways
6. In this test case we are using statsd plugin - Ensure this is defined across your gateways.
7. Also ensure a type called Generic is present across the gateways
8. Run an test program to expose data to the collection agent.
Create an Example script - this uses statsd-client-2.1.1.jar, TickTock.jar, TickTock.class - these files needed to be present for the below script to operate
#!/bin/bash
export STATSD_SERVER=yournetprobehost
export STATSD_PORT=30095
/disk2/Utilities/zulu11.54.23-ca-jdk11.0.14-linux_x64/bin/java -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=20102 -Dcom.sun.management.jmxremote.ssl=false -javaagent:/disk2/Utilities/statsd-client-2.1.1.jar=protocol=tcp,dimension=app_name:jmx_app2,dimension=region:EMEA,dimension=jmx_port:20102 -jar TickTock.jar >> TickTockCol.log &
9. Start your netprobe/collection agent - A dynamic entity should be created.
Sample dynamic entities xml and statsd jar and application files included.
If you have any further questions:
- Please contact with our Client Services team via the chat service box available in any of our websites or via email to support@itrsgroup.com
- Make sure you provide to us:
- Screenshots
- netprobe setup.xml, collection-agent.yml, gateway diagnostics, netprobe log file.
Comments
0 comments
Please sign in to leave a comment.