简体   繁体   English

松弛Sensu警报被切断

[英]Slack Sensu alert getting cut off

I am attempting to get some custom info in my Sensu Slack alerts via this plugin but it seems that adding the message_prefix is causing weirdness in the slack message formatting. 我正在尝试通过此插件在我的Sensu Slack警报中获取一些自定义信息,但似乎添加message_prefix会导致Slack消息格式怪异。

For example, I would like the entire message with extra message prefix stuff to be posted but the last line is getting cut off and the "Show more..." appears on the same line as the last part of the message 例如,我希望发布带有额外消息前缀内容的整个消息,但最后一行被截断,并且“显示更多...”与消息的最后一部分显示在同一行上

The message formats correctly if I don't include message_prefix , but doesn't include the additional info so I would like to find out a way to get everything working with the prefix. 如果我不包括message_prefix ,但消息格式正确,但是不包括其他信息,因此我想找到一种使所有内容都使用前缀的方法。

图片

Here is an example of what I would like the message to look like by default. 这是我希望该消息默认显示的示例。

在此处输入图片说明

Does anybody know what I can do to fix this? 有人知道我该怎么做才能解决此问题吗?

I work for Slack and there's a few things that could be causing this. 我为Slack工作,这可能是由一些因素引起的。 If you could write into https://slack.com/help/contact and give your permission to look at your team's Sensu messages we'll take look at the messages the plugin is posting. 如果您可以写信给https://slack.com/help/contact并允许您查看团队的Sensu消息,我们将查看插件发布的消息。 With this information we'll be able quickly narrow down the cause and hopefully fix this issue. 有了这些信息,我们将能够迅速找出原因,并有望解决此问题。

Afterwards, with your permission of course, we're happy to share what we learn back here for future Slack and Sensu users. 此后,在您当然的允许下,我们很高兴为将来的Slack和Sensu用户分享我们在这里学到的知识。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM