Skip to content

Commit

Permalink
azure-monitor: move plugin requirements into the block definition
Browse files Browse the repository at this point in the history
Signed-off-by: László Várady <[email protected]>
  • Loading branch information
MrAnno committed Feb 28, 2025
1 parent db28a36 commit cfadc4c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scl/azure/azure-monitor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
#
#############################################################################

@requires http "The azure-monitor() driver depends on the AxoSyslog http module, please install the axosyslog-mod-http (Debian & derivatives) or the axosyslog-http (RHEL & co) package"
@requires cloud_auth "The azure-monitor() driver depends on the AxoSyslog Cloud Auth module, please install the axosyslog-mod-cloud-auth (Debian & derivatives) or the axosyslog-cloud-auth (RHEL & co) package"

block destination azure_monitor(
dce_uri()
dcr_id()
Expand All @@ -33,6 +30,10 @@ block destination azure_monitor(
auth()
...
) {

@requires http "The azure-monitor() driver depends on the AxoSyslog http module, please install the axosyslog-mod-http (Debian & derivatives) or the axosyslog-http (RHEL & co) package"
@requires cloud_auth "The azure-monitor() driver depends on the AxoSyslog Cloud Auth module, please install the axosyslog-mod-cloud-auth (Debian & derivatives) or the axosyslog-cloud-auth (RHEL & co) package"

http(
method("POST")
url("`dce_uri`/dataCollectionRules/`dcr_id`/streams/`stream_name`?api-version=2023-01-01")
Expand Down

0 comments on commit cfadc4c

Please sign in to comment.