+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "formatLabels" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++ ## formatLabels() function ### formatLabels() function Serializes the given labels to a string. Signature ```typescript export declare function formatLabels(labels: Labels, defaultValue?: string): string; ``` Import ```typescript import { formatLabels } from '@grafana/data'; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | labels | Labels | | | defaultValue | string | | Returns: `string`