This file contains 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
#!/usr/bin/env ipython | |
import json | |
import urllib | |
import requests | |
policy = { | |
"policy": { |
This file contains 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
diff --git a/vendor/go.elastic.co/apm/module/apmhttp/handler.go b/vendor/go.elastic.co/apm/module/apmhttp/handler.go | |
index 2614c2c4..169d2fe5 100644 | |
--- a/vendor/go.elastic.co/apm/module/apmhttp/handler.go | |
+++ b/vendor/go.elastic.co/apm/module/apmhttp/handler.go | |
@@ -2,6 +2,8 @@ package apmhttp | |
import ( | |
"context" | |
+ "log" | |
+ "runtime/debug" |
This file contains 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
#!/Users/gil/.venv/ipy/bin/python | |
import io | |
import hashlib | |
import os | |
import requests | |
VERSIONS = ["6.0", "6.1", "6.2", "6.3", "6.4", "6.5", "6.6", "6.7", "6.8", "7.0", "7.1", "7.x"] |
This file contains 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
apm-go-load-gen |
This file contains 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
#!/usr/bin/env python | |
import json | |
import requests | |
def main(): | |
rsp = requests.get("http://localhost:9200/.monitoring-beats*/_search?sort=timestamp:desc", headers={"Accept": "application/json"}) | |
rsp.raise_for_status() | |
hits = rsp.json()['hits']['hits'] |
This file contains 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
#!/bin/bash -ex | |
if [ -z "$4" ]; then | |
echo "usage: $0 <cloud_id> <es_pass> <apm_secret_token> <apm_server_url>" | |
exit 1 | |
fi | |
CLOUD_ID=$1 | |
ES_PASS=$2 | |
APM_SECRET_TOKEN=$3 |
This file contains 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
// +build linux,cgo darwin,cgo | |
package main | |
import "C" | |
import ( | |
"fmt" | |
"strconv" | |
) |
This file contains 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
#!/usr/bin/env python | |
import timeit | |
import json | |
args = dict(ensure_ascii=False) | |
def dump_and_write(obj, fp): |
This file contains 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
#!/usr/bin/env python | |
import json | |
def dump(fields, pfx=None): | |
if pfx is None: | |
pfx = [] | |
for field, attribs in sorted(fields.items()): | |
if 'properties' in attribs: | |
dump(attribs['properties'], pfx + [field]) |
This file contains 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
{ | |
"apm-6.2.3": { | |
"aliases": {}, | |
"index_patterns": [ | |
"apm-6.2.3-*" | |
], | |
"mappings": { | |
"doc": { | |
"_meta": { | |
"version": "6.2.3" |