Skip to content

bazaarvoice/swat-observability-logger-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swat-observability-logger

Running Datadog-agent

  1. Install agent via terminal using below command. Get the <BV_API_KEY> from Bazaarvoice Datadog integration page.

    DD_AGENT_MAJOR_VERSION=7 DD_API_KEY="<BV_API_KEY>" DD_SITE="datadoghq.com" bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_mac_os.sh)"
    
  2. Commands to start, stop and check status of the agent

    launchctl stop com.datadoghq.agent
    launchctl start com.datadoghq.agent
    datadog-agent status
    
  3. Modify ~/.datadog-agent/datadog.yaml file with DD BV_API_KEY, agent's global configurations.

  4. Create a directory /nodejs.d/conf.yaml under ~/.datadog-agent/conf.d/ to add configuration specific to our log file (app.log for this application)

  5. /nodejs.d/conf.yaml would look like below

     ##Log section
     logs:
     - type: file
       path: "/Users/varsha.adiga/Documents/work/swat-observability-logger/logs/app.log"
       service: NodeErrorLogger
       source: nodejs
       sourcecategory: sourcecode
       start_position: beginning
       auto_multi_line_detection: true
    

    Datadog Dashboards

       https://app.datadoghq.com/dashboard/wx2-ikx-c63?from_ts=1645678526608&to_ts=1646283326608&live=true
    

About

Repository for SWAT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.7%
  • Dockerfile 2.3%