Skip to content

Commit ae1d334

Browse files
author
brian.stark
committed
fixes to wording
1 parent a52852f commit ae1d334

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/monitoring/metricsdashboards/querysyntax.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AxonOps Query Language Documentation
22

3-
AxonOps uses a powerful query language for dashboarding performance metrics collected from the AxonOps agent. This language is largely based on the Prometheus query language, allowing users familiar with Prometheus to quickly adapt to AxonOps. For a comprehensive guide on the Prometheus query language, please refer to the [Prometheus Query Language documentation](https://prometheus.io/docs/prometheus/latest/querying/basics/).
3+
AxonOps uses a powerful query language for dashboarding performance metrics collected from the AxonOps agent. This language is largely based on the Prometheus query language, allowing users familiar with Prometheus to quickly adapt to AxonOps. For a comprehensive guide on the Prometheus query language, please refer to the [Prometheus Query Language documentation](https://prometheus.io/docs/prometheus/latest/querying/basics/){target="_blank"}
44

55
## Key Difference in AxonOps Query Language
66

@@ -13,18 +13,17 @@ To query rated metrics in AxonOps, you need to use a specific syntax that includ
1313
### Example Query
1414

1515
```promql
16-
cas_ClientRequest_Latency{axonfunction='rate',scope='Write.*$consistency',function='Count',dc=~'$dc',rack=~'$rack',host_id=~'$host_id'}
16+
cas_ClientRequest_Latency{axonfunction='rate',scope='Write_*$consistency',function='Count',dc=~'$dc',rack=~'$rack',host_id=~'$host_id'}
1717
```
1818

1919
### Explanation of the Query
2020

2121
- `cas_ClientRequest_Latency`: The specific metric being queried.
2222
- `{axonfunction='rate', ...}`: The label set that includes `axonfunction='rate'`, which instructs the AxonOps agent to generate the rated values.
2323
- `axonfunction='rate'`: This label indicates that the agent should compute rate values.
24-
- `scope='Write.*$consistency'`: A scope pattern that matches the relevant metrics.
24+
- `scope='Write_*$consistency'`: A scope pattern that matches the relevant metrics.
2525
- `function='Count'`: Specifies that the metric type is Count.
2626
- `dc=~'$dc'`, `rack=~'$rack'`, `host_id=~'$host_id'`: Additional labels that allow filtering by data center, rack, and host ID using regular expressions.
27-
- `by (dc,host_id)`: Groups the results by data center and host ID.
2827

2928
### Parameters
3029

0 commit comments

Comments
 (0)