forked from stuartnelson3/passenger_exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Intellection/overhaul
Perform an initial overhaul
- Loading branch information
Showing
12 changed files
with
414 additions
and
412 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
passenger_exporter | ||
passenger_exporter_nginx | ||
passenger_exporter_nginx-*.tar.gz | ||
passenger-exporter |
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,16 @@ | ||
# Changelog | ||
|
||
## 0.5.0 | ||
|
||
### Improvements | ||
* Added home page with link to metrics. | ||
* Added new fields to output parsed from passenger status command. | ||
* Removed mentions of nginx as this exporter can support other integration modes. | ||
|
||
### Breaking Changes | ||
* Changed metrics prefix from `passenger_nginx` to `passenger`. This affects _all_ passenger metrics. | ||
* Renamed metrics: | ||
* Changed `passenger_top_level_queue` to `passenger_top_level_request_queue`. | ||
* Changed `passenger_app_queue` to `passenger_app_request_queue`. | ||
* Changed unit of passenger command timeout duration to seconds. | ||
* Removed deprecated `code_revision` field from output parsed from passenger status command. |
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 @@ | ||
* @itskingori @tsu-shiuan @zacblazic |
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,40 @@ | ||
# Passenger Exporter | ||
|
||
Prometheus exporter for [Phusion Passenger](https://www.phusionpassenger.com) metrics. | ||
|
||
## Flags | ||
|
||
``` | ||
-log.format value | ||
If set use a syslog logger or JSON logging. | ||
Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true. | ||
Defaults to stderr. | ||
-log.level value | ||
Only log messages with the given severity or above. | ||
Valid levels: [debug, info, warn, error, fatal]. (default info) | ||
-passenger.command string | ||
Passenger command for querying passenger status. | ||
(default "passenger-status --show=xml") | ||
-passenger.pid-file string | ||
Optional path to a file containing the passenger PID for additional metrics. | ||
-passenger.command.timeout duration | ||
Timeout for passenger.command. (default 500ms) | ||
-web.listen-address string | ||
Address to listen on for web interface and telemetry. (default ":9149") | ||
-web.telemetry-path string | ||
Path under which to expose metrics. (default "/metrics") | ||
``` | ||
|
||
|
||
## Running Tests | ||
|
||
Tests can be run with: | ||
``` | ||
go test . | ||
``` | ||
|
||
Additionally, the test/scrape_output.txt can be regenerated by passing the | ||
`--golden` flag: | ||
``` | ||
go test -v . --golden | ||
``` |
Oops, something went wrong.