Skip to content

Commit

Permalink
Upgrade dependencies + minor fixes (#19)
Browse files Browse the repository at this point in the history
* Upgrade minimum datadog version + minor fixes

* explicitly declare dep on setuptools and fix shebang
  • Loading branch information
wbertelsen authored Feb 20, 2019
1 parent 6bfec55 commit a579f30
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Example Graphs
```
git clone git@github.com:eero-inc/garbagedog.git
cd garbagedog
virtualenv --python=python3 ENV
python3 -m venv ENV
source ENV/bin/activate
pip install -e .
```
Expand All @@ -97,7 +97,7 @@ pip install -e .
```
git clone git@github.com:eero-inc/garbagedog.git
cd garbagedog
virtualenv --python=python3 ENV
python3 -m venv ENV
source ENV/bin/activate
pip install -r dev_requirements.txt
Expand All @@ -110,12 +110,13 @@ On your targeted environment check out the source and build
```
git clone git@github.com:eero-inc/garbagedog.git
cd garbagedog
virtualenv --python=python3 ENV
python3 -m venv ENV
source ENV/bin/activate
pip install pex
./build.sh
```

## About
Made for [eero](https://eero.com/) Hack Week 2017 - ps we're hiring! https://eero.com/jobs

Not related to the retired RedHat project also called garbagedog
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
fi

ARTIFACT=./dist/garbagedog-${OS}-${VERSION}.pex
env PEX_VERBOSE=1 pex . -r requirements.txt -o ${ARTIFACT} -c garbagedog --disable-cache -f $PWD && echo Built to ${ARTIFACT}
env PEX_VERBOSE=1 pex . -r requirements.txt -o ${ARTIFACT} -c garbagedog --python-shebang="/usr/bin/env python3" --disable-cache -f $PWD && echo Built to ${ARTIFACT}
1 change: 1 addition & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ mock
mypy
pycodestyle
pytest
pex
16 changes: 8 additions & 8 deletions garbagedog/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

# These regexes are modified from https://github.com/Netflix-Skunkworks/gcviz, Copyright 2013 Netflix, under APACHE 2.0
THREE_ARROWS_REGEX = re.compile("->.*->.*->", re.MULTILINE)
SIZE_REGEX = re.compile("^([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{3}[+]0000):"
" ([0-9]+[.][0-9]{3}): .* ([0-9]+)K->([0-9]+)K\(([0-9]+)K\).*"
" ([0-9]+)K->([0-9]+)K\(([0-9]+)K\)", re.MULTILINE)
SIZE_REGEX = re.compile(r"^([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{3}[+]0000):"
r" ([0-9]+[.][0-9]{3}): .* ([0-9]+)K->([0-9]+)K\(([0-9]+)K\).*"
r" ([0-9]+)K->([0-9]+)K\(([0-9]+)K\)", re.MULTILINE)

ABSOLUTE_TIME_REGEX = re.compile("^([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{3}[+]0000):", re.MULTILINE)
RELATIVE_TIME_REGEX = re.compile("^[0-9]+[.][0-9]+: ")
ABSOLUTE_TIME_REGEX = re.compile(r"^([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{3}[+]0000):", re.MULTILINE)
RELATIVE_TIME_REGEX = re.compile(r"^[0-9]+[.][0-9]+: ")

CONFLATED_RELATIVE_REGEX = re.compile("(^.*[0-9]+[.][0-9]+ secs])([0-9]+[.][0-9]+: .*$)", re.MULTILINE)
CONFLATED_ABSOLUTE_REGEX = re.compile("(^.*)([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.*)", re.MULTILINE)
CONFLATED_RELATIVE_REGEX = re.compile(r"(^.*[0-9]+[.][0-9]+ secs])([0-9]+[.][0-9]+: .*$)", re.MULTILINE)
CONFLATED_ABSOLUTE_REGEX = re.compile(r"(^.*)([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.*)", re.MULTILINE)

TIMES_REGEX = re.compile(".*real=([0-9][0-9]*[.][0-9][0-9]*) secs\]\s*", re.MULTILINE)
TIMES_REGEX = re.compile(r".*real=([0-9][0-9]*[.][0-9][0-9]*) secs\]\s*", re.MULTILINE)

TIMEFORMAT = "%Y-%m-%dT%H:%M:%S.%f%z"

Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='garbagedog',
version='0.0.12',
version='0.0.14',
description='Parse JVM gc.logs and emit stats over dogstatsd',
author='Will Bertelsen',
author_email='willb@eero.com',
Expand All @@ -14,7 +14,8 @@
],
python_requires='>=3.4',
install_requires=[
'datadog',
'datadog>=0.26.0',
'typing',
'setuptools>=40.8.0'
],
)

0 comments on commit a579f30

Please sign in to comment.