Adding labels is not working with @elastic/synthetics

Hi

We are using @elastic/synthetics to push monitors to Kibana. On UI I see an option to add Labels and apm service name for the monitors, but when using Journeys, MonitorConfig is not supporting to add labels, but it does support adding tags, which we are using

We control the monitor creation through CI/CD pipelines and editing monitors from UI is disabled.

Even in Kibana API (Update Monitor API | Kibana Guide [8.17] | Elastic) I do not see the option to add Labels.

Kindly let me know if there is a different way to achieve this

Thanks

@kotha which synthetics version are you using?

in MonitorConfig we have bit difference naming convention. It's primarily to be consistent with fields hearbeat api.

you can add those via fields

Same issue reported recently.
Labels work only with Lightweight monitors at this moment (v8.17.2)

Thank you all for the suggestion. Started using fields in both Journey and Lightweight monitors and they are working as expected.