Skip to content

Instantly share code, notes, and snippets.

View mathewmoon's full-sized avatar

Mathew Moon mathewmoon

View GitHub Profile
#!/usr/bin/env python3.7
import sys
import re
import base64
from jsonpath_ng import jsonpath, parse
from sly import Lexer, Parser
message = {'body': {'bar': 'baz', 'baz': [1, 2, 3, 4, 5, 6, 7, 8], 'foo': 'bar'}}
autQry = "bar IN body AND body.baz[0]=1"
#!/usr/bin/env python3.7
import sys
import re
import base64
from jsonpath_ng import jsonpath, parse
from sly import Lexer, Parser
message = {'body': {'bar': 'baz', 'baz': [1, 2, 3, 4, 5, 6, 7, 8], 'foo': 'bar'}}
autQry = "bar IN body AND body.baz[0]=1"
#!/usr/bin/env python3.7
import sys
import re
import base64
from jsonpath_ng import jsonpath, parse
from sly import Lexer, Parser
message = {'body': {'bar': 'baz', 'baz': [1, 2, 3, 4, 5, 6, 7, 8], 'foo': 'bar'}}
autQry = "bar IN body AND body.baz[0]=1"
journalDirectory=/opt/bookkeeper/journal
# Accepts multiple directories
ledgerDirectories=/opt/bookkeeper/ledgers
# Can be the same as ledgerDirectories
#indexDirectories=/opt/bookkeeper/indexes
bookiePort=3181
journalDirectory=/opt/bookkeeper/journal
# Accepts multiple directories
ledgerDirectories=/opt/bookkeeper/ledgers
# Can be the same as ledgerDirectories
#indexDirectories=/opt/bookkeeper/indexes
bookiePort=3181
amazon-ebs: + sudo pip3 install crypto pyopenssl requests boto3 botocore
amazon-ebs: WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
amazon-ebs: Collecting crypto
amazon-ebs: Downloading https://files.pythonhosted.org/packages/fc/bb/0b812dc02e6357606228edfbf5808f5ca0a675a84273578c3a199e841cd8/crypto-1.4.1-py2.py3-none-any.whl
amazon-ebs: Collecting pyopenssl
amazon-ebs: Downloading https://files.pythonhosted.org/packages/01/c8/ceb170d81bd3941cbeb9940fc6cc2ef2ca4288d0ca8929ea4db5905d904d/pyOpenSSL-19.0.0-py2.py3-none-any.whl (53kB)
amazon-ebs: 100% |████████████████████████████████| 61kB 11.5MB/s
amazon-ebs: Collecting requests
amazon-ebs: Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
amazon-ebs: 100% |████████████████████████████████| 61kB 11.2MB/s
{
"board_title": "Pulsar ${cluster}",
"read_only": false,
"author_info": {
"author_name": "Mathew Moon"
},
"description": "",
"board_bgtype": "board_graph",
"created": "2019-05-14T19:05:55.876110+00:00",
"created_by": {
# TYPE zk_read_latency summary
zk_read_latency{cluster="echo-1a",quantile="0.5"} NaN
zk_read_latency{cluster="echo-1a",quantile="0.75"} NaN
zk_read_latency{cluster="echo-1a",quantile="0.95"} NaN
zk_read_latency{cluster="echo-1a",quantile="0.99"} NaN
zk_read_latency{cluster="echo-1a",quantile="0.999"} NaN
zk_read_latency{cluster="echo-1a",quantile="0.9999"} NaN
zk_read_latency_count{cluster="echo-1a"} 0.0
zk_read_latency_sum{cluster="echo-1a"} 0.0
# TYPE jetty_requests_total counter
Getting the status from the agent.
===============
Agent (v6.10.1)
===============
Status date: 2019-05-15 18:08:17.485928 UTC
Pid: 372
Python Version: 2.7.15
Logs:
# TYPE zk_read_latency summary
zk_read_latency{cluster="echo-0",quantile="0.5"} NaN
zk_read_latency{cluster="echo-0",quantile="0.75"} NaN
zk_read_latency{cluster="echo-0",quantile="0.95"} NaN
zk_read_latency{cluster="echo-0",quantile="0.99"} NaN
zk_read_latency{cluster="echo-0",quantile="0.999"} NaN
zk_read_latency{cluster="echo-0",quantile="0.9999"} NaN
zk_read_latency_count{cluster="echo-0"} 0.0
zk_read_latency_sum{cluster="echo-0"} 0.0
# TYPE jvm_classes_loaded gauge