influxdata / influxdata/kapacitor

New line in strings

Open
#1,926 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Hi!

I'm seeing that new lines using `\n` is not supported at the moment.

We are trying to emit an alert adding a new line and the only way to do it is just adding a new line in the middle of the variable, leaving the code unaligned and breaking the color formatting in Chronograf :/

Is there any way of adding a "new line character" on strings?

Contributor guide

Open the contributing guide

Research direction

No files or tests are named in the issue. Start by reproducing the alert-string case and tracing how Kapacitor parses or emits string escape sequences. Done means a \n in a string produces a newline in the emitted alert without requiring a literal line break or disrupting formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.