Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Your CloudWatch Queries & Dashboards #3

metaskills started this conversation in Show and tell
Discussion options

👋 Welcome!

How are you using Lambdakiq's CloudWatch Embedded Metrics? Please share your Metric of Insights snippets.

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

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.

You must be logged in to vote
0 replies
Comment options

Yup: https://github.com/customink/lambdakiq#rails-configs you can set the metrics logger. For example:

config.lambdakiq.metrics_logger = Logger.new("/dev/null")
You must be logged in to vote
1 reply
Comment options

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /