-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
[QUESTION] Getting error when using customNamespace #920
Comments
@bc-ibiks what version of YACE are you running? Usage of custom namespaces is deprecated and might be removed or changed in future versions. I think the error might be due to the period and length you're using, which are shorter than the scrape interval. If you definitely need to keep the value of Please replace your custom namespace job with a static job as well. |
@cristiangreco thanks for the update |
@bc-ibiks great, please let me know 👍 |
@cristiangreco I have move my config to static job
|
@bc-ibiks what version of YACE are you using? Can you make sure it's the latest please? Also, can you run with |
I have updated the latest version of YACE - v0.51.0 I am seeing the error below: is enableMetricData deprecated?
I removed enableMetricData = true from my config I am looking through the logs with -debug switched on saw the below for the metric in the custom namespace
|
Yes that field has been removed long time ago. CustomNamespace jobs are also deprecated, that's why I was suggesting to swithc to a Static job. |
@bc-ibiks it seems the response from AWS GetMetricStatistics does not contain any datapoint. You mentioned that you can see metrics in CloudWatch. What happens if you run the AWS cli |
I will let you know what I find out - thanks |
I have YACE running in >60 accounts and ran into this exact same issue. What solved it for me was adding the
I also found that the Also, I ran into another issue with "duplicate" metrics when using |
thanks! @mhester-nutrien. I will give this a test and let you know |
@cristiangreco and @mhester-nutrien I was able to retrieve the custom metric using prometheus cloudwatch exporter. (which is a tad annoying to use) Seems I am missing some settings in my config |
I am getting the following error when attempting to export metric from a customnamespace
"custom_metric_namespace":"ANI","error":"ValidationError: The parameter StartTime must not equal parameter EndTime.\n\tstatus code: 400
Config
customNamespace:
namespace: ANI
regions:
roles:
enableMetricData: true
metrics:
statistics:
period: 60
length: 60
nilToZero: true
statistics:
period: 60
length: 60
nilToZero: true
The text was updated successfully, but these errors were encountered: