Skip to content

Commit 8f637d1

Browse files
authored
Mysql log commit (#97)
1 parent 267847f commit 8f637d1

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

build/.goreleaser.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ nfpms:
4949
contents:
5050
- src: "mysql-config.yml.sample"
5151
dst: "/etc/newrelic-infra/integrations.d/mysql-config.yml.sample"
52+
- src: "mysql-log.yml.sample"
53+
dst: "/etc/newrelic-infra/logging.d/mysql-log.yml.sample"
5254
- src: "CHANGELOG.md"
5355
dst: "/usr/share/doc/nri-mysql/CHANGELOG.md"
5456
- src: "README.md"
@@ -92,6 +94,6 @@ archives:
9294
strip_parent: true
9395
format: zip
9496

95-
# we use custom publisher for fixing archives and signing them
97+
# we use a custom publisher for fixing archives and signing them
9698
release:
9799
disable: true

mysql-log.yml.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
###############################################################################
2+
# This sample file will forward mysql error logs to NR once #
3+
# it is renamed to mysql-log.yml #
4+
# On Linux systems no restart is needed after it is renamed. #
5+
# Source: mysql error log file #
6+
# Available customization parameters: attributes, max_line_kb, pattern #
7+
###############################################################################
8+
logs:
9+
- name: "mysqllog"
10+
file: /var/log/mysql/error.log
11+
attributes:
12+
logtype: mysql-error

0 commit comments

Comments
 (0)