If cloud/availability_zone in metric logs is set to number metadata view in kibana is failing

In metricbeat settings I am setting cloud/availability_zone to numbers. It is working in main views of metrics in kibana except this one:

https://localhost/kibana/app/metrics/detail/host/<host-name>

You can navigate to it from APM overview page or opening Metadata tab in Metrics/Inventory

Error:

Uncaught (in promise) Error: Failed to validate: 
  in info/cloud/availability_zone: 1 does not match expected type string
    createPlainError https://localhost/kibana/44040/bundles/plugin/infra/8.0.0/infra.plugin.js:2
    throwErrors https://localhost/kibana/44040/bundles/plugin/infra/8.0.0/infra.plugin.js:2
    fold https://localhost/kibana/44040/bundles/plugin/infra/8.0.0/infra.plugin.js:2
    pipe https://localhost/kibana/44040/bundles/plugin/infra/8.0.0/infra.plugin.js:2
    <anonymous> https://localhost/kibana/44040/bundles/plugin/infra/8.0.0/infra.chunk.8.js:92
    onResolve https://localhost/kibana/44040/bundles/plugin/infra/8.0.0/infra.chunk.4.js:3
    promise https://localhost/kibana/44040/bundles/plugin/infra/8.0.0/infra.chunk.0.js:3
    promise callback*useTrackedPromise/execute</< https://localhost/kibana/44040/bundles/plugin/infra/8.0.0/infra.chunk.0.js:3
    useMetadata https://localhost/kibana/44040/bundles/plugin/infra/8.0.0/infra.chunk.8.js:92
    useMetadata https://localhost/kibana/44040/bundles/plugin/infra/8.0.0/infra.chunk.8.js:92
    wa https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    Wl https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    unstable_runWithPriority https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398
    Kr https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    jl https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    Cl https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    Qr https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    unstable_runWithPriority https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398
    Kr https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    Qr https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    Jr https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    wl https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    vc https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
    render https://localhost/kibana/44040/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390

ELK v7.15