-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add tags to Datadog agent #142
Open
eddydecena
wants to merge
9
commits into
master
Choose a base branch
from
feature/datadog-tags
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+144
−147
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
93b96ef
fix: Add tags to Datadog agent
602540e
fix: Add tags to Datadog agent
262bfc8
fix: Add tags to Datadog agent
754f6d2
fix: Add tags to Datadog agent
769b767
fix: Add tags to Datadog agent
37dc6a8
fix: Add tags to Datadog agent
ca90b1b
fix: Add tags to Datadog agent
c16e634
Merge branch 'master' into feature/datadog-tags
efbf9cf
fix: Add tags to DD agent
eddydecena File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,123 @@ | ||
{ | ||
"name": "waggledance", | ||
"image": "${docker_image}:${docker_version}", | ||
${docker_auth} | ||
"essential": true, | ||
"logConfiguration": { | ||
"logDriver": "awslogs", | ||
"options": { | ||
"awslogs-group": "${loggroup}", | ||
"awslogs-region": "${region}", | ||
"awslogs-stream-prefix": "/" | ||
} | ||
}, | ||
"dockerLabels": { | ||
"com.datadoghq.ad.instances": "[{\"openmetrics_endpoint\": \"http://%%host%%:18000/actuator/prometheus\", \"namespace\": \"waggledance\", \"metrics\": [\"metastore_status\",\"counter_*\",\"jvm_*\",\"system_*\",\"timer_*\",\"http_*\",\"process_*\"], \"tags\": { \"region\":\"${region}\", \"instance_type\":\"${wd_instance_type}\"} }]", | ||
"com.datadoghq.ad.check_names": "[\"openmetrics\"]", | ||
"com.datadoghq.ad.init_configs": "[{}]" | ||
}, | ||
"portMappings": [ | ||
{ | ||
"containerPort": 48869, | ||
"hostPort": 48869 | ||
} | ||
], | ||
"environment":[ | ||
{ | ||
"name": "HEAPSIZE", | ||
"value": "${heapsize}" | ||
}, | ||
{ | ||
"name": "LOGLEVEL", | ||
"value": "${loglevel}" | ||
}, | ||
{ | ||
"name": "INVOCATIONLOGLEVEL", | ||
"value": "${invocationloglevel}" | ||
}, | ||
{ | ||
"name": "SERVER_YAML", | ||
"value": "${server_yaml}" | ||
}, | ||
{ | ||
"name": "FEDERATION_YAML", | ||
"value": "${federation_yaml}" | ||
}, | ||
{ | ||
"name": "HIVE_SITE_XML", | ||
"value": "${hive_site_xml}" | ||
}, | ||
{ | ||
"name": "BASTION_SSH_KEY_ARN", | ||
"value": "${bastion_ssh_key_arn}" | ||
}, | ||
{ | ||
"name": "LOG4J_FORMAT_MSG_NO_LOOKUPS", | ||
"value": "true" | ||
} | ||
], | ||
"healthCheck": { | ||
"command": ["CMD-SHELL", "curl -f http://localhost:18000/actuator/health || exit 1"], | ||
"interval": 5, | ||
"retries": 3, | ||
"startPeriod": 60, | ||
"timeout": 5 | ||
}, | ||
"ulimits": [ | ||
{ | ||
"name": "nofile", | ||
"softLimit": 65536, | ||
"hardLimit": 65536 | ||
}, | ||
{ | ||
"name": "nproc", | ||
"softLimit": 65536, | ||
"hardLimit": 65536 | ||
} | ||
], | ||
"systemControls": [ | ||
{ | ||
"namespace": "net.ipv4.tcp_keepalive_time", | ||
"value": "${tcp_keepalive_time}" | ||
}, | ||
{ | ||
"namespace": "net.ipv4.tcp_keepalive_intvl", | ||
"value": "${tcp_keepalive_intvl}" | ||
}, | ||
{ | ||
"namespace": "net.ipv4.tcp_keepalive_probes", | ||
"value": "${tcp_keepalive_probes}" | ||
} | ||
] | ||
} | ||
[ | ||
{ | ||
"name": "waggledance", | ||
"image": "${docker_image}:${docker_version}", | ||
${docker_auth} | ||
"essential": true, | ||
"logConfiguration": { | ||
"logDriver": "awslogs", | ||
"options": { | ||
"awslogs-group": "${loggroup}", | ||
"awslogs-region": "${region}", | ||
"awslogs-stream-prefix": "/" | ||
} | ||
}, | ||
"dockerLabels": { | ||
"com.datadoghq.ad.instances": "[{\"openmetrics_endpoint\": \"http://%%host%%:18000/actuator/prometheus\", \"namespace\": \"waggledance\", \"metrics\": [\"metastore_status\",\"counter_*\",\"jvm_*\",\"system_*\",\"timer_*\",\"http_*\",\"process_*\"], \"tags\": { \"region\":\"${region}\", \"instance_type\":\"${wd_instance_type}\"} }]", | ||
"com.datadoghq.ad.check_names": "[\"openmetrics\"]", | ||
"com.datadoghq.ad.init_configs": "[{}]" | ||
}, | ||
"portMappings": [ | ||
{ | ||
"containerPort": 48869, | ||
"hostPort": 48869 | ||
} | ||
], | ||
"environment": [ | ||
{ | ||
"name": "HEAPSIZE", | ||
"value": "${heapsize}" | ||
}, | ||
{ | ||
"name": "LOGLEVEL", | ||
"value": "${loglevel}" | ||
}, | ||
{ | ||
"name": "INVOCATIONLOGLEVEL", | ||
"value": "${invocationloglevel}" | ||
}, | ||
{ | ||
"name": "SERVER_YAML", | ||
"value": "${server_yaml}" | ||
}, | ||
{ | ||
"name": "FEDERATION_YAML", | ||
"value": "${federation_yaml}" | ||
}, | ||
{ | ||
"name": "HIVE_SITE_XML", | ||
"value": "${hive_site_xml}" | ||
}, | ||
{ | ||
"name": "BASTION_SSH_KEY_ARN", | ||
"value": "${bastion_ssh_key_arn}" | ||
}, | ||
{ | ||
"name": "LOG4J_FORMAT_MSG_NO_LOOKUPS", | ||
"value": "true" | ||
} | ||
], | ||
"healthCheck": { | ||
"command": ["CMD-SHELL", "curl -f http://localhost:18000/actuator/health || exit 1"], | ||
"interval": 5, | ||
"retries": 3, | ||
"startPeriod": 60, | ||
"timeout": 5 | ||
}, | ||
"ulimits": [ | ||
{ | ||
"name": "nofile", | ||
"softLimit": 65536, | ||
"hardLimit": 65536 | ||
}, | ||
{ | ||
"name": "nproc", | ||
"softLimit": 65536, | ||
"hardLimit": 65536 | ||
} | ||
], | ||
"systemControls": [ | ||
{ | ||
"namespace": "net.ipv4.tcp_keepalive_time", | ||
"value": "${tcp_keepalive_time}" | ||
}, | ||
{ | ||
"namespace": "net.ipv4.tcp_keepalive_intvl", | ||
"value": "${tcp_keepalive_intvl}" | ||
}, | ||
{ | ||
"namespace": "net.ipv4.tcp_keepalive_probes", | ||
"value": "${tcp_keepalive_probes}" | ||
} | ||
] | ||
} | ||
%{ if include_datadog_agent } | ||
,{ | ||
"name": "datadog-agent", | ||
"image": "public.ecr.aws/datadog/agent:${datadog_agent_version}", | ||
"essential": true, | ||
"logConfiguration": { | ||
"logDriver": "awslogs", | ||
"options": { | ||
"awslogs-group": "${loggroup}", | ||
"awslogs-region": "${region}", | ||
"awslogs-stream-prefix": "/" | ||
} | ||
}, | ||
"environment": [ | ||
{ | ||
"name": "DD_API_KEY", | ||
"value": "${datadog_secret_key}" | ||
}, | ||
{ | ||
"name": "ECS_FARGATE", | ||
"value": "true" | ||
}, | ||
{ | ||
"name": "DD_TAGS", | ||
"value": "${datadog_tags}" | ||
} | ||
] | ||
} | ||
%{ endif } | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the refactoring, keep it as 4 spaces instead of 2 tabs.