-
Notifications
You must be signed in to change notification settings - Fork 29
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
Querying multi dimensions in a single job #21
Comments
and also, for the same resourceType, I was not able to access the azure via via resourceGroup scope with /resource end point.
|
what mismatch do you get? can you give me more details? (added code blocks to your posts) |
i need to configure multiple dimensions for multiple metrics in a single job name Everything needs to be configured under single prometheus job name
|
which version are you using? you should get a warning message in the console/container logs that the metric query wasn't possible: for
for
|
as a hint: you can try and execute queries with |
yes,the combinations were not possible as metric doesnot support requested dimension combination if the combination is different,i need to write a new job for this combination I need to write 4 different jobs only then data is matching |
lastest docker image is used |
you need at least two jobs because the dimensions are different suggestion for metric:ServerSideLatency, use
for metric NormalisedRUConsumption use
on Prometheus side you can combine the samples using azure-metrics-exporter itself is just a client to Azure Monitor API and doesn't do any additional transformations. It only fetches the metrics and provides them for Prometheus. So you can transform/combine them with PromQL. |
DatabaseName eq 'osco' and CollectionName eq '' and ConnectionMode eq '' this is giving wrong data actually if i use it as this gives correct data when compared to azure |
Are you checking the metrics in Prometheus? And you don't get the combined metrics when you |
Hi @mblaschke
time="2022-06-14T12:33:12+05:30" level=warning msg="insights.MetricsClient#List: Failure responding to request: StatusCode=529 -- Original and also i see a lot of gaps in metrics when viewed in grafana.I tried decreasing the scrape interval to 1m but my jobs are getting down very fastly showing "context deadline exceed" How can i resolve this?? |
the following error message is coming from the Azure API, not from the exporter itself. The Azure API is failing here so you might want to approach your Azure support.
Something is Azure is broken, it's not the exporter. The exporter cannot fix anything if the Azure API is down or is not responding (the error message itself is also "procuded" from autorest/azure which is the azure-sdk-for-go). For the gaps:
If, for any reason, the Azure API is failing (see error messge) the exporter cannot do anything and it will produce gaps as the Azure API is not responding. Normally this is not happening often but also the Azure API can be down, for outages check https://status.azure.com/en-us/status For caching:
and set cache to the same time as the interval:
then the exporter will be queried every minute but will deliver the same metric until the cache invalidates (5 minutes). |
Hi @mblaschke thankyou for consistent response For this dimension: DatabaseName eq 'osco' or DatabaseName eq 'orderff' or DatabaseName eq 'auth' and CollectionName eq '' and ConnectionMode eq '' and OperationType eq '*' I am seeing data for osco but very less data for orderff or auth.I am able to see 1-2 scrapes in 1 hour interval and can you help me to understand what is the difference between these key value pairs? is the understanding correct? |
If you use dimensions you get the top N results from the API, see https://docs.microsoft.com/en-us/rest/api/monitor/metrics/list (azure-metrics-exporter is just an Azure Monitor Metrics API client). If you don't specify For |
closed due to inactivity |
Hi,
I am working on config to get metrics from multi dimension from a single resource type
my config looks like this
when i use this config, there is a mismatch of data between azure and exporter data
is there a way to specify all dimensions(CollectionName,OperationType,ConnectionMode)of a particular metric(Server side latency) in a single job name ?
can you help me with this? @mblaschke
The text was updated successfully, but these errors were encountered: