log_processing_rules:
- type: exclude_at_match
name: exclude_sensitive_info
pattern: (?:sensitive\-info)
| rem Set environment variables | |
| SET COR_ENABLE_PROFILING=1 | |
| SET COR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8} | |
| rem Start application | |
| example.exe |
| [String[]] $v = @("COR_ENABLE_PROFILING=1", "COR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}","CORECLR_ENABLE_PROFILING=1", "CORECLR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}", "DD_TRACE_ANALYTICS_ENABLED=true", "DD_AspNet_ENABLED=true", "DD_LOGS_INJECTION=true") | |
| Set-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\W3SVC -Name Environment -Value $v | |
| Set-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\WAS -Name Environment -Value $v | |
| net stop was /y | |
| net start w3svc |
| using System; | |
| using System.Collections.Generic; | |
| using Microsoft.AspNetCore.Mvc; | |
| using Microsoft.WindowsAzure.Storage; | |
| using Microsoft.WindowsAzure.Storage.Blob; | |
| using Datadog.Trace; //Adding the Datadog.Trace nuget package (https://www.nuget.org/packages/Datadog.Trace) | |
| namespace BlobServiceAPI.Controllers | |
| { | |
| [Route("api/[controller]")] |
| @ECHO OFF | |
| SETLOCAL ENABLEDELAYEDEXPANSION | |
| SETLOCAL ENABLEEXTENSIONS | |
| ECHO Verifying installer package... | |
| ECHO. | |
| REM The value of this path will be changed during build to use the version stamped msi file. | |
| SET msi_path="%~dp0AppDynamics\dotNetAgentSetup.msi" | |
| image: | |
| repository: datadog/agent | |
| tag: latest | |
| pullPolicy: IfNotPresent | |
| nameOverride: "" | |
| fullnameOverride: "" | |
| datadog: | |
| apiKey: xxx | |
| appKey: xxx | |
| name: datadog |
| docker run -d -v ~/opt/couchbase/var/lib/couchbase/logs/*.log --restart always --name db -p 8091-8094:8091-8094 -p 11210:11210 -l com.datadoghq.ad.check_names='["couchbase"]' -l com.datadoghq.ad.init_configs='[{}]' -l com.datadoghq.ad.instances='[{"server":"http://%%host%%:8091","query_monitoring_url":"http://%%host%%:8093","username":"Administrator","password":"admin123"}]' -l com.datadoghq.ad.logs='[{"source":"couchbase", "service":"db"}]' couchbase |
| # Download agent | |
| (Invoke-WebRequest https://s3.amazonaws.com/ddagent-windows-stable/datadog-agent-7-latest.amd64.msi -OutFile c:\datadog-agent-7-latest.amd64.msi) | |
| # Download .NET Tracer v1.13x64 .msi | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| (Invoke-WebRequest https://github.com/DataDog/dd-trace-dotnet/releases/download/v1.13.0/datadog-dotnet-apm-1.13.0-x64.msi -OutFile c:\datadog-dotnet-apm-1.13.0-x64.msi) | |
| # Start the Datadog agent | |
| (Start-Process -Wait msiexec -ArgumentList '/qn /i c:\datadog-agent-7-latest.amd64.msi APIKEY=xxx HOSTNAME="my_hostname" TAGS="mytag1,mytag2"') |
| init_config: | |
| instances: | |
| - type: | |
| - Information | |
| - Critical | |
| - Error | |
| - Warning | |
| - Information | |
| - Audit Failure | |
| - Audit Success |
| #!/bin/bash | |
| # install the Datadog agent | |
| DD_AGENT_MAJOR_VERSION=7 DD_API_KEY=xxx DD_TAGS="env:edp" DD_SITE="datadoghq.eu" bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/datadog-agent/master/cmd/agent/install_script.sh)" | |
| # Enable logs and process | |
| sudo sed -i '/# logs_enabled: false/a logs_enabled: true' /etc/datadog-agent/datadog.yaml | |
| sudo sed -i '/# process_config:/a process_config:\n\ \ \enabled: "true"' /etc/datadog-agent/datadog.yaml | |
| # Enable network |