forked from tty47/torch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add metrics otel/prometheus - expose multiaddr
Signed-off-by: Jose Ramon Mañes <[email protected]>
- Loading branch information
Showing
17 changed files
with
499 additions
and
352 deletions.
There are no files selected for viewing
This file contains 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,2 +1,6 @@ | ||
torch | ||
|
||
.DS_Store | ||
.idea | ||
|
||
*otel-agent-celestia.yaml |
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM golang:1.20.3-bullseye AS builder | ||
WORKDIR / | ||
COPY go.mod go.sum ./ | ||
# Download dependencies | ||
RUN go mod download | ||
COPY torch /go/bin/torch | ||
|
||
FROM alpine:latest | ||
WORKDIR / | ||
COPY --from=builder /go/bin/torch . | ||
ENTRYPOINT ["./torch"] |
This file contains 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 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 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 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#extensions: | ||
# basicauth/otlp: | ||
# client_auth: | ||
# username: <uid> | ||
# # TODO: use a secret manager! | ||
# password: "XYZ" | ||
|
||
receivers: | ||
otlp: | ||
protocols: | ||
http: | ||
endpoint: "localhost:4318" | ||
prometheus: | ||
config: | ||
scrape_configs: | ||
- job_name: 'torch' | ||
scrape_interval: 1m | ||
static_configs: | ||
- targets: ['localhost:8080'] | ||
|
||
exporters: | ||
otlphttp: | ||
# auth: | ||
# authenticator: basicauth/otlp | ||
endpoint: https://otlp-gateway-prod-us-central-0.grafana.net/otlp | ||
|
||
processors: | ||
batch: | ||
|
||
service: | ||
# extensions: [basicauth/otlp] | ||
pipelines: | ||
metrics: | ||
receivers: [otlp, prometheus] | ||
exporters: [otlphttp] | ||
traces: | ||
receivers: [otlp] | ||
exporters: [otlphttp] | ||
processors: [batch] |
This file contains 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 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.