-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding properties parsing from procstat to get memory_swap metrics (#…
- Loading branch information
Showing
8 changed files
with
203 additions
and
44 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
29 changes: 29 additions & 0 deletions
29
translator/tocwconfig/sampleConfig/procstat_memory_swap_config.conf
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,29 @@ | ||
[agent] | ||
collection_jitter = "0s" | ||
debug = false | ||
flush_interval = "1s" | ||
flush_jitter = "0s" | ||
hostname = "" | ||
interval = "60s" | ||
logfile = "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log" | ||
logtarget = "lumberjack" | ||
metric_batch_size = 1000 | ||
metric_buffer_limit = 10000 | ||
omit_hostname = false | ||
precision = "" | ||
quiet = false | ||
round_interval = false | ||
|
||
[inputs] | ||
|
||
[[inputs.procstat]] | ||
alias = "793254176" | ||
fieldpass = ["memory_swap"] | ||
pattern = "amazon-cloudwatch-agent" | ||
pid_finder = "native" | ||
properties = ["mmap"] | ||
tagexclude = ["user", "result"] | ||
|
||
[outputs] | ||
|
||
[[outputs.cloudwatch]] |
14 changes: 14 additions & 0 deletions
14
translator/tocwconfig/sampleConfig/procstat_memory_swap_config.json
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,14 @@ | ||
{ | ||
"metrics": { | ||
"metrics_collected": { | ||
"procstat": [ | ||
{ | ||
"pattern": "amazon-cloudwatch-agent", | ||
"measurement": [ | ||
"memory_swap" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
translator/tocwconfig/sampleConfig/procstat_memory_swap_config.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,55 @@ | ||
exporters: | ||
awscloudwatch: | ||
force_flush_interval: 1m0s | ||
max_datums_per_call: 1000 | ||
max_values_per_datum: 150 | ||
middleware: agenthealth/metrics | ||
namespace: CWAgent | ||
profile: AmazonCloudWatchAgent | ||
region: us-west-2 | ||
resource_to_telemetry_conversion: | ||
enabled: true | ||
shared_credential_file: fake-path | ||
extensions: | ||
agenthealth/metrics: | ||
is_usage_data_enabled: true | ||
stats: | ||
operations: | ||
- PutMetricData | ||
usage_flags: | ||
mode: OP | ||
region_type: ACJ | ||
receivers: | ||
telegraf_procstat/793254176: | ||
alias_name: amazon-cloudwatch-agent | ||
collection_interval: 1m0s | ||
initial_delay: 1s | ||
timeout: 0s | ||
service: | ||
extensions: | ||
- agenthealth/metrics | ||
pipelines: | ||
metrics/host: | ||
exporters: | ||
- awscloudwatch | ||
processors: [] | ||
receivers: | ||
- telegraf_procstat/793254176 | ||
telemetry: | ||
logs: | ||
development: false | ||
disable_caller: false | ||
disable_stacktrace: false | ||
encoding: console | ||
level: info | ||
output_paths: | ||
- /opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log | ||
sampling: | ||
enabled: true | ||
initial: 2 | ||
thereafter: 500 | ||
tick: 10s | ||
metrics: | ||
address: "" | ||
level: None | ||
traces: {} |
Oops, something went wrong.