Compare commits

...

14 Commits

Author SHA1 Message Date
nityanandagohain
a6c700d868 Merge remote-tracking branch 'origin/develop' into feat/gor 2024-04-23 10:26:07 +05:30
nityanandagohain
06b6857b53 fix: start script updated to use raw socket 2024-04-23 10:25:55 +05:30
nityanandagohain
c8597f6eb6 fix: start script updated 2024-04-22 10:20:26 +05:30
nityanandagohain
3b8c6eca60 fix: filter out health endpoint request 2024-04-19 16:47:58 +05:30
nityanandagohain
b13835dc14 fix: filter out health endpoint request 2024-04-19 16:19:24 +05:30
nityanandagohain
5030c73b9d fix: dockerfile updated 2024-04-19 14:11:46 +05:30
nityanandagohain
cd0221fa91 fix: update start.sh 2024-04-19 11:08:26 +05:30
nityanandagohain
f007896f47 Merge remote-tracking branch 'origin/main' into feat/gor 2024-04-19 09:51:27 +05:30
nityanandagohain
a7410394ea fix: update start.sh 2024-04-19 09:49:53 +05:30
nityanandagohain
30f02aff57 fix: update start.sh 2024-04-18 20:32:07 +05:30
nityanandagohain
99c1b9f215 fix: docker file updated 2024-04-18 19:25:31 +05:30
nityanandagohain
817f9fedf8 fix: files updated 2024-04-17 10:17:29 +05:30
nityanandagohain
3a3b21c969 feat: add goreplay 2024-04-16 10:27:58 +05:30
Prashant Shahi
5817d50652 Merge pull request #4853 from SigNoz/release/v0.43.x
Release/v0.43.x
2024-04-15 20:07:57 +05:45
3 changed files with 48 additions and 8 deletions

View File

@@ -164,16 +164,17 @@ 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:${DOCKER_TAG:-0.43.0}
image: signoz/query-service:custom
container_name: signoz-query-service
pull_policy: never
command:
[
"-config=/root/config/prometheus.yml",
# "--prefer-delta=true"
]
# ports:
ports:
# - "6060:6060" # pprof port
# - "8080:8080" # query-service port
- "8080:8080" # query-service port
volumes:
- ./prometheus.yml:/root/config/prometheus.yml
- ../dashboards:/root/config/dashboards

View File

@@ -1,5 +1,13 @@
FROM alpine:3.16 as builder
RUN apk add --no-cache ca-certificates openssl
RUN wget https://github.com/buger/goreplay/releases/download/1.3.3/gor_1.3.3_x64.tar.gz -O gor.tar.gz
RUN tar xzf gor.tar.gz
# use a minimal alpine image
FROM alpine:3.18.6
FROM ubuntu:latest
# Add Maintainer Info
LABEL maintainer="signoz"
@@ -8,24 +16,32 @@ LABEL maintainer="signoz"
ARG TARGETOS TARGETARCH
# add ca-certificates in case you need them
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
# RUN apt update && apt add ca-certificates && rm -rf /var/cache/apk/*
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /gor /root/gor
# set working directory
WORKDIR /root
# copy the query-service binary
COPY ee/query-service/bin/query-service-${TARGETOS}-${TARGETARCH} /root/query-service
COPY ee/query-service/start.sh /root/start.sh
# copy prometheus YAML config
COPY pkg/query-service/config/prometheus.yml /root/config/prometheus.yml
COPY pkg/query-service/templates /root/templates
# Make query-service executable for non-root users
RUN chmod 755 /root /root/query-service
RUN chmod 755 /root /root/query-service /root/start.sh /root/gor
# run the binary
ENTRYPOINT ["./query-service"]
ENTRYPOINT ["/bin/bash", "./start.sh"]
CMD ["-config", "/root/config/prometheus.yml"]
# ENTRYPOINT ["./query-service"]
# CMD ["-config", "/root/config/prometheus.yml"]
# CMD ["-config", "/root/config/prometheus.yml"]
EXPOSE 8080

23
ee/query-service/start.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
OUTPUT_PATH="${GOR_OUTPUT_PATH:-./goreplay/}"
mkdir -p ${OUTPUT_PATH}
# turn on bash's job control
set -m
# Start the primary process and put it in the background
./query-service "$@" &
echo "Starting GOR"
# # Start the helper process
./gor --input-raw=:8080 --input-raw-engine "raw_socket" --output-file=${OUTPUT_PATH}%Y%m%d-%H.log --http-disallow-url .*\/health
echo "GOR started"
# the my_helper_process might need to know how to wait on the
# primary process to start before it does its work and returns
# now we bring the primary process back into the foreground
# and leave it there
fg %1