id | title |
---|---|
monitoring |
Monitoring |
import useBaseUrl from '@docusaurus/useBaseUrl'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Sauce Connect Proxy provides server-side monitoring via the REST API and the Sauce Labs web application as well as the client-side monitoring via the local API server and Prometheus metrics.
You can manage and monitor all Sauce Connect Proxy tunnel activity from the Sauce Labs Tunnels page, which displays useful information, such as the number of active tunnels, tunnel status, and specific attributes for each tunnel. You can also check the health of an individual tunnel by running a test on it.
Column | Description |
---|---|
Type | The icon shows whether the tunnel is a Sauce Connect Proxy, or an IPSec Proxy. |
State | The icon shows whether the tunnel is running or stopped. |
Tunnel Name | The name of the tunnel. This is the --tunnel-name used when starting the Sauce Connect tunnel. |
Client Hostname | The name of the machine where the Sauce Connect Proxy client is running. |
Owner | The name of the account that is running the tunnel. |
Sharing | Indicates whether or not the tunnel is shared. |
Duration | The amount of time the tunnel has been running. |
Prometheus can be used to monitor Sauce Connect Proxy.
The /metrics
endpoint is available on the local API server.
Note that the API server must be enabled with the --api-address
option, and by default it's disabled.
Grafana dashboard using these metrics is available at Grafana Dashboards. See this demo for an example of running Sauce Connect Proxy along with Prometheus server and Grafana dashboard.
<img src={useBaseUrl('img/sauce-connect/sc5-dashboard.png')} alt="Sauce Connect Proxy 5 Grafana dashboard" width="650"/>
The following metrics are available:
Number of closed connections
Labels:
- host
Number of dialed connections
Labels:
- host
Number of dialer errors
Labels:
- host
Number of errors
Labels:
- name
The HTTP request latencies in seconds.
Labels:
- code
- method
The HTTP request sizes in bytes.
Labels:
- code
- method
Current number of HTTP requests being served.
Labels:
- method
Total number of HTTP requests processed.
Labels:
- code
- method
The HTTP response sizes in bytes.
Labels:
- code
- method
Total user and system CPU time spent in seconds.
Maximum number of open file descriptors.
Number of bytes received by the process over the network.
Number of bytes sent by the process over the network.
Number of open file descriptors.
Resident memory size in bytes.
Start time of the process since unix epoch in seconds.
Virtual memory size in bytes.
Maximum amount of virtual memory available in bytes.
Number of proxy errors
Labels:
- reason
The time it takes to establish a tunnel connection.
Labels:
- address
Number of closed connections
Labels:
- host
Number of dialed connections
Labels:
- host
Number of dialer errors
Labels:
- host
Total number of errors by type.
Labels:
- type
Information about Sauce Connect tunnel, value is always 1
Labels:
- addr
- hostname
- id
- name
Total number of bytes received.
Labels:
- conn
Total number of bytes sent.
Labels:
- conn
Sauce Connect Proxy version, value is always 1
Labels:
- commit
- time
- version
A summary of the wall-time pause (stop-the-world) duration in garbage collection cycles.
Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent
Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes
Number of goroutines that currently exist.
Information about the Go environment.
Labels:
- version
Number of bytes allocated in heap and currently in use. Equals to /memory/classes/heap/objects:bytes.
Total number of bytes allocated in heap until now, even if released already. Equals to /gc/heap/allocs:bytes.
Number of bytes used by the profiling bucket hash table. Equals to /memory/classes/profiling/buckets:bytes.
Total number of heap objects frees. Equals to /gc/heap/frees:objects + /gc/heap/tiny/allocs:objects.
Number of bytes used for garbage collection system metadata. Equals to /memory/classes/metadata/other:bytes.
Number of heap bytes allocated and currently in use, same as go_memstats_alloc_bytes. Equals to /memory/classes/heap/objects:bytes.
Number of heap bytes waiting to be used. Equals to /memory/classes/heap/released:bytes + /memory/classes/heap/free:bytes.
Number of heap bytes that are in use. Equals to /memory/classes/heap/objects:bytes + /memory/classes/heap/unused:bytes
Number of currently allocated objects. Equals to /gc/heap/objects:objects.
Number of heap bytes released to OS. Equals to /memory/classes/heap/released:bytes.
Number of heap bytes obtained from system. Equals to /memory/classes/heap/objects:bytes + /memory/classes/heap/unused:bytes + /memory/classes/heap/released:bytes + /memory/classes/heap/free:bytes.
Number of seconds since 1970 of last garbage collection.
Total number of heap objects allocated, both live and gc-ed. Semantically a counter version for go_memstats_heap_objects gauge. Equals to /gc/heap/allocs:objects + /gc/heap/tiny/allocs:objects.
Number of bytes in use by mcache structures. Equals to /memory/classes/metadata/mcache/inuse:bytes.
Number of bytes used for mcache structures obtained from system. Equals to /memory/classes/metadata/mcache/inuse:bytes + /memory/classes/metadata/mcache/free:bytes.
Number of bytes in use by mspan structures. Equals to /memory/classes/metadata/mspan/inuse:bytes.
Number of bytes used for mspan structures obtained from system. Equals to /memory/classes/metadata/mspan/inuse:bytes + /memory/classes/metadata/mspan/free:bytes.
Number of heap bytes when next garbage collection will take place. Equals to /gc/heap/goal:bytes.
Number of bytes used for other system allocations. Equals to /memory/classes/other:bytes.
Number of bytes obtained from system for stack allocator in non-CGO environments. Equals to /memory/classes/heap/stacks:bytes.
Number of bytes obtained from system for stack allocator. Equals to /memory/classes/heap/stacks:bytes + /memory/classes/os-stacks:bytes.
Number of bytes obtained from system. Equals to /memory/classes/total:byte.
The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads
Number of OS threads created.