fix: Add loki readiness probe to CI
This commit is contained in:
parent
9520670d97
commit
5acf6a8bdc
8
.github/workflows/go-tests.yml
vendored
8
.github/workflows/go-tests.yml
vendored
|
@ -112,7 +112,13 @@ jobs:
|
|||
image: grafana/loki:2.8.0
|
||||
ports:
|
||||
- "3100:3100"
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
options: >-
|
||||
--name=loki1
|
||||
--health-cmd "curl -f http://localhost:3100/ready"
|
||||
--health-interval 30s
|
||||
--health-timeout 10s
|
||||
--health-retries 5
|
||||
--health-start-period 30s
|
||||
|
||||
steps:
|
||||
|
||||
|
|
|
@ -328,7 +328,7 @@ mode: tail
|
|||
source: loki
|
||||
url: http://127.0.0.1:3100
|
||||
query: >
|
||||
{server="demo"}
|
||||
{server="demo"}
|
||||
`,
|
||||
expectedErr: "",
|
||||
streamErr: "",
|
||||
|
|
|
@ -82,4 +82,3 @@ services:
|
|||
image: grafana/loki:2.8.0
|
||||
ports:
|
||||
- "3100:3100"
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
|
|
Loading…
Reference in a new issue