Skip to content

Instantly share code, notes, and snippets.

View conorbranagan's full-sized avatar

Conor Branagan conorbranagan

View GitHub Profile

Simple Veneur / Kubernetes Setup

This walks through standing up a simple Veneur setup in Kubernetes. It will emit a simple global counter (my.global.counter) that should only have the host tag from the global instance.

Setup

  1. Create your API key as a secret.

  • Create the secret in Kubernetes
@conorbranagan
conorbranagan / 00-README.md
Last active April 13, 2018 16:43
Live Process Alerts API

Creating Process Alerts via API

Query Format

processes(search).over(tags).rollup('count').last(timeframe) > thresholds
  • search: A search string for querying the processes. This will return the same search results as the live process page.
  • tags: Comma-separated list of tags to filter on. The .over() portion can be removed if there are no tag filters.
@conorbranagan
conorbranagan / 00-README.md
Last active June 8, 2018 09:43
Graph Query API

trace_graph_query.py provides a simple CLI for getting the trace graph data. It will use the org

Usage

usage: trace_graph.py [-h] [--api_key API_KEY]
                      [--application_key APPLICATION_KEY]
                      [--name {service,host}]

optional arguments:
#!/bin/bash
# (C) Datadog, Inc. 2010-2017
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
# Datadog process agent installation script: install and set up the process agent on supported Linux distributions
# using the package manager and Datadog repositories.
set -e
logfile="dd-process-agent-install.log"
@conorbranagan
conorbranagan / .block
Last active September 30, 2016 13:49 — forked from mbostock/.block
Labeled Force Layout
license: gpl-3.0
@conorbranagan
conorbranagan / pgconf_demo
Last active November 8, 2016 14:29 — forked from yannmh/elasticon_demo
PGConf demo template for Google Chrome
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --new-window "https://app.datadoghq.com/account/settings" \
"https://app.datadoghq.com/infrastructure/map?fillby=avg%3Acpuutilization&sizeby=avg%3Anometric&groupby=availability-zone&nameby=aws_name&nometrichosts=false&tvMode=false&nogrouphosts=false&palette=hostmap_blues&paletteflip=false"\
"https://app.datadoghq.com/dash/209380/pgconf"\
"https://app.datadoghq.com/monitors#/create"\
"https://app.datadoghq.com/monitors#1256515"\
"https://app.datadoghq.com/event/stream?tags_execution=and&show_private=true&per_page=30&aggregate_up=true&use_date_happened=false&display_timeline=true&from_ts=1452632400000&is_zoomed=false&to_ts=1453237200000&is_auto=false&incident=true&only_discussed=false&no_user=false&page=0&live=true&bucket_size=10800000"\
"https://www.datadoghq.com/customers/"\
"https://github.com/DataDog/dd-agent"\
"http://docs.datadoghq.com/api/"\
"https://www.datadoghq.com/win-with-datadog-wide.html"
@conorbranagan
conorbranagan / README.md
Created August 11, 2014 19:15
Agent Check: Windows Services
  1. Put windows_service.yaml in C:\ProgramData\Datadog\conf.d
  2. Put windows_service.py in C:\Program Files (x86)\Datadog\Datadog Agent\checks.d
  3. Restart the Agent.

You can update the services you want to by editing windows_service.yaml directly or with the Agent manager.

init_config:
instances:
# - name: (required) STRING. It will be used to uniquely identify your metrics as they will be tagged with this name
# search_string: (required) LIST OF STRINGS. If one of the elements in the list matches,
# return the counter of all the processes that contain the string
# exact_match: (optional) Boolean. Default to True, if you want to look for an arbitrary
# string, use exact_match: False
# cpu_check_interval: (optional) CPU percent check interval: 0.1 - 1.0 sec.
# ignore_denied_access: (optional) Boolean. Default to True, when getting the number of files descriptors, dd-agent user might
@conorbranagan
conorbranagan / gist:ad1ab3ec8121284314eb
Last active August 29, 2015 14:03
kafka.yaml init_config
init_config:
is_jmx: true
# Metrics collected by this check. You should not have to modify this.
conf:
#
# Aggregate cluster stats
#
- include:
domain: '"kafka.server"'
@conorbranagan
conorbranagan / 0_reuse_code.js
Created May 28, 2014 21:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console