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

chore: start prometheus server on workers #17489

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion posthog/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ def receiver_bind_extra_request_metadata(sender, signal, task=None, logger=None)
@worker_process_init.connect
def on_worker_start(**kwargs) -> None:
from posthog.settings import sentry_init

from prometheus_client import start_http_server
sentry_init()
start_http_server(8001)


@app.on_after_configure.connect
Expand Down