You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 8, 2023. It is now read-only.
Note that the source passed to the API is identical to the value specified in the increment call. Even if you had configured a global source value (either via the LIBRATO_SOURCE environment variable or the librato.yml configuration file) the global source value is ignored completely.
If you were to configure a global source value of myapp and install the librato-rack-source_prefix gem, the same code shown above would result in the following data being POSTed:
If you are using the librato-rails gem, add this line to your librato.yml:
source_prefix: one.prefix.to.rule.them.all
Rack Applications
If your application is using a non-Rails, Rack framework you'll need to add the following line to your app in order to enable the source prefixing behavior:
You'll want to add this line wherever you've configured your Librato::Rack middleware.
Rails
If you are using Rails, source prefixing will be enabled automatically as a result of adding the librato-rack-source_prefix gem to your Gemfile. No additional configuration is required.
Copyright
Copyright (c) 2015 Librato Inc. See LICENSE for details.
About
Automatic source prefixing for measurements logged through librato-rack