Skip to content

Instantly share code, notes, and snippets.

View ncracker's full-sized avatar

Boyan Syarov ncracker

View GitHub Profile
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: myApp
spec:
replicas: 2
template:
metadata:
name: myApp
labels:
docker run -d -v ~/opt/couchbase/var/lib/couchbase/logs/*.log --restart always --name db -p 8091-8094:8091-8094 -p 11210:11210 -l com.datadoghq.ad.check_names='["couchbase"]' -l com.datadoghq.ad.init_configs='[{}]' -l com.datadoghq.ad.instances='[{"server":"http://%%host%%:8091","query_monitoring_url":"http://%%host%%:8093","username":"Administrator","password":"admin123"}]' -l com.datadoghq.ad.logs='[{"source":"couchbase", "service":"db"}]' couchbase
{
"ipcMode": null,
"executionRoleArn": "arn:aws:iam::172597598159:role/ecsTaskExecutionRole",
"containerDefinitions": [
{
"dnsSearchDomains": null,
"environmentFiles": null,
"logConfiguration": {
"logDriver": "awslogs",
"secretOptions": null,
{{ if .Common }}
#########################
## Basic Configuration ##
#########################
## @param api_key - string - required
## The Datadog API key to associate your Agent's data with your organization.
## Create a new API key here: https://app.datadoghq.com/account/settings
#
api_key: {{ YOUR_API_KEY_HERE }}
id: apigateway
metric_id: amazon-api-gateway
facets:
-
name: Status Code
source: log
path: http.status_code
groups:
- Web Access
-
id: nginx
metric_id: nginx
facets:
-
name: Status Code
source: log
path: http.status_code
groups:
- Web Access
-
id: waf
metric_id: amazon-waf
facets:
-
name: Action
source: log
path: system.action
groups:
- System
-