-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update snap to 3.2.0.742 and event-collector for logsv2 (AO-16825) (#25)
* Update snap to 3.2.0.742 and event-collector for logsv2 (AO-16825)
- Loading branch information
1 parent
f1d987c
commit 061acd6
Showing
10 changed files
with
248 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ bases: | |
|
||
images: | ||
- name: solarwinds/solarwinds-snap-agent-docker | ||
newTag: 3.4.0-3.1.1.717 | ||
newTag: 4.0.0-3.2.0.742 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ bases: | |
|
||
images: | ||
- name: solarwinds/solarwinds-snap-agent-docker | ||
newTag: 3.4.0-3.1.1.717 | ||
newTag: 4.0.0-3.2.0.742 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ bases: | |
|
||
images: | ||
- name: solarwinds/solarwinds-snap-agent-docker | ||
newTag: 3.4.0-3.1.1.717 | ||
newTag: 4.0.0-3.2.0.742 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
collector: | ||
kubernetes: | ||
all: | ||
incluster: true | ||
kubeconfigpath: "" | ||
interval: "60s" | ||
|
||
events: | | ||
# Embedded YAML (as a multiline string literal) | ||
filters: | ||
- namespace: default | ||
type: normal | ||
grpc_timeout: 30 | ||
|
||
load: | ||
plugin: snap-plugin-collector-aokubernetes | ||
task: task-aokubernetes.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
v2: | ||
collector: | ||
logs: | ||
all: | ||
|
||
sources: | ||
## Define common settings for Loggly or Papertrail. | ||
common: | ||
|
||
## Maximum line length to be written at once (in utf-8 characters) | ||
## 0 means no limit | ||
## 1024 is the default | ||
#max_line_length: 1024 | ||
|
||
## Tail and send logs from this host to Loggly or Papertrail. | ||
## Loggly and Papertrail are also from the SolarWinds DevOps Cloud Product Family Suite. | ||
logging_service: | ||
|
||
## Override the hostname used for logs reported by this agent. Defaults to the OS-provided hostname. | ||
#hostname: "myhost" | ||
|
||
timeouts: | ||
|
||
## A timeout for connecting to logs-accepting API | ||
#connect: 30s | ||
|
||
## A timeout for writing to logs-accepting API | ||
#write: 30s | ||
|
||
## Sign up for a Loggly account at: https://www.loggly.com | ||
loggly: | ||
|
||
## Loggly API token and host | ||
token: "LOGGLY_TOKEN | ||
host: "logs-01.loggly.com" | ||
|
||
## Loggly API port and protocol | ||
## use 6514 with TLS or 514 with TCP | ||
port: 6514 | ||
protocol: tls | ||
|
||
## Path to Loggly public CA certificate. See https://www.loggly.com/docs/rsyslog-tls-configuration/ for reference. | ||
## Uncomment this line if you want to use custom host certificate store. | ||
# ca_certificate_path: /path/to/your/certificate | ||
|
||
## Sign up for a Papertrail account at: https://papertrailapp.com | ||
#papertrail: | ||
## Papertrail API token | ||
#token: "PAPERTRAIL_TOKEN" | ||
|
||
## Papertrail host and port details: change this to YOUR papertrail host. | ||
#host: "HOST.papertrailapp.com" | ||
#port: 12345 | ||
#protocol: tls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
version: 1 | ||
|
||
schedule: | ||
type: streaming | ||
|
||
deadline: "55s" | ||
|
||
workflow: | ||
collect: | ||
|
||
config: | ||
/kubernetes: | ||
MaxCollectDuration: "2s" | ||
MaxMetricsBuffer: 250 | ||
|
||
metrics: | ||
/kubernetes/events/count: {} | ||
/kubernetes/pod/*/*/*/status/phase/Running: {} | ||
publish: | ||
- plugin_name: publisher-appoptics | ||
config: | ||
period: 60 | ||
floor_seconds: 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
version: 2 | ||
|
||
schedule: | ||
type: cron | ||
interval: "0 * * * * *" | ||
|
||
plugins: | ||
- plugin_name: logs | ||
|
||
metrics: | ||
- /logs/lines_total | ||
- /logs/lines_forwarded | ||
- /logs/bytes_forwarded | ||
- /logs/lines_skipped | ||
- /logs/lines_failed | ||
- /logs/bytes_failed | ||
- /logs/lines_succeeded | ||
- /logs/bytes_succeeded | ||
- /logs/attempts_total | ||
- /logs/failed_attempts_total | ||
|
||
config: | ||
## Define sources from which logs will be read. | ||
sources: | ||
|
||
## Define files from which logs will be read and sent to the Loggly or Papertrail. | ||
log_files: | ||
|
||
## An interval for looking for new files matching given pattern(s) | ||
#new_file_check_interval: 30s | ||
|
||
## An array of files or filename patterns to watch. | ||
## | ||
## NOTE: Be careful when attempting to handle snapteld logs | ||
## as those might also contain log entries of logs collector | ||
## to avoid infinite recurrence effect you should apply exclude pattern below by adding | ||
## ".*self-skip-logs-collector.*" | ||
file_paths: | ||
- Path: /var/log/SolarWinds/Snap/events.log | ||
|
||
# - Path: /var/log/*.log | ||
# - Path: /var/log/httpd/access_log | ||
# Tag: HTTPD Access log | ||
|
||
## Provide one or more regular expressions to prevent certain files from being matched. | ||
#exclude_files_patterns: | ||
# - \.\d$ | ||
# - \.bz2 | ||
# - \.gz | ||
|
||
## There may be certain log messages that you do not want to be sent. | ||
## These may be repetitive log lines that are "noise" that you might | ||
## not be able to filter out easily from the respective application. | ||
## To filter these lines, use exclude_patterns with an array or regexes. | ||
exclude_lines_patterns: | ||
- ".*self-skip-logs-collector.*" | ||
|
||
publish: | ||
- plugin_name: publisher-appoptics |