General Information
SwyxON Live Metrics is an Add-on that provides real-time access to performance and operational data of a SwyxON tenant. With SwyxON Live Metrics, administrators and operations teams gain full transparency into the health, usage and performance of their UC tenant in the SwyxON environment. The Add-on supports proactive monitoring, faster troubleshooting, and data-driven capacity planning by making relevant metrics available for dashboards, alerts, and long-term analysis.
Let's get technical
SwyxON Live Metrics is an Add-on which provides a Prometheus-Metrics Endpoint for UC tenants. It publishes a specific set of SwyxWare performance counter in the prometheus metrics format. When deployed, the UC tenant exposes a new TCP port where customers can retrieve the metrics using HTTP GET requests. The endpoint is available via HTTPS only and needs authentication.
Purpose
Allow Swyx UCT administrators to setup monitoring / alerting systems to monitor their UC tenants.
SwyxON Live Metrics expose a speicfied set of the available performance counter. Mapping information and description on the available performance counters (metrics) depends on the configuration of a tenant as well as on the version. This Information can be found in the attachment
Quickstart
The easiest way to check the Add-on is to:
Create an UC Tenant or use an existing one in SwyxON
Install the SwyxON Live Metrics Add-on and choose a username and password. The port will be created by the system automatically. [Individual for each UCT]
The Add-on will create a port mapping from outside (individual TCP port) to the inside metrics exporter service
-
After the Add-on has been installed the endpoint is shown
Example:
Call the windows exporter endpoint with https://<EndpointAddress:Port>/metrics
Login with the configured username + password
-
Available metrics are listed
Detailed E2E Usage example
The SwyxON Live Metrics Add-on will expose a specific subset of SwyxWare Performance Counter in a Prometheus format as described above. In order to be able to visualize these data, proper visualization solution must be installed and set up.
This article describes an example to do it with Grafana.
If you need a detailed description on how to setup docker or install Ubuntu, please refer to the official documentation. Ubuntu | Docker Docs
Prerequisites to use SwyxON Live Metrics Add-on with Grafana
Ubuntu Server is installed and reachable in the network
Docker Engine is up and running
Setup Grafana with Docker Compose
Login to Ubuntu server
-
Create a new folder in and copy the attached files
prometheus.yaml→ Prometheus configurationdocker-compose.yaml→ Docker compose which creates a container for Grafana and Prometheus
-
Edit prometheus.yaml and add the details for your UC Tenant
targets = Endpoint of SwyxON Live Metrics Add-on
username = configured username for the SwyxON Live Metrics Add-on
password = configured password for the SwyxON Live Metrics Add-on
-
Run
docker compose up -d --force-recreateThis command creates and starts a Grafana and Prometheus container on the Ubuntu Server
Open a browser and navigate to <IP of Ubuntu Server>:3000
Login with admin:admin and create a new password
Navigate to Connections → Data sources
-
Add a new data source. Choose Prometheus and add your Ubuntu server IP with port 9090 (default Prometheus exporter port)
-
Navigate to Dashboards and import a .json file. The sample dashboard which is delivered to customers for quick start can be used.
SwyxWare Overview.json
After importing the dashboard it should look like this(but of course with users etc. logged in):
Optional: The docker compose file is not configured to automatically launch the docker containers after a server restart. If you wish to behave it like this you can add it to your docker compose file for all container, which should start automatically.restart: unless-stopped
Debugging
In case of any problems start debugging the components separtely.
Is the SwyxON Live Metrics Add-on working correctly? → You should be able to login via browser to the endpoint to check that prometheus is running on the UC Tenant and that it delivers data
-
Is the Prometheus container running correctly on your Ubuntu Server? → Navigate to the configured endpoint in prometheus.yaml. You should see something like this
Useful URLs
|
Description |
Link to maintainer |
|---|---|---|
Prometheus |
Prometheus is an open-source monitoring and alerting toolkit designed for collecting and storing metrics data. |
|
Grafana |
Grafana is an open-source platform used for data visualization and monitoring, allowing users to create interactive dashboards that display data from various sources like databases and applications. |
Comments
0 comments
Please sign in to leave a comment.