robusta icon indicating copy to clipboard operation
robusta copied to clipboard

Ask Holmes Button Not Working in Mattermost

Open yudeye opened this issue 1 year ago • 7 comments

I’ve noticed that the "Ask Holmes" button currently seems to be supported only in Slack, but it doesn't appear to work in Mattermost. One of the most exciting features of Robusta for me is the ability to click the "Ask Holmes" button in Slack and receive AI-driven analysis directly in the interface. However, this button does not show up in Mattermost.

Could you please clarify if the "Ask Holmes" button is only supported in Slack? If so, is there a plan to support Mattermost in the future, or is there a configuration issue preventing it from appearing?

Here are some screenshots and helm configurations: Mattermost: image Slack: image

  sinksConfig:
    - mattermost_sink:
        name: personal_mattermost_sink
        url: https://mattermost.xxx.xxx
        token: xxxxxxx
        token_id: xxxxxx
        channel: robusta
    - slack_sink:
        name: main_slack_sink
        slack_channel: robusta_no_ui
        api_key: xxxxxx

Robusta Application version: 0.20.0 Mattermost Version: 10.2.0

Thank you for your help!

yudeye avatar Jan 02 '25 05:01 yudeye

Hi 👋, thanks for opening an issue! Please note, it may take some time for us to respond, but we'll get back to you as soon as we can!

  • 💬 Slack Community: Join Robusta team and other contributors on Slack here.
  • 📖 Docs: Find our documentation here.
  • 🎥 YouTube Channel: Watch our videos here.

github-actions[bot] avatar Jan 02 '25 05:01 github-actions[bot]

Hi, @yudeye

Can I ask how to successfully use the "Ask Holmes" button in Slack? The "Ask Holmes" button appears, but clicking on it doesn't respond.

CleanShot 2025-01-05 at 18 03 35@2x

sinksConfig:
- slack_sink:
    name: main_slack_sink
    slack_channel: robusta-notifications
    api_key: xxxx

enableHolmesGPT: true
holmes:
  additionalEnvVars:
  - name: MODEL
    value: gpt-4o
  - name: OPENAI_API_KEY
    valueFrom:
      secretKeyRef:
        name: holmes-secrets
        key: openAiKey

cooper-car avatar Jan 05 '25 10:01 cooper-car

hi @cooper-car

After clicking the Ask Holmes button, do you see any error on the logs of the robusta-runner or robusta-holmes pods? If so, can you share it?

arikalon1 avatar Jan 05 '25 11:01 arikalon1

Hey @yudeye

The Ask Holmes functionality, is based on Callbacks, which is currently supported only on Slack.

arikalon1 avatar Jan 05 '25 11:01 arikalon1

hi @cooper-car

After clicking the Ask Holmes button, do you see any error on the logs of the robusta-runner or robusta-holmes pods? If so, can you share it?

  1. no error in robusta-holmes pod
  2. robusta-runner has logs, see below
2025-01-05 14:26:27.029 INFO     could not fetch logs from container: crashpod
2025-01-05 14:26:27.031 WARNING  cannot convert block of type <class 'robusta.core.reporting.blocks.EmptyFileBlock'> to slack format block: hidden=False html_class=None metadata={'is_empty': True, 'remarks': 'Logs unavailable for container: crashpod'} filename='crashpod-6cd99d8d89-ttggt.log'

cooper-car avatar Jan 05 '25 14:01 cooper-car

thanks @cooper-car

this doesn't look like Holmes related errors. Can you join our slack channel? (https://bit.ly/robusta-slack) I think it'll be easier to help you troubleshoot the issue

arikalon1 avatar Jan 05 '25 14:01 arikalon1

Hi, @yudeye

Can I ask how to successfully use the "Ask Holmes" button in Slack? The "Ask Holmes" button appears, but clicking on it doesn't respond.

CleanShot 2025-01-05 at 18 03 35@2x

sinksConfig:
- slack_sink:
    name: main_slack_sink
    slack_channel: robusta-notifications
    api_key: xxxx

enableHolmesGPT: true
holmes:
  additionalEnvVars:
  - name: MODEL
    value: gpt-4o
  - name: OPENAI_API_KEY
    valueFrom:
      secretKeyRef:
        name: holmes-secrets
        key: openAiKey

I have the same issue with the "Ask Holmes" button. It doesn't respond when clicked, and I haven't seen any related logs.

yudeye avatar Jan 06 '25 13:01 yudeye