Hi everyone For self hosted phoenix is there an easy way to export the metrics to grafana?
Phoenix supports exporting metrics via a Prometheus endpoint, which Grafana can scrape for visualization. To enable this, set the enablePrometheus option to true in your Phoenix server configuration (e.g., in your Helm values or Docker/Kubernetes deployment), which exposes metrics on port 9090 for Prometheus to collect and Grafana to visualize. See the Helm values.yaml and related Slack discussion for details.Would you like more detail on how to configure Prometheus and Grafana to connect to Phoenix?Sources:
- https://arize-ai.slack.com/archives/C04R3GXC8HK/p1719072670.110699
- Helm values.yaml
💡 Hint: Mention RunLLM in the thread for followups.
Does the self hosted version of phoenix include dashboards? - i cant see them
Would that be sufficent? - docker setup
services:
phoenix:
image: arizephoenix/phoenix:11.18.0-debug
ports:
- 6006:6006 # PHOENIX_PORT
- 4317:4317 # PHOENIX_GRPC_PORT
- 9090:9090 # Optional: PROMETHEUS_PORT
environment:
- PHOENIX_WORKING_DIR=/mnt/data
volumes:
- ./data:/mnt/dataOhhh thats important to know 😄
Do you know whether there exists a ready exporter for that, or would need to make a custom one?
So phoenix is considered an otel collector and backend so it won’t export but you can either add two exporters in your app or use the OTEL collector to send data to phoenix and grafana
Got it - thanks Do you have any resources that could be helpful to set the grafana
I don’t unfortunately. Grafana docs are probably best and it depends on how you want to setup your otel metrics and logs. I know Kibana has some examples with Phoenix. The benefits of using both is that you will have everything correlated with the same IDs. If you just want metrics that are stored in phoenix it does have APIs and that’s probably what I would hook into
