-
Notifications
You must be signed in to change notification settings - Fork 66
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
Metric 'http.server.request.count' is not available by default for GCE VM #1682
Comments
Upstream OSS Community provides solution to support above need. To gather more user data points, may i ask why you'd prefer ops-agent for this need? This will help us on prioritizing the work. Thanks! |
If you are able to, would you mind also creating a cloud support ticket with us? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
We are unable to create an Availability SLI for an auto-instrumented Java application running on a GCE VM.
To Reproduce
Steps to reproduce the behavior:
transform/http_server_request_count:
metric_statements:
- context: metric
statements:
- extract_count_metrics(true) where name == "workload.googleapis.com/http.server.request.duration"
- set(name, "workload.googleapis.com/http.server.request.count") where name == "workload.googleapis.com/http.server.request.duration_count"
- set(unit, "1") where name == "workload.googleapis.com/http.server.request.count"
- set(description, "Count of HTTP server requests.") where name == "workload.googleapis.com/http.server.request.count"
Expected behavior
Metric 'http.server.request.count' should be available by default for auto-instrumented application running on GCE VM.
Environment (please complete the following information):
Additional context
Currently, the metric 'http.server.request.duration' is available by default for an auto-instrumented application. And, we are able to get the count of Server requests using this metric by aggregating it on 'Count time series'.
However, that does not help me while creating the Availability SLI (Request Based - Good/Total Ratio) for the Java application. The metric 'http.server.request.duration' can only be used to create a Latency SLI (Request Based - Distribution Cut).
Would it be possible to add the configuration mentioned in Step 3 and 4 in the default otel.yaml? Or please suggest if there is any better way to handle this scenario.
Thanks in advance.
The text was updated successfully, but these errors were encountered: