Metrics exporter - add /metrics suffix

This commit is contained in:
felipecruz91 2024-05-20 08:56:55 +02:00
parent c2b9ea32ac
commit 8840381e16
No known key found for this signature in database
GPG Key ID: 2E32AACFC4A2D510
1 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ replace `ORG` with your organization name:
```yaml ```yaml
scrape_configs: scrape_configs:
- job_name: <ORG> - job_name: <ORG>
metrics_path: /v1/exporter/org/<ORG> metrics_path: /v1/exporter/org/<ORG>/metrics
scheme: https scheme: https
static_configs: static_configs:
- targets: - targets:
@ -122,7 +122,7 @@ alongside Grafana with a pre-configured dashboard to visualize the vulnerability
scrape_timeout: 40s scrape_timeout: 40s
scrape_configs: scrape_configs:
- job_name: Docker Scout policy - job_name: Docker Scout policy
metrics_path: /v1/exporter/org/<ORG> metrics_path: /v1/exporter/org/<ORG>/metrics
scheme: https scheme: https
static_configs: static_configs:
- targets: - targets:
@ -198,7 +198,7 @@ The following example shows a Datadog configuration that:
```yaml ```yaml
instances: instances:
- openmetrics_endpoint: "https://api.scout.docker.com/v1/exporter/org/dockerscoutpolicy" - openmetrics_endpoint: "https://api.scout.docker.com/v1/exporter/org/dockerscoutpolicy/metrics"
namespace: "scout-metrics-exporter" namespace: "scout-metrics-exporter"
metrics: metrics:
- scout_* - scout_*
@ -276,7 +276,7 @@ and a Datadog site.
```yaml {hl_lines=2} ```yaml {hl_lines=2}
instances: instances:
- openmetrics_endpoint: "https://api.scout.docker.com/v1/exporter/org/<<ORG>>" - openmetrics_endpoint: "https://api.scout.docker.com/v1/exporter/org/<<ORG>>/metrics"
namespace: "scout-metrics-exporter" namespace: "scout-metrics-exporter"
# ... # ...
``` ```