> For the complete documentation index, see [llms.txt](https://docs.seldon.ai/mlserver/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seldon.ai/mlserver/api-reference/pythonapi/metrics.md).

# Metrics

## MetricsServer

### Methods

### on\_worker\_stop()

```python
on_worker_stop(worker: Worker) -> None
```

### start()

```python
start()
```

### stop()

```python
stop(sig: Optional[int] = None)
```

## configure\_metrics()

```python
configure_metrics(settings: Settings)
```

*No description available.*

## log()

```python
log(metrics)
```

Logs a new set of metric values. Each kwarg of this method will be treated as a separate metric / value pair. If any of the metrics does not exist, a new one will be created with a default description.

## register()

```python
register(name: str, description: str) -> Histogram
```

Registers a new metric with its description. If the metric already exists, it will just return the existing one.
