Skip to content

Instantly share code, notes, and snippets.

View pythianliappis's full-sized avatar

Dimitrios Liappis pythianliappis

  • Pythian
View GitHub Profile
[2015-01-04 11:30:07,021] [MainThread] traceback: Traceback (most recent call last):
File "/usr/bin/diamond", line 291, in main
server.run()
File "/usr/lib/python2.6/site-packages/diamond/server.py", line 103, in run
self.handlers = load_handlers(self.config, handlers)
File "/usr/lib/python2.6/site-packages/diamond/utils/classes.py", line 86, in load_handlers
h = cls(handler_config)
File "/usr/lib/python2.6/site-packages/diamond/handler/archive.py", line 35, in __init__
encoding=self.config['encoding']
File "/usr/lib64/python2.6/logging/handlers.py", line 164, in __init__
@pythianliappis
pythianliappis / deploy.json
Created November 7, 2014 07:19
same json code for shipyard api container deployment
{
"domain": "",
"args": [
"/apprunner.sh"
],
"labels": [
"destlabel"
],
"cpus": 1.0,
"container_name": "mynewimage",
@pythianliappis
pythianliappis / docker_inspect_no_cpu_mem_limits
Created October 24, 2014 18:12
docker inspect output from deploying redis
[{
"Args": [
"--dir",
"/redis-data"
],
"Config": {
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": [
@pythianliappis
pythianliappis / gist:761651415333306ff5c2
Created October 24, 2014 17:22
Registrator working when cpu/mem not defined
$ docker logs cdcaf513965c
2014/10/24 17:20:03 registrator: Using consul registry backend at consul://10.10.4.203:8500
2014/10/24 17:20:03 registrator: ignored: cdcaf513965c no published ports
2014/10/24 17:20:03 registrator: ignored: 2e154784c02f no published ports
2014/10/24 17:20:03 registrator: Listening for Docker events...
2014/10/24 17:21:14 registrator: added: 4158db669660 10.10.4.203:goofy_darwin:6379
Starting with a clean config:
[flapjack@sensu1 ~]$ curl -w 'response: %{http_code} \n' -X DELETE 'http://localhost:4081/contacts/21'
response: 204
[flapjack@sensu1 ~]$ curl -X GET http://localhost:4081/contacts | python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 83 0 83 0 0 12349 0 --:--:-- --:--:-- --:--:-- 0
{