Skip to content

Expected to find an array at path ... but found 'map[interface {}]interface {}' #21

@FulcrumTeam

Description

@FulcrumTeam

Hello, getting an error (the title) when trying to replace (add) what I think is an array element.

Here is the manifest block I'm trying to match on:

       - job_name: bosh
          scrape_interval: 2m
          scrape_timeout: 1m
          static_configs:
          **- targets:
            - localhost:9190**

my replace statement:

- type: replace
path: /.../job_name=bosh/static_configs/targets/-
value: "192.168.164.26:9190"

How can I add another value to targets?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions