mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 00:26:36 +03:00
app/vmui: top queries better highligh for selected query
This commit is contained in:
@@ -26,6 +26,12 @@
|
||||
|
||||
&_highlighted {
|
||||
font-weight: bold;
|
||||
background-color: rgba($color-dodger-blue, 0.08);
|
||||
box-shadow: inset 3px 0 0 $color-dodger-blue;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba($color-dodger-blue, 0.14);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
15
ceconfig.yaml
Normal file
15
ceconfig.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
streams:
|
||||
- name: 'global_by_metric_name'
|
||||
group: "__name__"
|
||||
|
||||
- name: 'global_by_instance'
|
||||
group: "instance"
|
||||
|
||||
- name: 'eu_region_by_instance'
|
||||
filter: '{region="eu-central-1"}'
|
||||
group: "instance"
|
||||
|
||||
# TODO:
|
||||
# - window duration
|
||||
# - do not expose as metric below threashold
|
||||
# -
|
||||
22
task.md
Normal file
22
task.md
Normal file
@@ -0,0 +1,22 @@
|
||||
Implement cardinality estimator.
|
||||
|
||||
Place absolute all code in app/cestimator.
|
||||
|
||||
It should accept a config via -config in yaml format.
|
||||
Example of configuration:
|
||||
|
||||
```yaml
|
||||
estimators:
|
||||
- stream: foo # required
|
||||
filter: 'as promql' #optional
|
||||
group: 'label name' # optional
|
||||
```
|
||||
|
||||
For each estimator in config it should create hll counter using https://github.com/axiomhq/hyperloglog lib.
|
||||
If a group parameter is defined than create a hll counter per group.
|
||||
|
||||
The app should accept data in Prometheus remote write protocol. Reuse existing solutions.
|
||||
|
||||
expose cardinality on /metrics endpoint in format:
|
||||
|
||||
cardinality_estimate{stream="foo",group="label name"} 123
|
||||
Reference in New Issue
Block a user