mashiike / shimesaba

Mackerel SLI/SLO tools, Tools that run periodically (e.g., every 10 minutes)
MIT License
11 stars 3 forks source link

Fails on API request failed: create report faileds: failed to fetch alerts: get monitor for alert `****`: unknown monitor type: query #136

Open heleeen opened 5 months ago

heleeen commented 5 months ago

Thank you for resolving the issue #122 šŸ˜Š I also encountered an error while using shimesaba. The error message is as follows:

2024/04/01 01:56:11 [error] service level objective[id=******]: create report faileds: failed to fetch alerts: get monitor for alert `******`: unknown monitor type: query

I think it's because Mackerel now supports labeled metrics alerts. https://mackerel.io/ja/blog/entry/2024/03/22/190000 (Jepanese only)

Iā€™m happy when shimesaba should support the query monitor format, but since query monitor is in beta, I would like to hear your opinion on how it should be supported.

Environment

Command

$ shimesaba \
-config "./config.yml" \
-mackerel-apikey "******" \
--debug
mashiike commented 5 months ago

I will respond immediately.

Essential support requires a contribution to https://github.com/mackerelio/mackerel-client-go, so please wait a little longer.

The API seems to be compatible, so I think I'll create a PR that the SDK will support.

heleeen commented 5 months ago

Thank you for your response! I'm sorry for taking your time šŸ˜£