mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
config: disable envoy admin by default, expose stats via envoy route (#3684)
config: disable envoy admin by default, expose stats via envoy route (#3677) Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.com>
This commit is contained in:
parent
32eee8c74e
commit
f44c85880b
11 changed files with 199 additions and 46 deletions
|
@ -25,6 +25,9 @@ import (
|
|||
"github.com/pomerium/pomerium/pkg/metrics"
|
||||
)
|
||||
|
||||
// EnvoyMetricsPath is the path on the metrics listener that retrieves envoy metrics.
|
||||
const EnvoyMetricsPath = "/metrics/envoy"
|
||||
|
||||
// ScrapeEndpoint external endpoints to scrape and decorate
|
||||
type ScrapeEndpoint struct {
|
||||
// Name is the logical name of the endpoint
|
||||
|
@ -208,6 +211,7 @@ func ocExport(name string, exporter *ocprom.Exporter, r *http.Request, labels []
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func scrapeEndpoints(endpoints []ScrapeEndpoint, labels []*io_prometheus_client.LabelPair) []promProducerFn {
|
||||
out := make([]promProducerFn, 0, len(endpoints))
|
||||
for _, endpoint := range endpoints {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue