mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 03:35:52 +08:00
fix(ff): alert creation disabled for non metric alerts (#7561)
This commit is contained in:
parent
c269c8c6b8
commit
1c43655336
21
ee/query-service/Dockerfile
Normal file
21
ee/query-service/Dockerfile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
FROM alpine:3.20.3
|
||||||
|
LABEL maintainer="signoz"
|
||||||
|
WORKDIR /root
|
||||||
|
|
||||||
|
ARG OS="linux"
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
RUN apk update && \
|
||||||
|
apk add ca-certificates && \
|
||||||
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
|
||||||
|
COPY ./target/${OS}-${TARGETARCH}/signoz /root/signoz
|
||||||
|
COPY ./conf/prometheus.yml /root/config/prometheus.yml
|
||||||
|
COPY ./templates/email /root/templates
|
||||||
|
COPY frontend/build/ /etc/signoz/web/
|
||||||
|
|
||||||
|
RUN chmod 755 /root /root/signoz
|
||||||
|
|
||||||
|
ENTRYPOINT ["./signoz"]
|
||||||
|
CMD ["-config", "/root/config/prometheus.yml"]
|
@ -684,10 +684,6 @@ function FormAlertRules({
|
|||||||
|
|
||||||
const isAlertNameMissing = !formInstance.getFieldValue('alert');
|
const isAlertNameMissing = !formInstance.getFieldValue('alert');
|
||||||
|
|
||||||
const isAlertAvailableToSave =
|
|
||||||
currentQuery.queryType === EQueryType.QUERY_BUILDER &&
|
|
||||||
alertType !== AlertTypes.METRICS_BASED_ALERT;
|
|
||||||
|
|
||||||
const onUnitChangeHandler = (value: string): void => {
|
const onUnitChangeHandler = (value: string): void => {
|
||||||
setYAxisUnit(value);
|
setYAxisUnit(value);
|
||||||
// reset target unit
|
// reset target unit
|
||||||
@ -860,7 +856,6 @@ function FormAlertRules({
|
|||||||
icon={<SaveOutlined />}
|
icon={<SaveOutlined />}
|
||||||
disabled={
|
disabled={
|
||||||
isAlertNameMissing ||
|
isAlertNameMissing ||
|
||||||
isAlertAvailableToSave ||
|
|
||||||
!isChannelConfigurationValid ||
|
!isChannelConfigurationValid ||
|
||||||
queryStatus === 'error'
|
queryStatus === 'error'
|
||||||
}
|
}
|
||||||
|
21
pkg/query-service/Dockerfile
Normal file
21
pkg/query-service/Dockerfile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
FROM alpine:3.20.3
|
||||||
|
LABEL maintainer="signoz"
|
||||||
|
WORKDIR /root
|
||||||
|
|
||||||
|
ARG OS="linux"
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
RUN apk update && \
|
||||||
|
apk add ca-certificates && \
|
||||||
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
|
||||||
|
COPY ./target/${OS}-${TARGETARCH}/signoz-community /root/signoz
|
||||||
|
COPY ./conf/prometheus.yml /root/config/prometheus.yml
|
||||||
|
COPY ./templates/email /root/templates
|
||||||
|
COPY frontend/build/ /etc/signoz/web/
|
||||||
|
|
||||||
|
RUN chmod 755 /root /root/signoz
|
||||||
|
|
||||||
|
ENTRYPOINT ["./signoz"]
|
||||||
|
CMD ["-config", "/root/config/prometheus.yml"]
|
Loading…
x
Reference in New Issue
Block a user