Questions tagged [victoriametrics]

VictoriaMetrics is a Go-based open-source time series database and monitoring solution typically used for processing high volumes of data and long term storage.

VictoriaMetrics is a Go-based open-source time series database and monitoring solution typically used for processing high volumes of data and long term storing.

Links

95 questions
4
votes
1 answer

Why would a node http client request occasionally error out with "socket hang up" after approximately 5 seconds?

I have a node (v14.19.1) process that collects data and then inserts it into VictoriaMetrics by making an http request to /api/v1/import. I'm using axios to send the requests. The vast majority of the time, this works perfectly. Occasionally, the…
4
votes
1 answer

Can you apply a limit on promQL query?

For example: Avg by (server) (HttpStatusCodes{category = 'Api.ResponseStatus'}) limit 10 Is this valid in promQl? I can not find anything about it in the documentation. Thanks
eng007
  • 93
  • 2
  • 8
4
votes
1 answer

Group by time and aggregate in PromQL/MetricsQL

I have a metric say x, of type gauge, And the values are reported every 5m. Now I want to make a query such that, I get sum of values in each hour in a day. Exmaple: from 3PM to 5PM, the gauge values are…
Chaitanya Mankala
  • 1,594
  • 17
  • 24
4
votes
1 answer

Prometheus setting for scrape_interval

I'm trying to use Prometheus and VictoriaMetrics to collect data and when configuring my server prometheus.yml there is one line: scrape_interval: 15s # How frequently to scrape targets by default. Does this mean my search result might be delayed…
eason wu
  • 43
  • 1
  • 5
3
votes
1 answer

integrate and time period in Grafana/Prometheus/VictoriaMetrics

I'm trying to use the integrate function in Prometheus using functional victoria_metrics to control the time period via the functionality Grafana (in the upper right corner of the page). But this control is not working. To calculate the total amount…
Dan Balan
  • 33
  • 4
2
votes
1 answer

Prometheus aggregate data to larger time range

I have some counter in Prometheus (Victoria metrics). In Grafana I'm displaying it like this: sum by (model_id) (increase(requests[$__interval])) I would like to add variable in grafana, called downsample. Where I could pick 1h, or 6h or something.…
Nikola Borisov
  • 348
  • 1
  • 10
2
votes
1 answer

Display daily consumption grafana using prometheus datasource

I’m using grafana v9.5.1 and my datasource is prometheus. I'm really new to monitoring. I have a metric called container_network_transmit_bytes_total. I want to create a graph which the X-axis represents the date of the day and the Y-axis represents…
2
votes
0 answers

Is victoriametrics read api asynchronous?

Is victoriametrics read api asynchronous? If i have 5 microservices that read from it will each read request be executed in parallel?
2
votes
1 answer

increase() function of PromQL gives different value then actual increase

Background: I have a Spring boot Kafka consumer, and I am trying to monitor it using Prometheus and Grafana. For that, I am using the Spring's inbuild MeterRegistry. The metric I am using for counting total events consumed is…
2
votes
1 answer

How to add `metric_relabel_configs` from a separate file via `file_sd_configs`?

I have a vmagent configuration where I can only add extra configuration options via separate files. Let's take this file to be static, as in I can not modify this file. I can only add my own configuration in file.yml which looks like this. This…
Diptangsu Goswami
  • 5,554
  • 3
  • 25
  • 36
2
votes
1 answer

Docker: Can't scrape SonarQube with VictoriaMetrics "vmagent", connection refused

I'm in the process of building a docker-compose.yml and want to use VictoriaMetrics own scraper (vmagent) to scrape metrics which SonarQube exposes via a Plugin at /api/prometheus/metrics. If docker is running, I can access…
phschimm
  • 49
  • 9
2
votes
1 answer

What does remote read means in Prometheus?

We would like to use VictoriaMetric as storage DB for time-series data that is collected from Prometheus. But it's said in the doc that this integration is only supported in write mode and not the read one. Does it mean that prometheus will only be…
Izbassar Tolegen
  • 1,990
  • 2
  • 20
  • 37
1
vote
1 answer

How to pass %22 as filter in restTemplate in Spring MVC

1.requestURL = https://test.env123.com:8081/select/0/prometheus/api/v1/query_range?query=test.link.packets{billid=%22P1yhABCnWJ7WhI%22}&start=2023-08-10T01:02:03Z&end=2023-08-26T01:02:03Z ResponseEntity result =…
Nitish K
  • 51
  • 1
  • 1
  • 6
1
vote
1 answer

Scaling vmalert with many rules

I use vmalert and victoria metrics in my monitoring architecture and I have a very big amount of rules (about 20000). That caused the iteration duraion to be higher than the iteration interval and alerting to be slower. My solution was to create…
tomer
  • 11
  • 1
1
vote
2 answers

Promql / prometheus query to grab the total number of data points within a range

I want to get the number of pipelines that passed that are happening within my gitlab repo. I am trying to get the total number of data points within a 4w(1 month). I am using grafana to see the data visually. I first start getting the points…
1
2 3 4 5 6 7