Thread
#prefect-community
    m

    Marie

    1 year ago
    Hi Everyone, Quick question on alerting, is there a way to set up alerts to receive emails or slack messages when agents are unhealthy? or if no run has completed successfully in the last say 24hours? Thank you!
    Kevin Kho

    Kevin Kho

    1 year ago
    Hey @Marie, we do have Agent automations you can set up in Cloud to get an alert is an agent is unhealthy
    m

    Marie

    1 year ago
    It looks like I have to create an automation for every agent and then provide the config id when I start the agent.
    Do you plan to support alerting for certain agents based on their labels?
    Something like, if any agent with this label is unhealthy then alert
    Kevin Kho

    Kevin Kho

    1 year ago
    I know what you mean, but I think the config has to appear on agent start. We can open a feature request for this
    @Marvin open “Configure Agent Automation Based on Labels”
    Marvin

    Marvin

    1 year ago
    m

    Marie

    1 year ago
    Thank you!
    @Kevin Kho i just tried it and it looks like the labels are not taken into account anymore when I start the agent with
    --agent-config-id
    Are those intended to be mutually exclusive?
    Kevin Kho

    Kevin Kho

    1 year ago
    I dont think these should be related. You’re seeing a label is not respected?
    m

    Marie

    1 year ago
    Never mind, I made an error when restarting the agent, sorry!