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
26
27
 {
     "class": "Telemetry",
     "controls": {
         "class": "Controls",
         "logLevel": "info"
     },
     "My_System": {
         "class": "Telemetry_System",
         "systemPoller": {
             "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"
         }
     }
 }

Example 4: iHealth Poller

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
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
     "class": "Telemetry",
     "My_System": {
         "class": "Telemetry_System",
         "systemPoller": {
             "interval": 60
         },
         "iHealthPoller": {
             "username": "username",
             "passphrase": {
                 "cipherText": "passphrase"
             },
             "proxy": {
                 "host": "127.0.0.1",
                 "protocol": "http",
                 "port": 80,
                 "enableHostConnectivityCheck": false,
                 "allowSelfSignedCert": false,
                 "username": "username",
                 "passphrase": {
                     "cipherText": "passphrase"
                 }
             },
             "interval": {
                 "timeWindow": {
                     "start": "23:15",
                     "end":   "02:15"
                 },
                 "frequency": "monthly",
                 "day": "5"
             }
         }
     }
 }

Example 5: Referenced Pollers

 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
 {
     "class": "Telemetry",
     "My_System_Inline_Pollers": {
         "class": "Telemetry_System",
         "enable": true,
         "trace": false,
         "host": "localhost",
         "port": 8100,
         "protocol": "http",
         "allowSelfSignedCert": false,
         "enableHostConnectivityCheck": false,
         "username": "admin",
         "passphrase": {
             "cipherText": "passphrase"
         },
         "systemPoller": {
             "enable": true,
             "trace": false,
             "interval": 60
         },
         "iHealthPoller": {
             "username": "username",
             "passphrase": {
                 "cipherText": "passphrase"
             },
             "proxy": {
                 "host": "127.0.0.1",
                 "protocol": "http",
                 "port": 80,
                 "enableHostConnectivityCheck": false,
                 "allowSelfSignedCert": false,
                 "username": "username",
                 "passphrase": {
                     "cipherText": "passphrase"
                 }
             },
             "interval": {
                 "timeWindow": {
                     "start": "23:15",
                     "end":   "07:15"
                 },
                 "frequency": "monthly",
                 "day": "5"
             }
         }
     },
     "My_System_Referenced_Pollers": {
         "class": "Telemetry_System",
         "enable": true,
         "trace": false,
         "host": "localhost",
         "port": 8100,
         "protocol": "http",
         "allowSelfSignedCert": false,
         "enableHostConnectivityCheck": false,
         "username": "admin",
         "passphrase": {
             "cipherText": "passphrase"
         },
         "systemPoller": "My_Poller",
         "iHealthPoller": "My_iHealth"
     },
     "My_Poller": {
         "class": "Telemetry_System_Poller",
         "enable": true,
         "trace": false,
         "interval": 60
     },
     "My_iHealth": {
         "class": "Telemetry_iHealth_Poller",
         "username": "username",
         "passphrase": {
             "cipherText": "passphrase"
         },
         "proxy": {
             "host": "127.0.0.1",
             "protocol": "http",
             "port": 80,
             "enableHostConnectivityCheck": false,
             "allowSelfSignedCert": false,
             "username": "username",
             "passphrase": {
                 "cipherText": "passphrase"
             }
         },
         "interval": {
             "timeWindow": {
                 "start": "23:15",
                 "end":   "04:15"
             },
             "frequency": "monthly",
             "day": "5"
         }
     }
 }