Skip to content

Commit

Permalink
Merge branch 'develop' into feat/logs
Browse files Browse the repository at this point in the history
  • Loading branch information
makeavish authored Aug 9, 2022
2 parents 143a5b6 + 9de99d1 commit fda6e44
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
10 changes: 5 additions & 5 deletions deploy/docker-swarm/clickhouse-setup/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
retries: 3

alertmanager:
image: signoz/alertmanager:0.23.0-0.1
image: signoz/alertmanager:0.23.0-0.2
volumes:
- ./data/alertmanager:/data
command:
Expand All @@ -40,7 +40,7 @@ services:
condition: on-failure

query-service:
image: signoz/query-service:0.10.0
image: signoz/query-service:0.10.1
command: ["-config=/root/config/prometheus.yml"]
# ports:
# - "6060:6060" # pprof port
Expand Down Expand Up @@ -68,7 +68,7 @@ services:
- clickhouse

frontend:
image: signoz/frontend:0.10.0
image: signoz/frontend:0.10.1
deploy:
restart_policy:
condition: on-failure
Expand All @@ -81,7 +81,7 @@ services:
- ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf

otel-collector:
image: signoz/otelcontribcol:0.45.1-1.1
image: signoz/otelcontribcol:0.45.1-1.3
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
Expand Down Expand Up @@ -111,7 +111,7 @@ services:
- clickhouse

otel-collector-metrics:
image: signoz/otelcontribcol:0.45.1-1.1
image: signoz/otelcontribcol:0.45.1-1.3
command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
Expand Down
10 changes: 5 additions & 5 deletions deploy/docker/clickhouse-setup/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
retries: 3

alertmanager:
image: signoz/alertmanager:0.23.0-0.1
image: signoz/alertmanager:0.23.0-0.2
volumes:
- ./data/alertmanager:/data
depends_on:
Expand All @@ -39,7 +39,7 @@ services:
# Notes for Maintainers/Contributors who will change Line Numbers of Frontend & Query-Section. Please Update Line Numbers in `./scripts/commentLinesForSetup.sh` & `./CONTRIBUTING.md`

query-service:
image: signoz/query-service:0.10.0
image: signoz/query-service:0.10.1
container_name: query-service
command: ["-config=/root/config/prometheus.yml"]
# ports:
Expand All @@ -66,7 +66,7 @@ services:
condition: service_healthy

frontend:
image: signoz/frontend:0.10.0
image: signoz/frontend:0.10.1
container_name: frontend
restart: on-failure
depends_on:
Expand All @@ -78,7 +78,7 @@ services:
- ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf

otel-collector:
image: signoz/otelcontribcol:0.45.1-1.1
image: signoz/otelcontribcol:0.45.1-1.3
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
Expand All @@ -103,7 +103,7 @@ services:
condition: service_healthy

otel-collector-metrics:
image: signoz/otelcontribcol:0.45.1-1.1
image: signoz/otelcontribcol:0.45.1-1.3
command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/container/FormAlertRules/RuleOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ function RuleOptions({
...alertDef,
condition: {
...alertDef.condition,
op: alertDef.condition?.op || defaultCompareOp,
matchType: alertDef.condition?.matchType || defaultMatchType,
target: value as number,
},
});
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/getMinMax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ const GetMinMax = (
minTime = minTimeAgo;
} else if (interval === '1day') {
// one day = 24*60(min)
const minTimeAgo = getMinAgo({ minutes: 26 * 60 }).getTime();
const minTimeAgo = getMinAgo({ minutes: 24 * 60 }).getTime();
minTime = minTimeAgo;
} else if (interval === '1week') {
// one week = one day * 7
const minTimeAgo = getMinAgo({ minutes: 26 * 60 * 7 }).getTime();
const minTimeAgo = getMinAgo({ minutes: 24 * 60 * 7 }).getTime();
minTime = minTimeAgo;
} else if (['4hr', '6hr'].includes(interval)) {
const h = parseInt(interval.replace('hr', ''), 10);
Expand Down
6 changes: 3 additions & 3 deletions pkg/query-service/tests/test-deploy/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- "8123:8123"

alertmanager:
image: signoz/alertmanager:0.23.0-0.1
image: signoz/alertmanager:0.23.0-0.2
depends_on:
- query-service
restart: on-failure
Expand Down Expand Up @@ -59,7 +59,7 @@ services:
condition: service_healthy

otel-collector:
image: signoz/otelcontribcol:0.45.1-1.1
image: signoz/otelcontribcol:0.45.1-1.3
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
Expand All @@ -74,7 +74,7 @@ services:
condition: service_healthy

otel-collector-metrics:
image: signoz/otelcontribcol:0.45.1-1.1
image: signoz/otelcontribcol:0.45.1-1.3
command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
Expand Down

0 comments on commit fda6e44

Please sign in to comment.