feat: message broker monitors in the editor and API docs
Adds editor fields and translations for MQTT, Kafka and RabbitMQ, and documents DBConfig and BrokerConfig, which the API reference lacked. Compose's checks profile and CI gain Kafka and RabbitMQ. Closes #94 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
8ca56635cd
commit
302514dc35
11 files changed
+997
-624
No files matched your search
@@ -625,6 +625,14 @@ func fillForm(f *web.MonitorForm, m store.Monitor) {
|
||||
cfg, secrets := publicMonitorConfig(m.Config)
|
||||
_ = json.Unmarshal(cfg, &c)
|
||||
f.DB = web.DBForm{User: c.User, Database: c.Database, TLS: c.TLS, Query: c.Query, Expect: c.Expect, PasswordSet: slices.Contains(secrets, "password")}
|
||||
case check.MQTT, check.Kafka, check.RabbitMQ:
|
||||
var c check.BrokerConfig
|
||||
cfg, secrets := publicMonitorConfig(m.Config)
|
||||
_ = json.Unmarshal(cfg, &c)
|
||||
f.Broker = web.BrokerForm{
|
||||
User: c.User, TLS: c.TLS, Topic: c.Topic, Expect: c.Expect, Message: c.Message, SASL: c.SASL,
|
||||
Vhost: c.Vhost, Queue: c.Queue, PasswordSet: slices.Contains(secrets, "password"),
|
||||
}
|
||||
case check.Alertmanager:
|
||||
var c check.AlertmanagerConfig
|
||||
_ = json.Unmarshal(m.Config, &c)
|
||||
|
||||
Reference in new issue
Block a user