Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLI] Provide ability to independently set data_stream.namespace from --space #749

Open
BenB196 opened this issue Apr 25, 2023 · 0 comments

Comments

@BenB196
Copy link

BenB196 commented Apr 25, 2023

Today, when you use the CLI and set the --space value, it will set the value for data_stream.namespace as well. You should be allowed to independently set the value of data_stream.namespace.

If you attempt something like:

heartbeat.monitors:
  - type: icmp
    data_stream:
      namespace: "public.default.development"
    name: google.com
    id: google.com
    enabled: true
    hosts:
      - "google.com."
    schedule: "@every 20s"

And run the command

npx @elastic/synthetics push --yes --id icmp-development --space observability --private-locations 'S0000 - Development'

You get the error:

✖ Error
   > Unsupported Heartbeat option: monitor(tstrtr01.heroes.bayada.com)
       The following Heartbeat options are not supported for icmp project monitors in 8.6.2: data_stream.namespace. You monitor was not created or updated.

Use Case

If you want to have a number of different monitors in the same space, but want to have different retention times on them, you need to use something like data_stream.namespace to differentiate the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant