influx-cli
influx-cli copied to clipboard
Add hint to `influx write` if CLI arg isn't valid LP
influx write supports reading data as a positional arg, or from a file. It's easy for users to get mixed up and accidentally pass a filename as a positional arg, leading to error messages like:
Error: failed to write data: 400 Bad Request: unable to parse 'latest-observations.lp': missing fields
It'd be nice to add some sort of hint about missing the --file flag to the error message, if we can figure out a heuristic for detecting this type of error.