-
Notifications
You must be signed in to change notification settings - Fork 867
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
Can't query datadog logs using analysis template #2628
Comments
@joey100 seems that currently only metrics supported as you can see here You can also create logs pipeline in datadog to generate metrics and use them, maybe it should be feature request to support logs. |
Got it, thanks. |
we found the same issue where metrics is hard coded. still thinking of creative workarounds (thanks for the pipeline idea!), but unless there is a technical reason to avoid it supporting logs, apm/spans, etc. query types would be a useful feature. trying to use apiVersion: argoproj.io/v1alpha1
kind: ClusterAnalysisTemplate
metadata:
name: error-rate
spec:
args:
- name: dd-service-name
metrics:
- name: error-rate
interval: 1m
successCondition: default(result, 0) < 1
failureLimit: 1
provider:
datadog:
apiVersion: v2
interval: 1m
query: |
avg(last_1h):anomalies(sum:trace.graphql.execute.errors{cluster_name:foobah-eks-2022-09,env:production,service:{{args.dd-service-name}}}, 'robust', 4, direction='above', alert_window='last_5m', interval=1, count_default_zero='true') just removing
|
This issue is stale because it has been open 60 days with no activity. |
Checklist:
Describe the bug
When we use analysis template to query datadog logs, even though the analysisrun is running, the value is '[]', while in datadog we do see the results.
When we use analysis template to query datadog metrics, it works fine, the analysisrun runs and can get the expected values.
To Reproduce
Expected behavior
The analysisrun could query datadog logs successfully, with the correct logs result but not the nil result.
Screenshots
Version
1.4
Logs
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered: