Commit 36eef9826462eb23891eb09d5c1a21daf2024cf3
1 parent
b9c73a28
Add monitoring for lwm2m and snmp transports
Showing
5 changed files
with
46 additions
and
4 deletions
... | ... | @@ -949,9 +949,19 @@ |
949 | 949 | "selected": false, |
950 | 950 | "text": "tb-coap-transport", |
951 | 951 | "value": "tb-coap-transport" |
952 | + }, | |
953 | + { | |
954 | + "selected": false, | |
955 | + "text": "tb-lwm2m-transport", | |
956 | + "value": "tb-lwm2m-transport" | |
957 | + }, | |
958 | + { | |
959 | + "selected": false, | |
960 | + "text": "tb-snmp-transport", | |
961 | + "value": "tb-snmp-transport" | |
952 | 962 | } |
953 | 963 | ], |
954 | - "query": "tb-core1,tb-core2,tb-rule-engine1,tb-rule-engine2,tb-mqtt-transport1,tb-mqtt-transport2,tb-http-transport1,tb-http-transport2,tb-coap-transport", | |
964 | + "query": "tb-core1,tb-core2,tb-rule-engine1,tb-rule-engine2,tb-mqtt-transport1,tb-mqtt-transport2,tb-http-transport1,tb-http-transport2,tb-coap-transport,tb-lwm2m-transport,tb-snmp-transport", | |
955 | 965 | "queryValue": "", |
956 | 966 | "skipUrlSync": false, |
957 | 967 | "type": "custom" |
... | ... | @@ -979,4 +989,4 @@ |
979 | 989 | "title": "Single Service Metrics", |
980 | 990 | "uid": "lewbrddddlwjerwkj", |
981 | 991 | "version": 1 |
982 | -} | |
\ No newline at end of file | ||
992 | +} | ... | ... |
... | ... | @@ -70,7 +70,7 @@ scrape_configs: |
70 | 70 | metrics_path: /actuator/prometheus |
71 | 71 | static_configs: |
72 | 72 | - targets: [ 'tb-http-transport1:8081' ] |
73 | - - | |
73 | + | |
74 | 74 | - job_name: 'tb-http-transport2' |
75 | 75 | metrics_path: /actuator/prometheus |
76 | 76 | static_configs: |
... | ... | @@ -81,3 +81,12 @@ scrape_configs: |
81 | 81 | static_configs: |
82 | 82 | - targets: [ 'tb-coap-transport:8081' ] |
83 | 83 | |
84 | + - job_name: 'tb-lwm2m-transport' | |
85 | + metrics_path: /actuator/prometheus | |
86 | + static_configs: | |
87 | + - targets: [ 'tb-lwm2m-transport:8081' ] | |
88 | + | |
89 | + - job_name: 'tb-snmp-transport' | |
90 | + metrics_path: /actuator/prometheus | |
91 | + static_configs: | |
92 | + - targets: [ 'tb-snmp-transport:8081' ] | ... | ... |
... | ... | @@ -14,6 +14,17 @@ |
14 | 14 | # limitations under the License. |
15 | 15 | # |
16 | 16 | |
17 | +# If you enabled process metrics you should also enable 'web-environment'. | |
18 | +spring.main.web-environment: "${WEB_APPLICATION_ENABLE:false}" | |
19 | +# If you enabled process metrics you should set 'web-application-type' to 'servlet' value. | |
20 | +spring.main.web-application-type: "${WEB_APPLICATION_TYPE:none}" | |
21 | + | |
22 | +server: | |
23 | + # Server bind address (has no effect if web-environment is disabled). | |
24 | + address: "${HTTP_BIND_ADDRESS:0.0.0.0}" | |
25 | + # Server bind port (has no effect if web-environment is disabled). | |
26 | + port: "${HTTP_BIND_PORT:8083}" | |
27 | + | |
17 | 28 | # Zookeeper connection parameters. Used for service discovery. |
18 | 29 | zk: |
19 | 30 | # Enable/disable zookeeper discovery service. |
... | ... | @@ -228,4 +239,4 @@ management: |
228 | 239 | web: |
229 | 240 | exposure: |
230 | 241 | # Expose metrics endpoint (use value 'prometheus' to enable prometheus metrics). |
231 | - include: '${METRICS_ENDPOINTS_EXPOSE:info}' | |
\ No newline at end of file | ||
242 | + include: '${METRICS_ENDPOINTS_EXPOSE:info}' | ... | ... |