Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetricLabelRejected = "Rejected" MetricsLabelVerbGet = "Get" MetricsLabelVerbList = "List" MetricsPort = "8082" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyMetrics ¶
type ProxyMetrics struct { // RegServProxyAPIHistogramVec measures the time taken by proxy before forwarding the request RegServProxyAPIHistogramVec *prometheus.HistogramVec // RegServWorkspaceHistogramVec measures the response time for either response or error from proxy when there is no routing RegServWorkspaceHistogramVec *prometheus.HistogramVec Reg *prometheus.Registry }
func NewProxyMetrics ¶
func NewProxyMetrics(reg *prometheus.Registry) *ProxyMetrics
func (*ProxyMetrics) StartMetricsServer ¶
func (p *ProxyMetrics) StartMetricsServer() *http.Server
Click to show internal directories.
Click to hide internal directories.