# Best practice for injecting line protocol from ActiveGate extension

**URL:** <https://community.dynatrace.com/t/best-practice-for-injecting-line-protocol-from-activegate-extension/36740>\
**Category:** Extensions\
**Tags:** activegate, extensions, data-ingest\
**Created:** [October 1, 2022, 3:02pm UTC](https://community.dynatrace.com/t/best-practice-for-injecting-line-protocol-from-activegate-extension/36740 "2022-10-01T15:02:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 1, 2022, 3:02pm UTC](https://community.dynatrace.com/t/best-practice-for-injecting-line-protocol-from-activegate-extension/36740/1 "2022-10-01T15:02:34Z")

</div>

When using an Activate extension, in some cases injecting data through the line protocol makes more sense. Currently, I’m injecting through the local API endpoint in ActiveGate. I do have to configure the tenant id and also have an API token, though.

Is this the most correct way to do it, or are there better alternatives?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [October 1, 2022, 3:56pm UTC](https://community.dynatrace.com/t/best-practice-for-injecting-line-protocol-from-activegate-extension/36740/2 "2022-10-01T15:56:59Z")

</div>

Hi,

That is how we do it as well. You could automate the tenant piece but you’ll always need the API token for AG extensions.

Mike
