diff --git a/build/.goreleaser.yml b/build/.goreleaser.yml index c931c77..8cfeb83 100644 --- a/build/.goreleaser.yml +++ b/build/.goreleaser.yml @@ -49,6 +49,8 @@ nfpms: contents: - src: "mysql-config.yml.sample" dst: "/etc/newrelic-infra/integrations.d/mysql-config.yml.sample" + - src: "mysql-log.yml.sample" + dst: "/etc/newrelic-infra/logging.d/mysql-log.yml.sample" - src: "CHANGELOG.md" dst: "/usr/share/doc/nri-mysql/CHANGELOG.md" - src: "README.md" @@ -92,6 +94,6 @@ archives: strip_parent: true format: zip -# we use custom publisher for fixing archives and signing them +# we use a custom publisher for fixing archives and signing them release: disable: true diff --git a/mysql-log.yml.example b/mysql-log.yml.example new file mode 100644 index 0000000..ad4ce70 --- /dev/null +++ b/mysql-log.yml.example @@ -0,0 +1,12 @@ +############################################################################### +# This sample file will forward mysql error logs to NR once # +# it is renamed to mysql-log.yml # +# On Linux systems no restart is needed after it is renamed. # +# Source: mysql error log file # +# Available customization parameters: attributes, max_line_kb, pattern # +############################################################################### +logs: + - name: "mysqllog" + file: /var/log/mysql/error.log + attributes: + logtype: mysql-error