> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> timeSeriesMetricFamilies returns the metric families table used by table `db_name.time_series_table` whose table engine is the TimeSeries engine.

# timeSeriesMetricFamilies

`timeSeriesMetricFamilies(db_name.time_series_table)` - Returns the [metric families](/docs/reference/engines/table-engines/integrations/time-series#metric-families-table) table
used by table `db_name.time_series_table` whose table engine is the [TimeSeries](/docs/reference/engines/table-engines/integrations/time-series) engine:

```sql theme={null}
CREATE TABLE db_name.time_series_table ENGINE=TimeSeries METRIC FAMILIES metric_families_table
```

The function also works if the *metric families* table is inner:

```sql theme={null}
CREATE TABLE db_name.time_series_table ENGINE=TimeSeries METRIC FAMILIES INNER UUID '01234567-89ab-cdef-0123-456789abcdef'
```

The following queries are equivalent:

```sql theme={null}
SELECT * FROM timeSeriesMetricFamilies(db_name.time_series_table);
SELECT * FROM timeSeriesMetricFamilies('db_name.time_series_table');
SELECT * FROM timeSeriesMetricFamilies('db_name', 'time_series_table');
```

<Note>
  The function `timeSeriesMetricFamilies` has an alias `timeSeriesMetrics` which is kept for backwards compatibility.
</Note>
