Closed chenfli closed 2 years ago
I didn't see any code on com.microsoft.azure on your stacktrace.
And which SDK are you using?
Hi, Attached the pom part which uses azure jars.
I just wanted to know if I can get on a per topic the following metrics: IncomingMessages OutgoingMessages
Cause right now I only get
SuccessfulRequests
IncomingRequests
QuotaExceededErrors
UserErrors
ServerErrors
Size
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-eventhubs</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-netty</artifactId>
<version>1.11.2</version>
</dependency>
@chenfli
Used your code, no problem getting "IncomingMessages" with topicName = <my event hub name>
I've sent 100 messages, and last metric time series have total = 100
Describe the bug I try to query Event Hub topic to get the number of incoming messages and I get null pointer execption. While query for the following metrics per topic returns values
SuccessfulRequests ServerErrors UserErrors QuotaExceededErrors ThrottledRequests IncomingRequests
Why is it ?
Exception or Stack Trace
To Reproduce Steps to reproduce the behavior: Query eventhub per topic withOdataFilter("EntityName eq '" + topic_name)
Code Snippet
Expected behavior Run the query with MetricName IncomingMessages/OutgoingMessage per topic (not per namespace)
Screenshots If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
Additional context Add any other context about the problem here.
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report