Skip to content
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(BA-504): Add Pyroscope profiler to common module #3459

Open
wants to merge 6 commits into
base: feat/grafana-dashboard
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ python_requirements(
"python-dateutil": ["dateutil", "dateutil.parser", "dateutil.tz"],
"python-json-logger": ["pythonjsonlogger"],
"pyhumps": ["humps"],
"pyroscope-io": ["pyroscope"],
"pyzmq": ["zmq"],
"PyYAML": ["yaml"],
"typing-extensions": ["typing_extensions"],
Expand Down
1 change: 1 addition & 0 deletions changes/3459.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Integrate Pyroscope with Backend.AI
7 changes: 7 additions & 0 deletions configs/account-manager/halfstack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ ssl-enabled = false
pid-file = "./account-manager.pid" # env: BACKEND_PID_FILE


[pyroscope]
enabled = true
app_name = "backendai-half-account-manager"
server_addr = "http://localhost:4040"
sample-rate = 100


[logging]
level = "INFO"
drivers = ["console"]
Expand Down
6 changes: 6 additions & 0 deletions configs/account-manager/sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ ssl-enabled = false
pid-file = "./account-manager.pid" # env: BACKEND_PID_FILE


[pyroscope]
enabled = true
app-name = "backendai-half-account-manager"
server-addr = "http://localhost:4040"
sample-rate = 100

[logging]
level = "INFO"
drivers = ["console"]
Expand Down
7 changes: 7 additions & 0 deletions configs/agent/ci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ target-service = "backendai-agent.service"
soft-reset-available = false


[pyroscope]
enabled = false
# app-name = "backendai-half-agent"
# server-addr = "http://localhost:4040"
# sample-rate = 100


[logging]
level = "INFO"
drivers = ["console"]
Expand Down
7 changes: 7 additions & 0 deletions configs/agent/halfstack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ target-service = "backendai-agent.service"
soft-reset-available = false


[pyroscope]
enabled = true
app-name = "backendai-half-agent"
server-addr = "http://localhost:4040"
sample-rate = 100


[logging]
level = "INFO"
drivers = ["console"]
Expand Down
7 changes: 7 additions & 0 deletions configs/agent/sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,13 @@ target-service = "backendai-agent.service"
soft-reset-available = false


[pyroscope]
enabled = true
app-name = "backendai-half-agent"
server-addr = "http://localhost:4040"
sample-rate = 100


[logging]
# One of: "NOTSET", "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"
# Set the global logging level.
Expand Down
Loading
Loading