Skip to content

Commit

Permalink
yaml formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
davegarvey committed Jan 15, 2025
1 parent 0a987ca commit 7984eee
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion deployments/healthcheck-blackbox/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:
command:
- "--config.file=/etc/blackbox_exporter/config.yml"
networks:
- tyk
- tyk

volumes:
grafana-data:
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: 1

providers:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: 1

datasources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
modules:
http_200_json_status:
prober: http
Expand All @@ -10,7 +11,7 @@ modules:
fail_if_body_not_matches_regexp:
- '"status"\s*:\s*"(ok|pass)"' # Accept "ok" or "pass", so can be used across Gateway, Dashboard and MDCB
tls_config:
insecure_skip_verify: true # Disables certificate validation for self-signed cert used by Tyk Gateway 2
insecure_skip_verify: true # Disables certificate validation for self-signed cert used by Tyk Gateway 2
http_200:
prober: http
timeout: 5s
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
global:
scrape_interval: 15s
evaluation_interval: 15s
Expand All @@ -6,31 +7,31 @@ rule_files:
- /etc/prometheus/alert.rules

scrape_configs:
- job_name: 'tyk_component_status'
- job_name: "tyk_component_status"
metrics_path: /probe
params:
module: [http_200_json_status]

Check failure on line 13 in deployments/healthcheck-blackbox/volumes/prometheus/prometheus.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

13:16 [brackets] too few spaces inside brackets

Check failure on line 13 in deployments/healthcheck-blackbox/volumes/prometheus/prometheus.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

13:36 [brackets] too few spaces inside brackets
static_configs:
- targets:
- http://tyk-gateway:8080/hello
- https://tyk-gateway-2:8080/hello
- http://tyk-worker-gateway:8080/hello
- http://tyk-dashboard:3000/hello
- http://tyk-mdcb:8181/readiness
- http://tyk-gateway:8080/hello
- https://tyk-gateway-2:8080/hello
- http://tyk-worker-gateway:8080/hello
- http://tyk-dashboard:3000/hello
- http://tyk-mdcb:8181/readiness
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter:9115
- job_name: 'api_status'
- job_name: "api_status"
metrics_path: /probe
params:
module: [http_200]
static_configs:
- targets:
- http://tyk-gateway:8080/basic-open-api/get
- http://tyk-gateway:8080/basic-open-api/get
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
Expand Down

0 comments on commit 7984eee

Please sign in to comment.