# Observability

Observability is key in distributed system. It helps to understand and track the performance of a system. GoAkt offers out of the box features that can help track, monitor and measure the performance of a GoAkt based system.

**Metrics**

GoAkt comes bundled with the following metrics:

**Actor System Metric**

The **`Metric`** method on the [actor system](https://github.com/Tochemey/goakt/blob/main/actor/actor_system.go#L74) will provide the following counters:

* Total Number of actors in the system at a given point time
* Total Number of deadletters
* The number of seconds since the actor system started

**PID metric**

The **`Metric`** method on the [PID](https://github.com/Tochemey/goakt/blob/main/actor/pid.go#L226) will provide the following counters:

* Total Number of children at a given point in time
* Total Number of messages stashed at a given point in time
* Total Number of Restarts at a given point in time
* Last message received processing duration in milliseconds
* Total Number of deadletters
* The number of seconds since the actor started

**Logging**

A simple logging interface to allow custom logger to be implemented instead of using the default logger.
