ClickHouse/tests/queries/0_stateless/02267_output_format_prometheus.sql
2022-04-26 14:57:35 +00:00

8 lines
222 B
SQL

SELECT
'metric' || toString(number) as name,
number as value,
if(number % 2 == 0, 'info ' || toString(number), NULL) as help,
if(number % 3 == 0, 'counter', NULL) as type
FROM numbers(5)
FORMAT Prometheus