# How to add labels in standalone Elastic Agent synthetics input configuration

**URL:** https://discuss.elastic.co/t/how-to-add-labels-in-standalone-elastic-agent-synthetics-input-configuration/379663
**Category:** Elastic Agent
**Created:** [July 1, 2025, 10:26am UTC](https://discuss.elastic.co/t/how-to-add-labels-in-standalone-elastic-agent-synthetics-input-configuration/379663 "2025-07-01T10:26:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sbisschop](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@sbisschop](https://discuss.elastic.co/u/sbisschop)
#### Post date: [July 1, 2025, 10:26am UTC](https://discuss.elastic.co/t/how-to-add-labels-in-standalone-elastic-agent-synthetics-input-configuration/379663/1 "2025-07-01T10:26:48Z")

</div>

I want to add labels to a standalone elastic agent input configuration. This works with a regular system/metrics input, but doesn't seem to work for a synthetics/monitor configuration.

Already read about some differences for synthetics, where it seems you need to use "add\_fields" instead of "add\_labels". But still no luck with this yet.

> [@Adding labels is not working with @elastic/synthetics](https://discuss.elastic.co/t/adding-labels-is-not-working-with-elastic-synthetics/374535):
>
> 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](https://www.elastic.co/guide/en/kibana/current/update-monitor-api.html)) I do not see the option to add Labels. Kindly let me know if th…

Example config using "add\_fields":

```auto
inputs:
  - type: synthetics/http
    id: app/synthetics-http
    use_output: synthetics
    data_stream.namespace: default
    processors:
      add_fields:
        target: labels
        fields:
          customer: X
    streams:
      - type: http
        name: app-http
        data_stream:
          dataset: http
          type: synthetics
        hosts: []
        schedule: '@every 30s'
        timeout: 5s

```

---

<div class="post-metadata">

### Author: ![Guillaume\_Dufrenne](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guillaume_dufrenne/32/103641_2.png) [@Guillaume\_Dufrenne](https://discuss.elastic.co/u/Guillaume_Dufrenne)
#### Post date: [July 17, 2025, 1:56pm UTC](https://discuss.elastic.co/t/how-to-add-labels-in-standalone-elastic-agent-synthetics-input-configuration/379663/2 "2025-07-17T13:56:23Z")

</div>

Like this

```auto
inputs:
  - type: synthetics/http
    id: app/synthetics-http
    use_output: synthetics
    data_stream.namespace: default
    streams:
      - type: http
        name: app-http
        data_stream:
          dataset: http
          type: synthetics
        hosts: []
        schedule: '@every 30s'
        timeout: 5s
        fields:
          labels:
            customer: x

```
