Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom metrics for application monitoring #341

Merged
merged 7 commits into from
Oct 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
environment:
SYNSE_LOGGING: debug
SYNSE_PLUGIN_TCP: emulator-plugin:5001
SYNSE_METRICS_ENABLED: "true"
links:
- emulator-plugin
healthcheck:
Expand Down
16 changes: 13 additions & 3 deletions examples/monitoring/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,36 @@ services:
container_name: synse-server
image: vaporio/synse-server
ports:
- "5000:5000"
- '5000:5000'
links:
- emulator
environment:
SYNSE_LOGGING: debug
SYNSE_PLUGIN_TCP: emulator:5001
SYNSE_METRICS_ENABLED: "true"

emulator:
container_name: emulator
image: vaporio/emulator-plugin
ports:
- '5001:5001'
command: ['--debug']

prometheus:
container_name: prometheus
image: prom/prometheus
volumes:
- ./prometheus/config.yaml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
- '9090:9090'
links:
- synse-server

grafana:
container_name: grafana
image: grafana/grafana
ports:
- "3000:3000"
- '3000:3000'
volumes:
- ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/default.yaml
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/default.yaml
Expand Down
6 changes: 3 additions & 3 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ aiohttp==3.6.2
async-timeout==3.0.1 # via aiohttp
asynctest==0.13.0
atomicwrites==1.3.0 # via pytest
attrs==19.2.0 # via aiohttp, pytest
attrs==19.3.0 # via aiohttp, pytest
chardet==3.0.4 # via aiohttp
coverage==4.5.4 # via pytest-cov
idna-ssl==1.1.0 # via aiohttp
Expand All @@ -22,8 +22,8 @@ py==1.8.0 # via pytest
pyparsing==2.4.2 # via packaging
pytest-asyncio==0.10.0
pytest-cov==2.8.1
pytest-mock==1.11.1
pytest==5.2.1
pytest-mock==1.11.2
pytest==5.2.2
six==1.12.0 # via packaging
typing-extensions==3.7.4 # via aiohttp
wcwidth==0.1.7 # via pytest
Expand Down
14 changes: 6 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cachetools==3.1.1 # via google-auth
certifi==2019.9.11 # via httpcore, kubernetes, requests
chardet==3.0.4 # via httpcore, requests
google-auth==1.6.3 # via kubernetes
grpcio==1.24.1
grpcio==1.24.3
h11==0.8.1 # via httpcore
h2==3.1.1 # via httpcore
hpack==3.0.0 # via h2
Expand All @@ -22,9 +22,8 @@ idna==2.8 # via httpcore, requests
kubernetes==10.0.1
multidict==4.5.2 # via sanic
oauthlib==3.1.0 # via requests-oauthlib
prometheus-client==0.5.0 # via sanic-prometheus
prometheus-client==0.7.1
protobuf==3.10.0 # via synse-grpc
psutil==5.6.3 # via sanic-prometheus
pyasn1-modules==0.2.7 # via google-auth
pyasn1==0.4.7 # via pyasn1-modules, rsa
python-dateutil==2.8.0 # via kubernetes
Expand All @@ -34,16 +33,15 @@ requests-oauthlib==1.2.0 # via kubernetes
requests==2.22.0
rfc3986==1.3.2 # via httpcore
rsa==4.0 # via google-auth
sanic-prometheus==0.1.10
sanic==19.6.3
sanic==19.9.0
six==1.12.0 # via google-auth, grpcio, kubernetes, protobuf, python-dateutil, structlog, websocket-client
structlog==19.1.0
synse-grpc==3.0.0a3
structlog==19.2.0
synse-grpc==3.0.0a4
ujson==1.35 # via sanic
urllib3==1.25.6 # via kubernetes, requests
uvloop==0.13.0 # via sanic
websocket-client==0.56.0 # via kubernetes
websockets==7.0 # via sanic
websockets==7.0

# The following packages are considered to be unsafe in a requirements file:
# setuptools==41.4.0 # via kubernetes, protobuf
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@
'pyyaml>=4.2b1',
'requests>=2.20.0', # used by 'kubernetes'
'sanic>=0.8.0',
'sanic-prometheus>=0.1.7',
'prometheus-client',
'structlog',
'synse-grpc==3.0.0a3', # fixme: for alpha v3 testing; update to stable v3 release
'websockets==7.0', # fixme: temporarily pin
'synse-grpc==3.0.0a4', # fixme: for alpha v3 testing; update to stable v3 release
],
zip_safe=False,
classifiers=[
Expand Down
Loading