Skip to content

Instantly share code, notes, and snippets.

Gil Raphaelli graphaelli

View GitHub Profile
View query_monitoring.py
#!/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']
@graphaelli
graphaelli / .gitignore
Last active Dec 10, 2018
apm-agent-go load generator
View .gitignore
apm-go-load-gen
View check_changelogs.py
#!/usr/bin/env python
import io
import hashlib
import os
import requests
VERSIONS = ["6.0", "6.1", "6.2", "6.3", "6.4", "6.5", "6.100"]
@graphaelli
graphaelli / it.sh
Created Nov 16, 2018
cloud integration tests
View it.sh
#!/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
View keybase.md

Keybase proof

I hereby claim:

  • I am graphaelli on github.
  • I am gilad (https://keybase.io/gilad) on keybase.
  • I have a public key whose fingerprint is AAFB E3BD 0826 F233 940A CCC8 495C 3843 5CDD 3C83

To claim this, I am signing this object:

View main.go
// +build linux,cgo darwin,cgo
package main
import "C"
import (
"fmt"
"strconv"
)
View dump_bench.py
#!/usr/bin/env python
import timeit
import json
args = dict(ensure_ascii=False)
def dump_and_write(obj, fp):
View flatten_es_schema.py
#!/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])
View add_vendor_origins.py
#!/usr/bin/env python3
import json
import os
def direct_dep(pkg):
for d in {
"github.com/elastic/apm-agent-go",
"github.com/elastic/beats",
View apm-6.2.3-6.3.0.templates.json
{
"apm-6.2.3": {
"aliases": {},
"index_patterns": [
"apm-6.2.3-*"
],
"mappings": {
"doc": {
"_meta": {
"version": "6.2.3"
You can’t perform that action at this time.