Skip to content

Commit

Permalink
fix: Update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Sep 27, 2024
1 parent 49078df commit 7404516
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions gateway/traefik.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ http:
- agents-api-strip-prefix-api
service: service-agents-api
priority: 2

grafana:
entryPoints:
- web
rule: Path(`/grafana{path:.*}`)
middlewares:
- grafana-strip-prefix-api
service: grafana-service
priority: 3

middlewares:
corsHeaders:
Expand All @@ -62,6 +71,12 @@ http:
prefixes:
- /api
forceSlash: false

grafana-strip-prefix-api:
stripprefix:
prefixes:
- /grafana
forceSlash: false

api-jwt-auth:
plugin:
Expand All @@ -85,6 +100,12 @@ http:
passHostHeader: false
servers:
- url: $AGENTS_API_URL

grafana-service:
loadBalancer:
passHostHeader: true
servers:
- url: $GRAFANA_URL

experimental:
localPlugins:
Expand Down
2 changes: 1 addition & 1 deletion prometheus/prometheus_data/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ scrape_configs:
scrape_interval: 10s
metrics_path: /metrics
static_configs:
- targets: ['agents-api:8080']
- targets: ['agents-api:8000']

0 comments on commit 7404516

Please sign in to comment.