Overview

The article covers the following topics:

  • common use cases where CloudMonix can help with monitoring and automation

  • what is needed to connect to and monitor network sockets

  • what metrics can be tracked, visualized and monitored


Why use CloudMonix for network sockets?

Popular usages of CloudMonix include the following examples:

  • Monitoring Uptime and Availability

  • Monitoring that responses from monitored sockets match expectations


Configuration 

Sockets monitoring can be configured by using the “Add New” button in the dashboard. It’s necessary to specify the host, port, protocol (e.g. UPD, TCP, IPv6, etc.), and socket type (Raw, Stream, Dgram, Rdm or Seqpacket) .

Metrics

CloudMonix retrieves data by directly executing requests against the sockets. Every diagnostic data point that CloudMonix retrieves from the monitored resource is considered a metric in CloudMonix. Refer to the Metrics article to learn more about metrics in general. 


CloudMonix provides a default template for monitoring network sockets that contains most useful Metrics and Alerts.



The metrics can be added, removed and customized in the Metrics tab in the resource configuration dialog.


Built-in Metrics 

ResourceStatus

Identifies the last state of the monitored resource. This is a critical metric that is captured for most types of resources that CloudMonix tracks. It is used for Uptime reports and should not be removed. 

  • Data Type: string

  • Possible values: Ready, Down

  • Included in sample profile: yes, tracked as a metric called Status

  • Included in default alerts: yes, included in an alert ResourceOutage (Warning): Fires an alert if overall resource status is not "Ready" for 2 min. sustained.

Statuses are determined according to the following rules:

  • Ready - successfully connected to the resource and retrieved metrics

  • Down - there was an error when trying to retrieve data from the resource


ResponseTime

Tracks the time in milliseconds that the endpoint took to respond to the last monitored request.

  • Data Type: long

  • Included in sample profile: yes, tracked as a metric called ResponseTime

  • Included in default alerts: no


SocketResponse

Posts a specified Message and captures the returned response. An alert might be defined to verify that the response is equal to the expected value.

  • Data Type: string

  • Included in sample profile: no

  • Included in default alerts: no


Alerts

Users can create alerts based on changes in any value tracked by CloudMonix (including custom metrics). Each resource template includes alerts which are suitable for a given resource. The predefined alerts for Sockets are listed in the Metrics section. Refer to the Alerts article to learn more about alerts in general.


Alerts are available during the Trial period or in Professional and Ultimate plans only.