Skip to content

[2.x] Influx generating invalid/broken config for vCenter #26912

@RyanHakurei

Description

@RyanHakurei

Steps to reproduce:

  1. Open the Create Configuration wizard
  2. Choose vCenter
  3. Edit the default config for server and auth info

Expected behaviour:
A valid config file

Actual behaviour:
There's an errant dash that breaks the config. This dash exists in the default config file that is generated when you go through the wizard.

Environment info:

Docker

Config:

-# Read metrics from one or many vCenters
[[inputs.vsphere]]
  ## List of vCenter URLs to be monitored. These three lines must be uncommented
  ## and edited for the plugin to work.
  vcenters = [ "https://vcenter.local/sdk" ]
  username = "[email protected]"
  password = "secret"

The errant dash on that first like is what breaks the config, and it exists by default in the config file. Manually removing it fixes the file.

Logs:

There are no logs, but the context can be found here

Metadata

Metadata

Labels

area/2.xOSS 2.0 related issues and PRsarea/ui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions