# cscli metrics

## cscli metrics[​](#cscli-metrics "Direct link to cscli metrics")

Display crowdsec prometheus metrics.

### Synopsis[​](#synopsis "Direct link to Synopsis")

Fetch metrics from a Local API server and display them

TEXTCOPY

```
cscli metrics [flags]
```

### Examples[​](#examples "Direct link to Examples")

TEXTCOPY

```
# Show all Metrics, skip empty tables (same as "cscli metrics show")
cscli metrics

# Show only some metrics, connect to a different url
cscli metrics --url http://lapi.local:6060/metrics show acquisition parsers

# List available metric types
cscli metrics list
```

### Options[​](#options "Direct link to Options")

TEXTCOPY

```
  -h, --help         help for metrics
      --no-unit      Show the real number instead of formatted with units
  -u, --url string   Prometheus url (http://<ip>:<port>/metrics)
```

### Options inherited from parent commands[​](#options-inherited-from-parent-commands "Direct link to Options inherited from parent commands")

TEXTCOPY

```
      --color string    Output color: yes, no, auto (default "auto")
  -c, --config string   path to crowdsec config file (default "/etc/crowdsec/config.yaml")
      --debug           Set logging to debug
      --error           Set logging to error
      --info            Set logging to info
  -o, --output string   Output format: human, json, raw
      --trace           Set logging to trace
      --warning         Set logging to warning
```

### SEE ALSO[​](#see-also "Direct link to SEE ALSO")

* [cscli](https://docs.crowdsec.net/docs/next/cscli/.md) - cscli allows you to manage crowdsec
* [cscli metrics list](https://docs.crowdsec.net/docs/next/cscli/cscli_metrics_list.md) - List available types of metrics.
* [cscli metrics show](https://docs.crowdsec.net/docs/next/cscli/cscli_metrics_show.md) - Display all or part of the available metrics.
