Metrics and attributes collected by the Splunk Distribution of OTel Go 🔗
The Splunk Distribution of OpenTelemetry Go collects runtime and custom metrics. To learn about the different metric types, see Metric types.
For custom metrics instrumentation and instrument types, see Create custom metrics.
Runtime metrics 🔗
The following runtime metrics are automatically collected and exported:
Metric |
Type |
Description |
---|---|---|
|
Gauge |
Number of cgo calls made by the current process. |
|
Cumulative counter |
Number of completed garbage collection cycles |
|
Cumulative counter (histogram) |
Amount of nanoseconds in GC stop-the-world pauses |
|
Cumulative counter |
Cumulative nanoseconds in GC stop-the-world pauses since the program started |
|
Gauge |
Number of goroutines that currently exist |
|
Cumulative counter |
Number of pointer lookups performed by the runtime |
|
Gauge |
Bytes of allocated heap objects |
|
Gauge |
Bytes in idle (unused) spans |
|
Gauge |
Bytes in in-use spans |
|
Gauge |
Number of allocated heap objects |
|
Gauge |
Bytes of idle spans whose physical memory has been returned to the OS |
|
Gauge |
Bytes of heap memory obtained from the OS |
|
Gauge |
Number of live objects is the number of cumulative Mallocs - Frees |
|
Cumulative counter |
Milliseconds since application was initialized |
Connection pool metrics 🔗
The Splunk Distribution of OpenTelemetry Go instruments several connection pool implementations:
splunksql
splunkmysql
splunkpgx
splunkgorm
splunksqlx
splunkpq
Each of the connection pools reports a subset of the following metrics:
Metric |
Type |
Description |
---|---|---|
|
Gauge |
Number of connections that are currently in the state described by the |
|
Gauge |
Maximum number of open connections allowed. |
|
Timer |
Time it took to obtain an open connection from the pool. |
The following attributes are available:
Tag |
Value |
---|---|
|
Name of the connection pool. Applies to all connection pool metrics. |
|
State of the connection. Can be |