Skip to content

Commit

Permalink
feat(compose): add fallback scrape protocol for Scaphandre service
Browse files Browse the repository at this point in the history
This update modifies the Prometheus scrape config for the Scaphandre service
to use the fallback scrape protocol

* Resolving an issue where Prometheus `latest` was unable to scrape Scaphandre
  service due to invalid `Content-Type` header in response
* Switch Prometheus to use `latest`

Signed-off-by: vprashar2929 <[email protected]>
  • Loading branch information
vprashar2929 committed Dec 1, 2024
1 parent a447077 commit 7783d61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions manifests/compose/dev/prometheus/scrape-configs/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ scrape_configs:
- job_name: scaphandre
static_configs:
- targets: [scaphandre:8080]
scheme: http
fallback_scrape_protocol: PrometheusText1.0.0

- job_name: node-exporter
static_configs:
Expand Down
2 changes: 1 addition & 1 deletion manifests/compose/monitoring/prometheus/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM quay.io/prometheus/prometheus:v2.55.0
FROM quay.io/prometheus/prometheus:latest

COPY /prometheus.yml /etc/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ scrape_configs:
- job_name: scaphandre
static_configs:
- targets: [scaphandre:8080]
scheme: http
fallback_scrape_protocol: PrometheusText1.0.0

- job_name: metal
static_configs:
Expand Down

0 comments on commit 7783d61

Please sign in to comment.