-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add metrics for "$upstream_connect_time" (#258)
* Add upstream_connect metrics * Extract metrics stuff into own package * Restructure remaining packages
- Loading branch information
1 parent
f308c93
commit 171d51e
Showing
37 changed files
with
233 additions
and
164 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,18 @@ | ||
package metrics | ||
|
||
import "github.com/prometheus/client_golang/prometheus" | ||
|
||
// Collection is a struct containing pointers to all metrics that should be | ||
// exposed to Prometheus | ||
type Collection struct { | ||
CountTotal *prometheus.CounterVec | ||
ResponseBytesTotal *prometheus.CounterVec | ||
RequestBytesTotal *prometheus.CounterVec | ||
UpstreamSeconds *prometheus.SummaryVec | ||
UpstreamSecondsHist *prometheus.HistogramVec | ||
UpstreamConnectSeconds *prometheus.SummaryVec | ||
UpstreamConnectSecondsHist *prometheus.HistogramVec | ||
ResponseSeconds *prometheus.SummaryVec | ||
ResponseSecondsHist *prometheus.HistogramVec | ||
ParseErrorsTotal prometheus.Counter | ||
} |
Oops, something went wrong.