-
Notifications
You must be signed in to change notification settings - Fork 0
chore: test to prod #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
chore: test to prod #145
Changes from all commits
Commits
Show all changes
104 commits
Select commit
Hold shift + click to select a range
136ffc5
Add flag for print version
MemberIT 500c894
Add installation of specific version
MemberIT 2658190
ebpf: improve protocol identification accuracy
def 67a13bb
Merge pull request #166 from coroot/protocol_detection_accuracy
def c8449aa
instance metadata: add support for Alibaba Cloud
def 4f95b6b
Merge pull request #167 from coroot/alibaba_metadata
def 75b0def
Merge pull request #141 from tribunadigital/feat_version_flag
apetruhin a73919b
add support for hybrid cgroup mode with both V1 and V2 enabled
def 77f223d
Merge pull request #169 from coroot/cgroup_hybrid_mode
def eb347a3
instance metadata: add support for Scaleway
def 91cd15d
Merge pull request #170 from coroot/scaleway_metadata
def 71f2633
image: add container image labels
apetruhin 7ab7a68
application types: add OpenSearch and VictoriaMetrics
def ff54f40
Merge pull request #173 from coroot/more_app_types
def 0789560
containers: invalidate ignored containers cache
apetruhin b64d949
Merge pull request #174 from coroot/invalidate_ingnored_containers_cache
apetruhin e223b38
CI: pin the ubuntu version
apetruhin 4a2859b
release: pin the ubuntu version
apetruhin f14f9a1
group connections to AWS services by FQDN instead of IPs
def 96a31bf
Merge pull request #176 from coroot/collapse_aws_services_external_ips
def 50caf2c
application types: add Coroot
apetruhin 2e749e9
Merge pull request #177 from coroot/app_types_coroot
apetruhin 1260e7f
enhance accuracy of cgroup2 base path detection
def 5306dcd
Merge pull request #179 from coroot/fix_cgroup2_path
def aa5f2cd
tls: avoid reading the entire `.text` section to reduce memory alloca…
apetruhin 8c3e98d
Merge pull request #181 from coroot/tls_go_memory_allocations_optimiz…
apetruhin 9b7636b
fix detection of actual destination for TCP connections
def 8830bf5
Merge pull request #182 from coroot/fix_actual_dest
def ecbf82e
using FQDNs as destinations when they are resolved into a list of pub…
def e1d84fb
Merge pull request #183 from coroot/per_conn_metric_optimization
def 42ae641
skip reporting `ip_to_fqdn` for collapsed addresses
def 1a61557
Merge pull request #184 from coroot/per_conn_metric_optimization
def d9e2797
Update README.md
def 7b32be0
add `app_id`, `az`, and `region` labels to container metrics
def dd5620f
Merge pull request #186 from coroot/additional_metric_labels
def f77ec01
logparser v1.1.8
apetruhin 117ada7
Merge pull request #187 from coroot/logparser_1.1.8
apetruhin 8981388
bump cilium version (fix #188)
def f46e230
Merge pull request #190 from coroot/bump_cilium_version
def 38728eb
Bump github.com/opencontainers/runc from 1.1.12 to 1.2.0
dependabot[bot] 7bf070a
Merge pull request #191 from coroot/dependabot/go_modules/github.com/…
def 1d18580
Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity
dependabot[bot] c1a383d
Merge pull request #192 from coroot/dependabot/go_modules/github.com/…
def 6b5a975
Bump github.com/containerd/containerd from 1.6.26 to 1.6.38
dependabot[bot] 7f1b0df
Merge pull request #193 from coroot/dependabot/go_modules/github.com/…
def 9cb326e
python: restrict uprobe/uretprobe to the specified PID only
def 77b71dc
Merge pull request #194 from coroot/fix_python_metrics
def 33afce4
build(deps): bump github.com/ClickHouse/ch-go from 0.62.0 to 0.65.0
dependabot[bot] 6092ea6
profiling: add support for perf map files
def e140b32
profiling: enable full python file names
def f0260bf
Merge pull request #196 from coroot/profiler_improvements
def bff74b8
logparser v1.1.9 (coroot/coroot#540)
apetruhin 5aa1664
Merge pull request #197 from coroot/logparser_1.1.9
apetruhin 635abc6
Merge pull request #129 from nudgebee/dependabot/go_modules/github.co…
mayankpande88 16b5af7
build(deps): bump golang.org/x/net from 0.36.0 to 0.38.0
dependabot[bot] 1c219ae
better application type detection
def 52e0cd8
Merge pull request #198 from coroot/app_types
def 2c71422
fix NsPid parsing (fixes #199)
def d4f8cbb
Merge pull request #200 from coroot/fix_199
def a0da66a
allow excluding specific HTTP paths from metrics (e.g, health checks)
def 6455c18
Merge pull request #202 from coroot/http_metrics_filter
def 93fd1c1
infra: dev registry change
blue4209211 2011fb5
Merge pull request #132 from nudgebee/infra_change
saiprasadpotdar 7914ec6
mprove cgroup detection logic for mixed v1 and v2
def 8b7e5a6
Merge pull request #203 from coroot/fix_hybrid_cgroups
def 68e454e
allow excluding specific HTTP requests from metrics and traces (e.g, …
def 7d230fe
Merge pull request #204 from coroot/http_request_filtration
def eda7bbf
Merge pull request #130 from nudgebee/dependabot/go_modules/golang.or…
mayankpande88 f511d98
add support for container allow and deny lists
def 9b2f589
Merge pull request #206 from coroot/container_filters
def a330c8c
metadata: add support for IBM cloud
def d01561f
Merge pull request #208 from coroot/cloud_metadata_ibm
def 1e4f796
metrics: add config option for max label value length
def f814092
Merge pull request #209 from coroot/max_label_length
def 0e74da3
fix handling of cloud metadata overrides
def d48cf26
Merge pull request #210 from coroot/fix_cloud_metadata_overrides
def e410668
fix memory leak in HTTP/2 parser
def f56d905
Merge pull request #211 from coroot/http2_parser_fix
def 6f5d688
improve error handling in ClickHouse protocol parser
def accc203
Merge pull request #212 from coroot/error_handling_in_ch_protocol_par…
def 1b88273
Merge remote-tracking branch 'upstream/main' into rebase-23-5
mayankpande88 3c997dd
Merge pull request #133 from nudgebee/rebase-23-5
mayankpande88 ccd35cc
build(deps): bump github.com/cilium/cilium from 1.17.2 to 1.17.3
dependabot[bot] 1ea6a19
Merge pull request #134 from nudgebee/dependabot/go_modules/github.co…
mayankpande88 5181a8e
remove usage of Prometheus WAL
def d1c8216
Merge pull request #213 from coroot/remove_prometheus_wal
def 65b2bf6
add GPU metrics
def 7a43425
Merge pull request #216 from coroot/gpu_metrics
def a632481
metrics: log successful exports
apetruhin 564d0ad
prometheus: avoid retaining compression buffer between iterations
def 6d71571
Merge pull request #217 from coroot/fix_mem_leak
def e094f1c
Merge remote-tracking branch 'upstream/main' into rebase-23-5
mayankpande88 bd59e93
Merge remote-tracking branch 'origin/main' into rebase-23-5
mayankpande88 5f6b5bd
fix: fix for docker build
mayankpande88 89d6941
fix: fix for build
mayankpande88 21192f5
Merge pull request #137 from nudgebee/rebase-23-5
mayankpande88 45e39cb
chore: added az/region metric for bytes transferred
mayankpande88 8d1ae57
Merge pull request #140 from nudgebee/fix-pattern-detection
mayankpande88 508dda9
Merge pull request #139 from nudgebee/fix-az-metric
blue4209211 a4646ff
chore: fix for ci (#142)
mayankpande88 952bed6
chore: fix for high cves (#143)
mayankpande88 d4e025f
chore: fix for high cves
mayankpande88 943ac41
Merge pull request #144 from nudgebee/fix-high-cves
blue4209211 c3d7e2f
Merge pull request #141 from nudgebee/main
mayankpande88 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,21 @@ | ||
| FROM golang:1.23-bullseye AS builder | ||
| RUN apt update && apt install -y libsystemd-dev | ||
| FROM golang:1.23.10-bullseye AS builder | ||
|
|
||
| RUN apt-get update \ | ||
| && apt-get install -y --no-install-recommends libsystemd-dev \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| WORKDIR /tmp/src | ||
| COPY go.mod . | ||
| COPY go.sum . | ||
| RUN go mod download | ||
| COPY . . | ||
| ARG VERSION=unknown | ||
| RUN CGO_ENABLED=1 go build -mod=readonly -ldflags "-X main.version=$VERSION" -o coroot-node-agent . | ||
| RUN CGO_ENABLED=1 go build -mod=readonly -ldflags "-extldflags='-Wl,-z,lazy' -X 'github.com/coroot/coroot-node-agent/flags.Version=${VERSION}'" -o coroot-node-agent . | ||
|
|
||
| FROM registry.access.redhat.com/ubi9/ubi | ||
| FROM registry.access.redhat.com/ubi9/ubi-minimal AS runtime | ||
|
|
||
| ARG VERSION=unknown | ||
|
|
||
| COPY --from=builder /tmp/src/coroot-node-agent /usr/bin/coroot-node-agent | ||
| ENTRYPOINT ["coroot-node-agent"] | ||
|
|
||
| ENTRYPOINT ["coroot-node-agent"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1,34 @@ | ||
| FROM golang:1.23-alpine as build-stage | ||
| # Set destination for COPY | ||
| WORKDIR /app | ||
| RUN apk add --no-cache --update go gcc g++ bash git | ||
| RUN echo "unicode=\"YES\"" >> /etc/rc.conf && \ | ||
| apk add --no-cache --virtual .build_deps \ | ||
| autoconf file libc-dev make pkgconf python3 py3-pip ninja \ | ||
| util-linux pciutils usbutils coreutils binutils findutils grep \ | ||
| build-base abuild binutils binutils-doc gcc-doc gperf libcap libcap-dev \ | ||
| valgrind-dev libmount && pip3 install meson --break-system-packages | ||
|
|
||
| RUN cd /tmp && git clone https://github.com/systemd/systemd | ||
| # Build stage | ||
| FROM golang:1.23.8-alpine AS builder | ||
|
|
||
| # RUN cd /tmp/systemd && \ | ||
| # meson build && \ | ||
| # ninja build | ||
| # Install build tools | ||
| RUN apk add --no-cache build-base | ||
|
|
||
| RUN apk add elogind-dev | ||
| # Set up workspace | ||
| WORKDIR /app | ||
|
|
||
| COPY go.mod go.sum ./ | ||
| # Copy go mod files and download dependencies | ||
| COPY go.mod . | ||
| COPY go.sum . | ||
| RUN go mod download | ||
|
|
||
| RUN go mod download | ||
| # Copy the rest of the code | ||
| COPY . . | ||
|
|
||
| COPY ./ ./ | ||
| # Build statically linked binary | ||
| ARG VERSION=unknown | ||
| RUN CGO_ENABLED=1 go build -mod=readonly -ldflags "-X main.version=$VERSION" -o coroot-node-agent . | ||
| RUN CGO_ENABLED=1 go build -mod=readonly -ldflags "-extldflags='-Wl,-z,lazy' -X 'github.com/coroot/coroot-node-agent/flags.Version=${VERSION}'" -o coroot-node-agent . | ||
|
|
||
| # Runtime stage | ||
| FROM alpine:3.22 AS release-stage | ||
|
|
||
| FROM alpine:3.19 AS release-stage | ||
| WORKDIR /app | ||
| COPY --from=build-stage /app/coroot-node-agent /usr/bin/coroot-node-agent | ||
|
|
||
| # Copy the statically linked binary | ||
| COPY --from=builder /app/coroot-node-agent /usr/bin/coroot-node-agent | ||
|
|
||
| # Ensure it’s executable | ||
| RUN chmod +x /usr/bin/coroot-node-agent | ||
| CMD ["coroot-node-agent"] | ||
|
|
||
| # Run it | ||
| CMD ["/usr/bin/coroot-node-agent"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.