Nicholas LoFaso
01/25/2022, 7:53 PMenv:
- name: DD_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
env
using V1EnvVar
, but Flyte doesn’t seem to translate to this field to the Pod. The request/limits are set on the Pod as I expect.
@task(
task_config=Pod(
pod_spec=V1PodSpec(
containers=[
V1Container(
name="primary",
resources=V1ResourceRequirements(
requests={"cpu": ".25", "memory": "250Mi"},
limits={"cpu": ".5", "memory": "500Mi"},
),
env=[V1EnvVar(name="MY_VAL", value="TEST")],
)
],
),
primary_container_name="primary",
)
)
am I missing something?Yee
kind: Service
apiVersion: v1
metadata:
name: flytestatsd
namespace: datadog
spec:
selector:
app: "your-datadog"
ports:
- protocol: UDP
port: 8125
targetPort: 8125
topologyKeys:
- "<http://kubernetes.io/hostname|kubernetes.io/hostname>"
- "*"
and
k8s:
plugins:
k8s:
default-env-vars:
- FLYTE_STATSD_HOST: "flytestatsd.datadog.svc.cluster.local"
- FLYTE_STATSD_DISABLE_TAGS: "True"
Nicholas LoFaso
01/25/2022, 8:05 PMFLYTE_STATSD_DISABLE_TAGS
?Yee
Nicholas LoFaso
01/25/2022, 8:12 PMYee
flytepropeller:
podAnnotations:
<http://ad.datadoghq.com/flytepropeller.check_names|ad.datadoghq.com/flytepropeller.check_names>: |
["openmetrics"]
<http://ad.datadoghq.com/flytepropeller.init_configs|ad.datadoghq.com/flytepropeller.init_configs>: |
[{}]
<http://ad.datadoghq.com/flytepropeller.instances|ad.datadoghq.com/flytepropeller.instances>: |
[
{
"prometheus_url": "<http://%%host%>%:10254/metrics",
"namespace": "propeller",
"metrics": [ "*" ],
"max_returned_metrics": 10000
}
]
plugins:
logs:
cloudwatch-enabled: true
cloudwatch-log-group: '/eks/opta-development/cluster'
cloudwatch-region: us-east-2
kubernetes-enabled: false
templates:
- displayName: Datadog
templateUris:
- |
<https://app.datadoghq.com/logs?event&from_ts={{> .podUnixStartTime }}000&live=false&query=pod_name%3A{{ .podName }}&to_ts={{ .podUnixFinishTime }}000