You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Start a GCE VM with RHEL8 image
Install Ops Agent version 2.46.1
Customize the agent with below mentioned metrics processor configuration
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"
Add the transform metrics processor 'transform/http_server_request_count' to the metrics service configuration
Restart the agent
Hit the Java application endpoint on localhost and port on the GCE VM a few times
Metric 'http.server.request.count' should be available in Metrics Explorer
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):
VM distro / OS: RHEL 8
Ops Agent version: 2.46.1
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:
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!
@sophieyfang can you describe how to bring http.server.request.count into GCP monitoring? We have the OPS Agent installed and use auto instrumentation for our java app (that uses undertow), but we don't see the request count, only the latencies in GCP.
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: