mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Add path prefix to readiness check
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
a5b811627f
commit
3905902758
|
@ -7,6 +7,7 @@ import { Progress, Stack, Title } from "@mantine/core";
|
||||||
import { useSuspenseQuery } from "@tanstack/react-query";
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
||||||
|
|
||||||
const ReadinessLoader: FC = () => {
|
const ReadinessLoader: FC = () => {
|
||||||
|
const { pathPrefix } = useSettings();
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
// Query key is incremented every second to retrigger the status fetching.
|
// Query key is incremented every second to retrigger the status fetching.
|
||||||
|
@ -20,7 +21,7 @@ const ReadinessLoader: FC = () => {
|
||||||
gcTime: 0,
|
gcTime: 0,
|
||||||
queryFn: async ({ signal }: { signal: AbortSignal }) => {
|
queryFn: async ({ signal }: { signal: AbortSignal }) => {
|
||||||
try {
|
try {
|
||||||
const res = await fetch("/-/ready", {
|
const res = await fetch(`${pathPrefix}/-/ready`, {
|
||||||
cache: "no-store",
|
cache: "no-store",
|
||||||
credentials: "same-origin",
|
credentials: "same-origin",
|
||||||
signal,
|
signal,
|
||||||
|
|
Loading…
Reference in a new issue