29. <source>
type norikra
norikra localhost:8571
<fetch>
method sweep
target metrics
tag query_name
tag_prefix norikra.query
interval 3s
</fetch>
</source>
<match norikra.query.*>
type mackerel
api_key xxxxxxxxxxxxxxxxxxxxxxxx=
service xxxxxxx
metrics_name ${[2]}.${out_key}
out_key_pattern .+
retry_limit 1
</match>
Group指定
30. query_name: api_http_status
SELECT
COUNT(1, status like "5%") AS count_5xx,
COUNT(1, status like "4%") AS count_4xx,
COUNT(1, status like "3%") AS count_3xx,
COUNT(1, status like "2%") AS count_2xx
FROM mercari_access_log.win:time_batch(1 min)