# How to install Agent Apm for DotNet Apps?

**URL:** <https://discuss.elastic.co/t/how-to-install-agent-apm-for-dotnet-apps/378262>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [May 17, 2025, 2:31pm UTC](https://discuss.elastic.co/t/how-to-install-agent-apm-for-dotnet-apps/378262 "2025-05-17T14:31:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![amin\_nazari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amin_nazari/32/143172_2.png) [@amin\_nazari](https://discuss.elastic.co/u/amin_nazari)\
**Post date:** [May 17, 2025, 2:31pm UTC](https://discuss.elastic.co/t/how-to-install-agent-apm-for-dotnet-apps/378262/1 "2025-05-17T14:31:32Z")

</div>

hello sir  
i have some questions that i couldnt find the answer i hope you help to solve it.

in our company we have more that 200 dotnet application with different versions  
some of the are dotnet framework  
some others are dotnet core with different versions  
even we have the latest version of the dotnet

by the way we never thinks about having a apm service to trace and profiling of these apps  
now managers need it (i know its so bad after long time undrestand you need monitoring for your services)  
i guess you can get it how much is hard to tell you develop teams to config it they are busy they cant accept it, it take more than normal time  
i undrestand there is a way we dont need to change the codebase (some people call it zerocode) and with a agent that install next to your app can monitor your app and easily connect to the APM Server

so where is my problem?  
i dont know how to install it?  
the way i should use to install  
is it just a dll i should copy it to the application directory  
if its possible make me understood

TNX

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 18, 2025, 12:40am UTC](https://discuss.elastic.co/t/how-to-install-agent-apm-for-dotnet-apps/378262/2 "2025-05-18T00:40:22Z")

</div>

Hi @amin_nazari Welcome to the community.

Did you look at the documentation?

> [@amin\_nazari](#):
>
> in our company we have more that 200 dotnet application with different versions  
> some of the are dotnet framework  
> some others are dotnet core with different versions  
> even we have the latest version of the dotnet

Here are the supported versions, it is likely not all your versions are supported but perhaps there is significant coverage.

> **[Supported technologies | Elastic Documentation](https://www.elastic.co/docs/reference/apm/agents/dotnet/supported-technologies)**
>
> If your favorite technology is not supported yet, you can vote for it by participating in our survey. We will use the results to add support for the most...

There are several ways to get instrumentation running... auto instrumentation is the "zero code" approach

> **[Set up the APM .NET agent | Elastic Documentation](https://www.elastic.co/docs/reference/apm/agents/dotnet/set-up-apm-net-agent)**
>
> The .NET agent can be added to an application in three different ways Profiler Auto instrumentation, ASP.NET Core, .NET Core and .NET 5+, ASP.NET, Azure...

> **[Profiler Auto instrumentation | Elastic Documentation](https://www.elastic.co/docs/reference/apm/agents/dotnet/setup-auto-instrumentation)**
>
> The agent can automatically instrument .NET Framework, .NET Core, and .NET applications using the .NET CLR Profiling APIs. The Profiling APIs provide...

Perhaps come back with some specific question and we can help...

---

<div class="post-metadata">

**Author:** ![amin\_nazari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amin_nazari/32/143172_2.png) [@amin\_nazari](https://discuss.elastic.co/u/amin_nazari)\
**Post date:** [May 18, 2025, 5:46am UTC](https://discuss.elastic.co/t/how-to-install-agent-apm-for-dotnet-apps/378262/3 "2025-05-18T05:46:27Z")

</div>

Thanks @stephenb  
i checked and i couldnt underestand but i will check it again because i found somethings else while i researched last night.

i have some question is it support dotnet 7 8 9?  
i didnt any thinge refer to it that would not support or support it.  
and other things is am i should config kibana to connect to the apm server and receive data from agents?

Best Wishes

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 18, 2025, 1:42pm UTC](https://discuss.elastic.co/t/how-to-install-agent-apm-for-dotnet-apps/378262/4 "2025-05-18T13:42:37Z")

</div>

> [@amin\_nazari](#):
>
> i have some question is it support dotnet 7 8 9?

Yes with the Elastic Legacy Agent

> This means \>\>\>\> .NET Core 2.0 or newer \<\<\<, and .NET Framework 4.6.2\* or newer.

To be clear there are 2 overall approaches

1. Elastic APM Agents which I referred to above, and yes those agent  
APM Agen -\> APM Server -\> Elasticsearch - Kibana

2. There are also the Brand New Elastic Distribution of Open Telemetry... they are brand new.

You can look at that here

> **[Introduction](https://elastic.github.io/opentelemetry/)**
>
> Elastic Distributions of OpenTelemetry is an open-source ecosystem of tailored OpenTelemetry distributions, comprising an OpenTelemetry Collector and various OpenTelemetry Language SDKs. Each EDOT distribution is assembled with carefully curated...

Reference Architecture

> **[Hosts / VMs Environments](https://elastic.github.io/opentelemetry/architecture/hosts_vms.html)**
>
> Elastic Distributions of OpenTelemetry is an open-source ecosystem of tailored OpenTelemetry distributions, comprising an OpenTelemetry Collector and various OpenTelemetry Language SDKs. Each EDOT distribution is assembled with carefully curated...

APP -\> EDOT SDK -\> EDOT Collector -\> Elastic -\> Kibana

.NET Zero Code

> **[Zero-code instrumentation](https://elastic.github.io/opentelemetry/edot-sdks/dotnet/setup/zero-code)**
>
> Using profiler-based zero-code instrumentation

Since it is Based on the OTEL SDK - Support Here

> **[.NET](https://opentelemetry.io/docs/languages/dotnet/)**
>
> A language-specific implementation of OpenTelemetry in .NET.

Yes it is all a bit confusing right now... lots of options... I think you need to roll up your sleeves and pick one and get started.

---

<div class="post-metadata">

**Author:** ![amin\_nazari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amin_nazari/32/143172_2.png) [@amin\_nazari](https://discuss.elastic.co/u/amin_nazari)\
**Post date:** [May 18, 2025, 2:19pm UTC](https://discuss.elastic.co/t/how-to-install-agent-apm-for-dotnet-apps/378262/5 "2025-05-18T14:19:42Z")

</div>

I appreciate you @stephenb  
you give me a lot of idea.

i guess one question left 😬 (I hope)  
managing the servers is on my shoulder  
base on my less knowledge about these server i think i will face with some problems  
for previous option i should have 3 servers (elastic apm, Elasticsearch, kibana)  
am i should config server to accept apm request or not if i start it and connect it to the Elasticsearch is enough?

and the new brand that you introduced i need to setup new servers?

if its possible give me a view of the server side as well.

TNX @stephenb

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 19, 2025, 2:30pm UTC](https://discuss.elastic.co/t/how-to-install-agent-apm-for-dotnet-apps/378262/6 "2025-05-19T14:30:27Z")

</div>

> [@amin\_nazari](#):
>
> i guess one question left 😬 (I hope)  
> managing the servers is on my shoulder

Yes, APM does require some extra management.

What version of Elastic Stack are you using?

> [@amin\_nazari](#):
>
> should config server to accept apm request o

Yes. There are 2 architectures on this page using Fleet + APM Server or Legacy APM Binary.

> **[Get started with APM | Elastic Docs](https://www.elastic.co/docs/solutions/observability/apm/get-started)**
>
> The APM Server receives performance data from your APM agents, validates and processes it, and then transforms the data into Elasticsearch documents...

I suggest reading these docs thoroughly
