Add new tags for default rails metrics #36
Replies: 1 comment
-
I was able to get achieve this after adding the below function in my existing base controller. def append_info_to_payload(payload) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have configured yabeda-rails for my rails project and added the following contents in the initializers/prometheus.rb file
Yabeda.configure do counter : counter1, tags: [%s[tag_name]] end
For every API request, i am getting the below default rails metrics
rails_view_runtime_seconds_bucket{controller="controller_name",action="create",status="200",format="html",method="post",le="0.005"} 1.0
I want to add one more tag to the above metric (in fact for all the default rails metrics) which is coming from incoming request.
Ex: i want to add
request.subdomains
as an additional tag to the above default metrics.Please help me on how can i do that? Thanks
Beta Was this translation helpful? Give feedback.
All reactions