-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: adopt Grafana for metrics visualization (#2364) #2378
Conversation
.env
Outdated
@@ -0,0 +1,2 @@ | |||
OTEL_GRPC_PORT=4317 | |||
OTEL_HTTP_PORT=4318 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Hermit for managing these envars instead:
hermit env OTEL_GRPC_PORT 4317
hermit env OTEL_HTTP_PORT 4318
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks updated; didn't know of this option
grafana: | ||
image: grafana/otel-lgtm | ||
platform: linux/amd64 | ||
restart: unless-stopped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the infra
profile here so it doesn't start by default. You'll also need to add that to the docker compose
lines that bring it up/down.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Justfile
Outdated
-p 55679:55679 \ | ||
otel/opentelemetry-collector:0.104.0 2>&1 | sed 's/\([A-Z].* #\)/\ | ||
\1/g' | ||
|
||
# Stop the docker container running otel. | ||
otelContainerID := `docker ps -f ancestor=otel/opentelemetry-collector:0.104.0 | tail -1 | cut -d " " -f1` | ||
otel-container-id := `docker ps -f ancestor=otel/opentelemetry-collector:0.104.0 | tail -1 | cut -d " " -f1` | ||
grafana-container-id := `docker ps -f ancestor=grafana/otel-lgtm | tail -1 | cut -d " " -f1` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless this is doing something I'm not aware of, couldn't we just use docker compose down
instead of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@jonathanj-square I pulled it out of the queue because there are a couple of changes that would be nice to make |
fixes: #2364 Introduces a Grafana / OTEL container for capturing, ephemerally storing, and visualizing OTEL metrics emitted by FTL. The collection frequency is also increased to once per second (from a default once per minute) <img width="1246" alt="Screenshot 2024-08-14 at 7 58 39 PM" src="https://github.com/user-attachments/assets/bd21cd33-dc93-4a79-9b2a-ad124f2db296">
fixes: #2364
Introduces a Grafana / OTEL container for capturing, ephemerally storing, and visualizing OTEL metrics emitted by FTL. The collection frequency is also increased to once per second (from a default once per minute)