# Running APM for standalone celery

**URL:** <https://discuss.elastic.co/t/running-apm-for-standalone-celery/158693>\
**Category:** APM\
**Created:** [November 29, 2018, 6:32am UTC](https://discuss.elastic.co/t/running-apm-for-standalone-celery/158693 "2018-11-29T06:32:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mashhoodr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mashhoodr/32/38222_2.png) [@mashhoodr](https://discuss.elastic.co/u/mashhoodr)\
**Post date:** [November 29, 2018, 6:32am UTC](https://discuss.elastic.co/t/running-apm-for-standalone-celery/158693/1 "2018-11-29T06:32:48Z")

</div>

I would like to run the APM integration with a standalone Celery setup, is it currently possible to do that?

---

<div class="post-metadata">

**Author:** ![beniwohli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beniwohli/32/21256_2.png) [@beniwohli](https://discuss.elastic.co/u/beniwohli)\
**Post date:** [December 11, 2018, 1:10pm UTC](https://discuss.elastic.co/t/running-apm-for-standalone-celery/158693/2 "2018-12-11T13:10:15Z")

</div>

Hi @mashhoodr

sorry for the long wait, completely missed this message. It should be relatively straight forward to use Elastic APM with a standalone celery setup. Something like this should work

```
from elasticapm import Client, instrument
from elasticapm.contrib.celery import register_exception_tracking, register_instrumentation

instrument()
apm_client = Client(server_url="http://localhost:8200") # adapt settings as needed
register_exception_tracking(apm_client)
register_instrumentation(apm_client)
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 1, 2019, 9:10am UTC](https://discuss.elastic.co/t/running-apm-for-standalone-celery/158693/3 "2019-01-01T09:10:20Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
