forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update .ebextensions (add Cloudwatch agent & AWS Inspector) (metabase…
…#14718) * Update .ebextensions to send memory usage to Cloudwatch and also install inspector agent to actively monitor threats. Added full Cloudwatch agent with metrics config, simplified config file. Fix metabase#9021 * Adding a few items to documentation * Apply suggestions from code review Co-authored-by: Jeff Bruemmer <[email protected]> * Add a few more changes to finish this PR Co-authored-by: Jeff Bruemmer <[email protected]>
- Loading branch information
1 parent
478ec73
commit ddfac7e
Showing
7 changed files
with
205 additions
and
52 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
134 changes: 134 additions & 0 deletions
134
...elease/src/release/elastic_beanstalk/.ebextensions/metabase_config/cloudwatch/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,134 @@ | ||
{ | ||
"agent": { | ||
"metrics_collection_interval": 60 | ||
}, | ||
"metrics": { | ||
"namespace": "Metabase", | ||
"metrics_collected": { | ||
"cpu": { | ||
"measurement": [ | ||
"time_active", | ||
"time_guest", | ||
"time_guest_nice", | ||
"time_idle", | ||
"time_iowait", | ||
"time_irq", | ||
"time_nice", | ||
"time_softirq", | ||
"time_steal", | ||
"time_system", | ||
"time_user", | ||
"usage_active", | ||
"usage_guest", | ||
"usage_guest_nice", | ||
"usage_idle", | ||
"usage_iowait", | ||
"usage_irq", | ||
"usage_nice", | ||
"usage_softirq", | ||
"usage_steal", | ||
"usage_system", | ||
"usage_user" | ||
], | ||
"totalcpu": false | ||
}, | ||
"disk": { | ||
"measurement": [ | ||
"free", | ||
"total", | ||
"used", | ||
"used_percent", | ||
"inodes_free", | ||
"inodes_used", | ||
"inodes_total" | ||
], | ||
"ignore_file_system_types": [ | ||
"sysfs", "devtmpfs" | ||
] }, | ||
"diskio": { | ||
"measurement": [ | ||
"reads", | ||
"writes", | ||
"read_bytes", | ||
"write_bytes", | ||
"read_time", | ||
"write_time", | ||
"io_time", | ||
"iops_in_progress" | ||
] | ||
}, | ||
"swap": { | ||
"measurement": [ | ||
"free", | ||
"used", | ||
"used_percent" | ||
] | ||
}, | ||
"mem": { | ||
"measurement": [ | ||
"active", | ||
"available", | ||
"available_percent", | ||
"buffered", | ||
"cached", | ||
"free", | ||
"inactive", | ||
"total", | ||
"used", | ||
"used_percent" | ||
] | ||
}, | ||
"net": { | ||
"measurement": [ | ||
"bytes_sent", | ||
"bytes_recv", | ||
"drop_in", | ||
"drop_out", | ||
"err_in", | ||
"err_out", | ||
"packets_sent", | ||
"packets_recv" | ||
] | ||
}, | ||
"netstat": { | ||
"measurement": [ | ||
"tcp_close", | ||
"tcp_close_wait", | ||
"tcp_closing", | ||
"tcp_established", | ||
"tcp_fin_wait1", | ||
"tcp_fin_wait2", | ||
"tcp_last_ack", | ||
"tcp_listen", | ||
"tcp_none", | ||
"tcp_syn_sent", | ||
"tcp_syn_recv", | ||
"tcp_time_wait", | ||
"udp_socket" | ||
] | ||
}, | ||
"processes": { | ||
"measurement": [ | ||
"blocked", | ||
"dead", | ||
"idle", | ||
"paging", | ||
"running", | ||
"sleeping", | ||
"stopped", | ||
"total", | ||
"total_threads", | ||
"wait", | ||
"zombies" | ||
] | ||
} | ||
}, | ||
"append_dimensions": { | ||
"ImageId": "${aws:ImageId}", | ||
"InstanceId": "${aws:InstanceId}", | ||
"InstanceType": "${aws:InstanceType}", | ||
"AutoScalingGroupName": "${aws:AutoScalingGroupName}" | ||
}, | ||
"aggregation_dimensions" : [["InstanceId"], ["InstanceType"], ["InstanceId","InstanceType"]] | ||
} | ||
} |
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