-
Notifications
You must be signed in to change notification settings - Fork 8
Your CloudWatch Queries & Dashboards #3
-
👋 Welcome!
How are you using Lambdakiq's CloudWatch Embedded Metrics? Please share your Metric of Insights snippets.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 1 reply
-
I don't use it a lot. Only to know if a Lambda takes a long time to run.
Is there a way to disable de CloudWatch events? They make CloudWatch service cost a lot (~ 60ドル) compare to Lambda service (~ 0,05ドル) in production.
Beta Was this translation helpful? Give feedback.
All reactions
-
Yup: https://github.com/customink/lambdakiq#rails-configs you can set the metrics logger. For example:
config.lambdakiq.metrics_logger = Logger.new("/dev/null")
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Hi @metaskills!
I'm so sorry to bring this topic back after so long. I tried to add the following:
In production.rb
file
logger = Logger.new("/dev/null") config.logger = logger config.log_level = :info config.lograge.enabled = true config.lograge.formatter = Lograge::Formatters::Json.new config.lograge.custom_payload do |controller| { requestid: controller.request.request_id } end config.lambdakiq.metrics_logger = Logger.new("/dev/null")
In app.rb
file:
Lambdakiq.config.metrics_logger = Logger.new("/dev/null")
CloudWatch metrics are still sent to AWS.
Do you know how to stop CloudWatch metrics?
Beta Was this translation helpful? Give feedback.