-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration to for prometheus exporter (#5385)
**Story card:** [sc-11693](https://app.shortcut.com/simpledotorg/story/11693/add-application-performance-monitoring) ## Because We are migrating our monitoring infrastructure from datadog to prometheus ## This addresses This adds necessary instrumentation to monitor the various processes using prometheus. ## Test instructions - Start rails server - In another terminal run `bundle exec prometheus-exporter` - Visit the dashboard to send some requests to the server - `curl http://localhost:9394/metrics`
- Loading branch information
1 parent
7c9b7ca
commit a2cbf0f
Showing
5 changed files
with
21 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
unless Rails.env.test? | ||
require "prometheus_exporter/middleware" | ||
|
||
# This reports stats per request like HTTP status and timings | ||
Rails.application.middleware.unshift PrometheusExporter::Middleware | ||
end |
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