Discussion Feed
09-17-2018
11:19 PM
Hi Prashant,
Please run the installer from a command prompt (run as administrator) using the following command line -
msiexec /i dotNetAgentSetup64.msi /l*v installlog.txt
Let us know if the agent installs fine ? In case if the issue persists, please share complete installlog.txt file as a direct message to me. We will review and update you with next steps.
... View more
09-17-2018
08:02 AM
1 Kudo
Hi Robert,
I have written basic steps needed to setup a sample application using linux docker containers.
Instructions for setting up sample environment for using Linux SDK - Step 1 : Getting the Sample Code
mkdir MvcApp cd MvcApp dotnet new mvc
Step 2: Test the App if it is working fine
dotnet restore dotnet run Check in Browser -> http://localhost:5000
Step 3: Add Nuget Package in the Project -
dotnet add package AppDynamics.AgentSDK
Step 4: Modify your project to use the AppDynamics SDK - e.g: Edit HomeController.cs and add following -
using AppDynamics; ... namespace MvcApp.Controllers { public class HomeController : Controller { public IActionResult SomePage() { var currCtxId = AgentSDK.StartBusinessTransaction("DemoBT", "ASP_DOTNET", ""); // Code here calls to other ASP_DOTNET component ... AgentSDK.StopBusinessTransaction(currCtxId); return View(); } ...
For further reading and usage - https://docs.appdynamics.com/display/PRO45/.NET+Core+for+Linux+SDK+Use+Cases Step 5: Run "dotnet build" Note: This step should fail with warning-> " AppDynamicsConfig.json : warning APPD001: AppDynamics config was not updated " Step 6: Edit the AppDynamicsConfig.json file with the following information:
{ "controller": { "host": "<controller_host_name>", "port": <controller_port_name>, "account": "<controller_account_name>", "password": "<controller_account_key>", "ssl": <true if using https controller, or false> }, "application": { "name": "<application_name>", "tier": "<tier_name>", "node": "<node_name>" }, "log": { "directory": "<log_folder_path, e.g. /tmp/AppDLogs>", "level": "<log_level, e.g. INFO>" } }
Step 7: Create Dockerfile under MvcApp folder and Add Following -
#FROM microsoft/dotnet:2.0-sdk #FROM microsoft/aspnetcore-build:2.0 FROM microsoft/dotnet:2.0-sdk COPY . /app WORKDIR /app RUN ["dotnet", "restore"] RUN ["dotnet", "build"] #RUN ["apt-get","update"] #RUN ["apt-get", "install", "lsof"] ENV CORECLR_PROFILER="{57e1aa68-2229-41aa-9931-a6e93bbc64d8}" ENV CORECLR_ENABLE_PROFILING=1 ENV CORECLR_PROFILER_PATH="/<user,e.g:root>/.nuget/packages/appdynamics.agentsdk/4.5.0/runtimes/linux-x64/native/libappdprofiler.so" EXPOSE 5000/tcp ENV ASPNETCORE_URLS http://*:5000 ENTRYPOINT ["dotnet", "run"]
Note: For CORECLR_PROFILER_PATH refer the last section on https://docs.appdynamics.com/display/PRO45/Using+.NET+Core+for+Linux+SDK Step 8: Build the Image (make sure cd MvcApp, if not already the current directory)-
docker build -t appdsample:MvcApp .
Step 9: Launch the Image -
docker run -d -p 8088:5000 -t appdsample:MvcApp
Step 10: Apply Load on the application ( http://localhost:8088/ ) and check the reporting in controller and logs under e.g. /tmp/AppDLogs Doc references -
https://docs.appdynamics.com/display/PRO45/.NET+Core+for+Linux+SDK
https://docs.appdynamics.com/display/PRO45/Using+.NET+Core+for+Linux+SDK
https://docs.appdynamics.com/display/PRO45/.NET+Core+for+Linux+SDK+Use+Cases
Please follow the instructions to setup the sample environment and do let us know if it works in your environment?
Also once verified, please perform needed changes into your original applications setup process and let us know if it works with your application as well or not ?
Thanks,
Kartikay
... View more
09-04-2018
10:48 PM
Hi Dario,
Can you please share the VSTS pipeline output in .txt format. We are not able to see complete details on what is happening in each step.
Also please share complete value of the environment variables you have added in your local project for our review. We will review them and accordingly update you.
Also under AppDynamicsAgentLog.config file check following directory and if you have some logs, please share them to me as direct message.
${environment:variable=HOME}\LogFiles\AppDynamics
Thanks,
kartikay
... View more
08-20-2018
11:11 PM
Hi Prodip,
We have sent direct message to you to share few more details. Please share those details for our review.
Thanks,
Kartikay
... View more
07-27-2018
12:27 AM
We have requested for further details in a direct message to you. Please respond with the details and we will update you accordingly.
... View more
07-02-2018
03:58 AM
You can download the existing .net agent version installed on the server from Appdynamics Download site and keep the msi renamed as dotNetAgentSetup64.msi under C:\temp folder and retry uninstallation from control panel.
https://download.appdynamics.com/download/
... View more
05-29-2018
11:10 PM
Hi Supadhyaya,
We have sent you direct message with further details on debugging the issue. Please refer it and we will update you as per the instructions in the message.
Thanks,
kartikay
... View more
04-19-2018
02:55 AM
.Net Agent picks all the counters from Windows Perfmon. Based on your requirement you can further configure .Net Agent to collect additional perfmon counters.
This is explained in following document - https://docs.appdynamics.com/display/PRO44/Manage+Windows+Performance+Metrics
I think what you are looking for is "Free Megabytes" or "% Free Space" counters under "LogicalDisk" category where instance will be C:,D: etc
Following is an example on how <machine-agent> section of .net agents config.xml will look like below after you include these counters -
<machine-agent>
<perf-counters>
<perf-counter cat="LogicalDisk" name="Free Megabytes" instance="C:" />
<perf-counter cat="LogicalDisk" name="% Free Space" instance="C:" /> <perf-counter cat="LogicalDisk" name="Free Megabytes" instance="_Total" />
<perf-counter cat="LogicalDisk" name="% Free Space" instance="_Total" /> </perf-counters> </machine-agent>
These will show up at Controller UI at Metric Browser at following path or at Individual Node level
Application Infrastructure Performance|<Tier Name>|Custom Metrics|....
Note : You will need to restart the Agent Coordinator Service after making any edits to Config.xml.
... View more
03-23-2018
03:26 AM
Hi Yogesh,
Details steps on how to create data collectors are documented on - https://docs.appdynamics.com/display/PRO44/Data+Collectors
Attached screen shot on how to select BTs on which the selected Data Collector is needed to be applied.
After creating the MIDC, do not forget to restart appdynamics agent coordinator service first on the agent machine and then restart the instrumented applications and apply fresh load.
Thanks,
Kartikay
... View more
03-08-2018
03:09 AM
2 Kudos
Hi Tudor,
We have tested the steps for Installing service fabric as given in - https://docs.appdynamics.com/display/PRO44/Install+AppDynamics+for+Azure+Service+Fabric
We were able to make the instrumentation work and here is what we followed -
We Manually downloaded the NugetPackage from https://www.nuget.org/api/v2/package/AppDynamics.WindowsAzure/4.4.1
We unzipped it in a folder on the machine.
We copied AppDynamics.Agent.dll , AppDynamics.Profiler_x64.dll , AppDynamicsAgentLog.config , AppDynamicsConfig.json from <nuget_package>\content\AppDynamics and added in the Visual studio solution of each of the Service Project at the top level, not under any folder.
Right Click on each of these 4 newly added files in Visual studio for each service project and make sure under properties Build Action: Content and Copy to Output Directory: Copy Always is selected.
Rename AppDynamicsConfig.json to <executable_name>.AppDynamicsConfig.json in each project.
Also modify the ServiceManifest.xml in each of the project and add following -
<CodePackage ...>
<EntryPoint>
...
</EntryPoint>
<EnvironmentVariables>
<EnvironmentVariable Name="COR_ENABLE_PROFILING" Value="1" />
<EnvironmentVariable Name="COR_PROFILER" Value="{39AEABC1-56A5-405F-B8E7-C3668490DB4A}" />
<EnvironmentVariable Name="COR_PROFILER_PATH" Value="AppDynamics.Profiler_x64.dll" />
</EnvironmentVariables>
</CodePackage>
Update the <executable_name>.AppDynamicsConfig.json in each service project, with following -
{ "controller": { "host":"ControllerHost", "port":ControllerPort, "account":"ControllerAccount", "password":"AccessKey" }, "application": { "name":"NameOfTheControllerApplication" } }
Publish the Services to the Cluster from Visual Studio, it will publishes the added new files as content of the deployed package.
On applying the load on the applications, we started seeing the tiers getting registered for each hosted service in controller.
Agent logs were getting created under D:\LogFiles\AppDynamics on the Cluster VMs.
Note: As per your screenshot looks like you have added the nuget package by the package manager in the solution, that is not needed. Which creates a folder Appdynamics in the project and adds all the files in it. The steps shared above is needed to be performed manually after downloading and extracting the nuget package on the machine.
Attached screenshot of the my test project which I created for testing the behaviour.
... View more
Latest Activity
- Got a Kudo for Re: BT requests and survival. 11-17-2020 10:26 AM
- Got a Kudo for Re: Memory Utilization Analysis. 10-24-2019 10:56 AM
- Got a Kudo for Re: Monitoring APIs using ping methods. 10-14-2019 02:55 AM
- Got a Kudo for Re: Issue with .NET Core Microservices Agent for Windows. 02-04-2019 03:33 PM
- Posted Re: Installing .net agent on Windows 10. Getting Error during install : AppDynamics. Installation success or error status: 1603. on NET (Agent, Installation). 09-17-2018 11:19 PM
- Posted Re: Issue with .NET Core Microservices Agent for Windows on NET (Agent, Installation). 09-17-2018 08:02 AM
- Posted Re: Problems with AppDynamic for AppService on NET (Agent, Installation). 09-04-2018 10:48 PM
- Posted Re: How to integrate AppDynamcis APM to monitor .NET Core 2.0 Docker Container Application on Linux? on NET (Agent, Installation). 08-20-2018 11:11 PM
- Posted Re: App Server Agents are not responding on NET (Agent, Installation). 07-27-2018 12:27 AM
- Posted Re: Unable to uninstall Dot Net from Windows server on NET (Agent, Installation). 07-02-2018 03:58 AM
- Posted Re: Unable to install .NET agent on Azure cloud service instance on NET (Agent, Installation). 05-29-2018 11:10 PM
- Posted Re: How can I monitor Disk space on windows machine? on Infrastructure (Server, Network, Database). 04-19-2018 02:55 AM
- Got a Kudo for Re: Service Fabric Project. 04-09-2018 11:38 AM
- Posted Re: Instrument data collector for .net transactions to get method level drill,defined in .net progra on NET (Agent, Installation). 03-23-2018 03:26 AM
- Got a Kudo for Re: Service Fabric Project. 03-19-2018 02:36 AM
- Posted Re: Service Fabric Project on NET (Agent, Installation). 03-08-2018 03:09 AM
- Posted Re: .Net app websockets on NET (Agent, Installation). 03-07-2018 07:34 PM
- Posted Re: Monitoring Windows Service availablity or health check on NET (Agent, Installation). 02-11-2018 07:39 PM
- Posted Re: Memory Utilization Analysis on NET (Agent, Installation). 12-25-2017 08:42 PM
- Posted Re: BT requests and survival on NET (Agent, Installation). 12-25-2017 08:18 PM
Community Stats
Date Registered | 10-04-2015 10:13 PM |
Date Last Visited | 04-01-2021 06:53 PM |
Total Messages Posted | 23 |
Total Kudos Received | 7 |