# Functions
AddPolicyCountCallback sets the function to call when exporting the policy count metric.
AddRedisMetrics registers a metrics handler against a redis Client's PoolStats() method.
GRPCClientInterceptor creates a UnaryClientInterceptor which updates the RPC context with metric tag metadata
TODO: This handler will NOT currently propagate B3 headers to upstream servers.
HTTPMetricsHandler creates a metrics middleware for incoming HTTP requests.
HTTPMetricsRoundTripper creates a metrics tracking tripper for outbound HTTP Requests.
NewGRPCServerMetricsHandler creates a new GRPCServerStatsHandler for a pomerium service.
NewProcessCollector creates a new ProcessCollector.
PrometheusHandler creates an exporter that exports stats to Prometheus and returns a handler suitable for exporting metrics.
RecordAutocertCertificates records the next timestamp an autocert certificate will expire.
RecordAutocertRenewal records an autocert renewal.
RecordIdentityManagerLastRefresh records that the identity manager refreshed users and groups.
RecordIdentityManagerSessionRefresh updates timestamp and counter for session refresh.
RecordIdentityManagerUserGroupRefresh updates timestamp and counter for user group update.
RecordIdentityManagerUserRefresh updates timestamp and counter for user refresh.
RecordStorageOperation records the duration of a storage operation with the corresponding tags.
RegisterInfoMetrics registers non-view based metrics registry globally for export.
SetBuildInfo records the pomerium build info.
SetConfigInfo records the status, checksum and timestamp of a configuration reload.
SetDBConfigInfo records status, databroker version and error count while parsing the configuration from a databroker.
SetDBConfigRejected records that a certain databroker config version has been rejected.
# Variables
ConfigDBErrorsView contains list of errors encountered while parsing this databroker config.
ConfigDBVersionView contains last databroker config version that was processed.
ConfigLastReloadSuccessView contains the result of the last configuration reload, labeled by service.
ConfigLastReloadView contains the timestamp the configuration was last reloaded, labeled by service.
Default distributions used by views in this package.
Default distributions used by views in this package.
Default distributions used by views in this package.
DefaultViews are a set of default views to view HTTP and GRPC metrics.
GRPCClientRequestCountView is an OpenCensus view which tracks GRPC Client requests by pomerium service, target host, grpc service, grpc method, and status.
GRPCClientRequestDurationView is an OpenCensus view which tracks GRPC Client request duration by pomerium service, target host, grpc service, grpc method, and status.
GRPCClientRequestSizeView is an OpenCensus view which tracks GRPC Client request size by pomerium service, target host, grpc service, grpc method, and status.
GRPCClientResponseSizeView is an OpenCensus view which tracks GRPC Client response size by pomerium service, target host, grpc service, grpc method, and status.
GRPCClientViews contains opencensus views for GRPC Client metrics.
GRPCServerRequestCountView is an OpenCensus view which counts GRPC Server requests by pomerium service, grpc service, grpc method, and status.
GRPCServerRequestDurationView is an OpenCensus view which tracks GRPC Server request duration by pomerium service, grpc service, grpc method, and status.
GRPCServerRequestSizeView is an OpenCensus view which tracks GRPC Server request size by pomerium service, grpc service, grpc method, and status.
GRPCServerResponseSizeView is an OpenCensus view which tracks GRPC Server response size by pomerium service, grpc service, grpc method, and status.
GRPCServerViews contains opencensus views for GRPC Server metrics.
HTTPClientRequestCountView is an OpenCensus View that tracks HTTP client requests by pomerium service, destination, host, method and status.
HTTPClientRequestDurationView is an OpenCensus view that tracks HTTP client request duration by pomerium service, destination, host, method and status.
HTTPClientRequestSizeView is an OpenCensus view that tracks HTTP client request size by pomerium service, destination, host and method.
HTTPClientResponseSizeView is an OpenCensus view that tracks HTTP client esponse size by pomerium service, destination, host, method and status.
HTTPClientViews contains opencensus views for HTTP Client metrics.
HTTPServerRequestCountView is an OpenCensus View that tracks HTTP server requests by pomerium service, host, method and status.
HTTPServerRequestDurationView is an OpenCensus view that tracks HTTP server request duration by pomerium service, host, method and status.
HTTPServerRequestSizeView is an OpenCensus view that tracks HTTP server request size by pomerium service, host and method.
HTTPServerResponseSizeView is an OpenCensus view that tracks HTTP server response size by pomerium service, host, method and status.
HTTPServerViews contains opencensus views for HTTP Server metrics.
IdentityManagerLastRefreshView contains the timestamp the identity manager was last refreshed, labeled by service.
IdentityManagerLastSessionRefreshErrorTimestampView contains session refresh errors counter.
IdentityManagerLastSessionRefreshErrorView contains user refresh errors counter.
IdentityManagerLastSessionRefreshSuccessTimestampView contains successful session refresh counter.
IdentityManagerLastSessionRefreshSuccessView contains successful user refresh counter.
IdentityManagerLastUserGroupRefreshErrorTimestampView contains user group refresh errors counter.
IdentityManagerLastUserGroupRefreshErrorView contains user group refresh errors counter.
IdentityManagerLastUserGroupRefreshSuccessTimestampView contains successful user group refresh counter.
IdentityManagerLastUserGroupRefreshSuccessView contains successful user group refresh counter.
IdentityManagerLastUserRefreshErrorTimestampView contains user refresh errors counter.
IdentityManagerLastUserRefreshErrorView contains user refresh errors counter.
IdentityManagerLastUserRefreshSuccessTimestampView contains successful user refresh counter.
IdentityManagerLastUserRefreshSuccessView contains successful user refresh counter.
InfoViews contains opencensus views for informational metrics about pomerium itself.
StorageOperationDurationView is an OpenCensus view that tracks storage client latency by operation, result and backend.
StorageViews contains opencensus views for storage system metrics.
The following tags are applied to stats recorded by this package.
The following tags are applied to stats recorded by this package.
The following tags are applied to stats recorded by this package.
The following tags are applied to stats recorded by this package.
The following tags are applied to stats recorded by this package.
The following tags are applied to stats recorded by this package.
The following tags are applied to stats recorded by this package.
The following tags are applied to stats recorded by this package.
The following tags are applied to stats recorded by this package.
# Structs
GRPCServerMetricsHandler implements a telemetry tagRPCHandler methods for metrics.
A ProcessCollector collects stats about a process.
ScrapeEndpoint external endpoints to scrape and decorate.
StorageOperationTags contains tags to apply when recording a storage operation.