autoinstall includes the option to report to a webhook:
reporting:
hook:
type: webhook
endpoint: http://example.com/endpoint/path
consumer_key: "ck_foo"
consumer_secret: "cs_foo"
token_key: "tk_foo"
token_secret: "tk_secret"
level: INFO
I tried to configure this, but to no avail. Since I'm not really familiar with webhooks, I first tried to get any info at all and set up this config:
reporting:
hook:
type: webhook
endpoint: localhost:8000
I then set up netcat on my local server like this:
nc -l localhost 8000
But on this socket I get nothing at all. I'm not very sure how to consume this service, but I'd expect to see any data at least.
I setup an http-echo-server and added the
reporting
section to a config. When the webhook reporting works, it appears to send one HTTP request for each log message generated.For example, this line in the file
/var/log/installer/subiquity-server-debug.log
corresponds with this HTTP request
I tested originally with
subiquity
20.04.3
and the HTTP server received no data, just like you observed.I added the configuration to have
subiquity
update itself. This resulted in usingsubiquity
21.04.2
and the HTTP server did receive messages.Here is a partial config of what was tested
Other Notes
INFO
, the webhook is still sent messages forDEBUG
.