# filterAlertLabels

Canonical: https://docs.shumoku.dev/en/library/api/filterAlertLabels
Language: en

@shumoku/core · 0.4.0 · function

# filterAlertLabels

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/plugin-kit/alertmanager.ts#L42)

Drop Alertmanager-internal labels (\`\_\_name\_\_\`, other \`\_\_…\`).

```
filterAlertLabels(labels: Record<string, string>): Record<string, string>
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `labels` | `Record<string, string>` | No additional description. | `—` |

## Returns

```
Record<string, string>
```

[`libs/@shumoku/core/src/plugin-kit/alertmanager.ts:42`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/plugin-kit/alertmanager.ts#L42)
