# Dotnet agent configuration

**URL:** <https://discuss.elastic.co/t/dotnet-agent-configuration/371592>\
**Category:** APM\
**Tags:** docker, dotnet\
**Created:** [December 6, 2024, 10:56am UTC](https://discuss.elastic.co/t/dotnet-agent-configuration/371592 "2024-12-06T10:56:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachin\_Chourasiya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sachin_chourasiya/32/122573_2.png) [@Sachin\_Chourasiya](https://discuss.elastic.co/u/Sachin_Chourasiya)\
**Post date:** [December 6, 2024, 10:56am UTC](https://discuss.elastic.co/t/dotnet-agent-configuration/371592/1 "2024-12-06T10:56:08Z")

</div>

Hi All,

i want to monitor [ASP.NET](http://ASP.NET) Core application running on docker container and i have setup the integrated apm server on different server, now i want to monitor .net application using .net apm agent but when i look onto the docs its confusing and not specific.

kindly let me know the step to perform on the linux server where application ( i have buid by pulling an image from docker hub) running on the container.

i want to route .net apm metrices to my apm server url.

**Kibana version** :8.14.3

**Elasticsearch version** :8.14.3

**APM Server version** : 8.14.3

**APM Agent language and version** : dotnet latest

**Browser version** : na

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:

**Fresh install or upgraded from other version?**

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

**Steps to reproduce** :  
1.  
2.  
3.

**Errors in browser console (if relevant)**:

**Provide logs and/or server output (if relevant)**:logs not there

---

<div class="post-metadata">

**Author:** ![stevejgordon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevejgordon/32/80912_2.png) [@stevejgordon](https://discuss.elastic.co/u/stevejgordon)\
**Post date:** [February 3, 2025, 1:23pm UTC](https://discuss.elastic.co/t/dotnet-agent-configuration/371592/2 "2025-02-03T13:23:03Z")

</div>

Hi, @Sachin_Chourasiya.

Our [docs](https://www.elastic.co/guide/en/apm/agent/dotnet/current/setup.html) should get you started. You have two main options:

1. Register the agent Using the NuGet package(s) with minor code changes.
2. Using the profiler-based auto-instrumentation.

I tend to recommend the NuGet option. While it requires some code changes and recompilation, it gives more control and can be more straightforward than the profiler approach.

Which of these did you plan to use?
