Skip to content

Commit

Permalink
migrate metrics path to /metrics
Browse files Browse the repository at this point in the history
This resolves grafana#3597
  • Loading branch information
bck01215 committed Sep 25, 2024
1 parent 0ef6bb7 commit 79ab355
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ We prepared multiple environments:
scrape_configs:
- job_name: prometheus
metrics_path: /metrics/
metrics_path: /metrics
authorization:
credentials: my_random_prometheus_secret
static_configs:
Expand Down
2 changes: 1 addition & 1 deletion dev/helm-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ prometheus:
scrape_interval: 10s
extraScrapeConfigs: |
- job_name: 'oncall-exporter'
metrics_path: /metrics/
metrics_path: /metrics
static_configs:
- targets:
- oncall-dev-engine.default.svc.cluster.local:8080
2 changes: 1 addition & 1 deletion engine/apps/metrics_exporter/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
from .views import MetricsExporterView

urlpatterns = [
path("", MetricsExporterView.as_view(), name="metrics-exporter"),
path(r"^/?$", MetricsExporterView.as_view(), name="metrics-exporter"),
]
2 changes: 1 addition & 1 deletion engine/engine/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

if settings.FEATURE_PROMETHEUS_EXPORTER_ENABLED:
urlpatterns += [
path("metrics/", include("apps.metrics_exporter.urls")),
path("metrics", include("apps.metrics_exporter.urls")),
]

if settings.FEATURE_TELEGRAM_INTEGRATION_ENABLED:
Expand Down
2 changes: 1 addition & 1 deletion helm/oncall/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ prometheus:
enabled: false
# extraScrapeConfigs: |
# - job_name: 'oncall-exporter'
# metrics_path: /metrics/
# metrics_path: /metrics
# static_configs:
# - targets:
# - oncall-dev-engine.default.svc.cluster.local:8080

0 comments on commit 79ab355

Please sign in to comment.