Skip to content

Instantly share code, notes, and snippets.

@ja-ilija
ja-ilija / metrics
Created July 2, 2015 12:35
metrics for dropwizard service
{
"jvm": {
"vm": {
"name": "OpenJDK 64-Bit Server VM",
"version": "1.7.0_79-b14"
},
"memory": {
"totalInit": 89326208,
"totalUsed": 115503456,
"totalMax": 1156579328,
Delivered-To: ilija@gluru.co
Received: by 10.202.200.213 with SMTP id y204csp1003520oif;
Sun, 26 Apr 2015 15:36:41 -0700 (PDT)
X-Received: by 10.202.90.197 with SMTP id o188mr7142308oib.62.1430087801239;
Sun, 26 Apr 2015 15:36:41 -0700 (PDT)
Return-Path: <tim@gluru.co>
Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com. [209.85.214.173])
by mx.google.com with ESMTPS id cx9si5584419oec.13.2015.04.26.15.36.40
for <ilija@gluru.co>
@ja-ilija
ja-ilija / gist:fe1275f2e1883e4c1904
Last active August 29, 2015 14:20
ES prod response
{
"count": 2251,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
}
}
@ja-ilija
ja-ilija / gist:443cbae3713821e31dc0
Last active August 29, 2015 14:20
ES prod query
https://ops.gluru.co/esgloo/files/file/_count?routing=11
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool": {
"must": [
@ja-ilija
ja-ilija / gist:f5597126a58a60b3fc1e
Last active August 29, 2015 14:20
ES devel response
{
"count": 3054,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
}
}
@ja-ilija
ja-ilija / gist:e4c2c2cb861953f44848
Last active August 29, 2015 14:20
ES devel query
https://ops.gluru.co/esgloo/files/file/_count?routing=41
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool": {
"must": [
@ja-ilija
ja-ilija / gist:7a8290775acf0127d896
Created April 19, 2015 17:18
time range query es
{
"size": 10,
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool": {
"must": [
@ja-ilija
ja-ilija / retry
Created March 4, 2015 11:30
retryable dataInterface
package com.gloo.data.abstractions.retryable;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.gloo.data.abstractions.AbstractDataInterface;
import com.gloo.util.IRetryer;
10.0.67.240 110.159.32.147 gluru.co [23/Feb/2015:08:34:14 0000] "GET /metrics/event?timestamp=1424660663580&userId=idError&eventType=NotificationDismissed&platformInfo={"model":"SM-N9005","operatingSystem":"android","appVersion":"1.1.1","deviceType":"1080,1920","locale":"zh_CN","make":"samsung","deviceId":"1cc333542e16293c","version":"4.4.2"}&eventData={} HTTP/1.1" 204 "-" "-"
Microsoft account
Security code
Please use the following security code for the Microsoft account de*****@glooteam.com.
Security code: *******
If you didn't request this code, you can safely ignore this email. Someone else might have typed your email address by mistake.
Thanks,
The Microsoft account team