Created
June 23, 2020 20:48
-
-
Save davidmlentz/23f3303e9275582898666abd412500e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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