Skip to content

Instantly share code, notes, and snippets.

@mmaloney
Created August 3, 2014 04:46
Show Gist options
  • Save mmaloney/de150ef7130a8e05b85c to your computer and use it in GitHub Desktop.
Save mmaloney/de150ef7130a8e05b85c to your computer and use it in GitHub Desktop.
kibana service template
{
"Command": "/usr/sbin/nginx",
"Endpoints": [
{
"Name": "http",
"Application": "http",
"PortNumber": 80,
"Protocol": "tcp",
"Purpose": "export",
"AddressConfig": {
"Port": 8080,
"Protocol": "tcp"
},
"VHosts": [
"kibana"
]
},
{
"Name": "elasticsearch",
"Application": "elasticsearch",
"PortNumber": 9300,
"Protocol": "tcp",
"Purpose": "import"
}
],
"ImageID": "qnib/elk:latest",
"Instances": {
"min": 1
},
"RAMCommitment": 536870912,
"Launch": "auto",
"ConfigFiles": {
"/opt/kibana-3.1.0/config.js": {
"Filename": "/opt/kibana-3.1.0/config.js",
"Owner": "nginx",
"Permissions": ""},
"/etc/nginx/nginx.conf": {
"Filename": "/etc/nginx/nginx.conf",
"Owner": "",
"Permissions": ""}
},
"LogConfigs": [
{
"path": "/var/log/nginx/*.log",
"type": "kibana"
}],
"Name": "kibana",
"Services": [],
"Tags": [
"daemon"
],
"Actions" : {
"status": "ps -ef | grep [n]ginx"},
"HealthChecks": {
"running": {
"Script": "echo $?",
"Interval": 20
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment