Skip to content

Instantly share code, notes, and snippets.

@davidmlentz
Created June 23, 2020 20:48
Show Gist options
  • Save davidmlentz/23f3303e9275582898666abd412500e6 to your computer and use it in GitHub Desktop.
Save davidmlentz/23f3303e9275582898666abd412500e6 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: my-nginx
labels:
run: my-nginx
annotations:
ad.datadoghq.com/service.check_names: '["http_check"]'
ad.datadoghq.com/service.init_configs: '[{}]'
ad.datadoghq.com/service.instances: |
[
{
"name": "My Nginx Service",
"url": "http://%%host%%",
"timeout": 1
}
]
ad.datadoghq.com/endpoints.check_names: '["nginx"]'
ad.datadoghq.com/endpoints.init_configs: '[{}]'
ad.datadoghq.com/endpoints.instances: |
[
{
"name": "My Nginx Service Endpoints",
"nginx_status_url": "http://%%host%%:%%port%%/nginx_status"
}
]
ad.datadoghq.com/endpoints.logs: '[{"source":"nginx","service":"webapp"}]'
spec:
ports:
- port: 80
protocol: TCP
selector:
run: my-nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment