app/vmui: top queries better highligh for selected query

This commit is contained in:
Max Kotliar
2026-04-13 10:36:22 +03:00
parent 8d68214f88
commit 72005d7e62
3 changed files with 43 additions and 0 deletions

View File

@@ -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
View 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
View 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