MQTT alert support for cloud

Suggested template:

Problem/Question

How can i publish to MQTT topics as an alert?

Relevant docs you followed/actions you took to solve the issue

I am able to do mosquitto_pub using Netdata agent custom alerts, but how can i set this up for centralized cloud notification as I have over 200 nodes.

What I expected to happen

Is there any way i can use the built in MQTT for Netdata or can a parent node send for all child nodes?

Hello @nigel_vdh :waving_hand: ,

Have you looked into the Webhook Cloud notification method?

You could set that up to the space where your parent node lives and build an application exposing an endpoint to receive those and publish them as MQTT messages.

Hope this was helpful,
Costas

Hi @papazach,

Thank you for the prompt response, unfortunately I do not have an endpoint for a https webhook. I would like to use a direct MQTT publishing method if possible.

I appreciate the suggestion, but that would be more of a last resort for me.

Best regards,
Nigel

You’re welcome @nigel_vdh ,

You could also run health (alerts) on your parent Agent (for the children streaming to it as well) and continue using the mechanism you are already have in place.

Have you tried that and faced any issues?

Best,
Costas

Hi @papazach,

Yes it does work when using parent-children streaming but I would need to configure this for all the nodes.
Will there be a cloud MQTT integration in the future? Or a custom plugin add on for netdata?

Thank you,
Nigel

Oh right ok I understand indeed configuring this for all nodes would be a pain.

Perhaps you could take advantage of Netdata Cloud’s Dynamic Configuration Manager feature to submit Configurations to multiple nodes at once, have you checked that for your use-case?

Apart from that, I’m not aware of any MQTT integration coming up in the near future but I will definitely forward this to our Product team. Usually the need for an notification method integration that is missing gets covered by the custom webhook but of course that always requires custom implementation that has its own pros and cons :slight_smile:

Best,
Costas

1 Like