Example Declarations

Example 1: Base Declaration

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 {
     "class": "Telemetry",
     "controls": {
         "class": "Controls",
         "logLevel": "info"
     },
     "My_Poller": {
         "class": "Telemetry_System_Poller",
         "interval": 60
     },
     "My_Listener": {
         "class": "Telemetry_Listener",
         "port": 6514
     },
     "My_Consumer": {
         "class": "Telemetry_Consumer",
         "type": "Splunk",
         "host": "192.0.2.1",
         "protocol": "https",
         "port": "8088",
         "passphrase": {
             "cipherText": "apikey"
         }
     }
 }

Example 2: Two Consumers

Note: This example shows only the Consumer class of the declaration and needs to be included with the rest of the base declaration.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 {
     "class": "Telemetry",
     "My_Consumer": {
         "class": "Telemetry_Consumer",
         "type": "Azure_Log_Analytics",
         "host": "workspaceid",
         "passphrase": {
             "cipherText": "sharedkey"
         }
     },
     "My_Second_Consumer": {
         "class": "Telemetry_Consumer",
         "type": "Splunk",
         "host": "192.0.2.1",
         "protocol": "https",
         "port": "8088",
         "passphrase": {
             "cipherText": "apikey"
         }
     }
 }

Example 3: External System (BIG-IP)

This example shows a case where Telemetry Streaming on one BIG-IP can pull statistics from an additional BIG-IP.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 {
     "My_Poller": {
         "class": "Telemetry_System_Poller",
         "interval": 60,
         "host": "192.0.2.1",
         "port": 443,
         "username": "myuser",
         "passphrase": {
             "cipherText": "mypassphrase"
         }
     }
 }