This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: windows | |
| roles: | |
| - { role: Datadog.datadog } | |
| vars: | |
| datadog_api_key: [DATADOG_API_KEY] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: windows | |
| roles: | |
| - { role: Datadog.datadog } | |
| vars: | |
| datadog_api_key: [DATADOG_API_KEY] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $pwd = convertto-securestring "Admin!" -asplaintext -force | |
| $cred=new-object -typename System.Management.Automation.PSCredential -argumentlist ".\reutadmin",$pwd | |
| $windows_vms = @("192.168.86.66") | |
| $install_datadog = { | |
| & msiexec /qn /i datadog-agent-6-latest.amd64.msi APIKEY="DATADOG_API_KEY" HOSTNAME="my_hostname" TAGS="mytag1,mytag2" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| confd: | |
| docker.yaml: |- | |
| init_config: | |
| instances: | |
| - url: "unix://var/run/docker.sock" | |
| collect_events: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| import time | |
| import requests | |
| import simplejson | |
| from datadog import initialize, api | |
| """ | |
| This script gives a real time report on ec2 and Datadog agent host usage | |
| from multiple organizations and reports them up to the 'main' parent account. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| instances: | |
| # location of tomcat | |
| - host: 10.112.9.6 | |
| port: 9999 | |
| max_returned_metrics: 9500 | |
| # user: username | |
| # password: password | |
| # process_name_regex: .*process_name.* # Instead of specifying a host, and port. The agent can connect using the attach api. | |
| # # This requires the JDK to be installed and the path to tools.jar to be set below. | |
| # tools_jar_path: /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar # To be set when process_name_regex is set |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| mongo: | |
| build: ./mongo | |
| agent: | |
| build: ./agent | |
| environment: | |
| - DD_API_KEY | |
| - DD_APM_ENABLED=true | |
| - DD_BIND_HOST=0.0.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void EnterBtnActionPerformed(java.awt.event.ActionEvent evt) { | |
| try{ | |
| //set ID | |
| rep.setSalesRepID(Integer.parseInt(IDTF.getText().trim())); | |
| //set first name | |
| rep.setFirstName(FirstNameTF.getText().trim()); | |
| //set last name | |
| rep.setLastname(LastNameTF.getText().trim()); | |
| //set supplies | |
| rep.setOfficeSupplies(Double.parseDouble(OfficeSuppliesTF.getText().trim())); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: servers | |
| roles: | |
| - { role: Datadog.datadog, become: yes } | |
| vars: | |
| datadog_api_key: "123456" | |
| datadog_agent_version: "1:6.0.0-1" # for apt-based platforms, use a `6.0.0-1` format on yum-based platforms | |
| datadog_config: | |
| tags: "mytag0, mytag1" | |
| log_level: INFO | |
| apm_enabled: "true" # has to be set as a string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager ) | |
| { | |
| using (var scope = Tracer.Instance.StartActive("web.request")) | |
| { | |
| var span = scope.Span; | |
| span.Type = "web"; | |
| span.ResourceName = Request.Url.ToString(); | |
| span.SetTag("service", "fse-dotNet"); | |
| UserManager = userManager; |