Can't visualize my agent generated measurements in VictoriaMetrics\deployment\docker

112 views
Skip to first unread message

levkha...@gmail.com

unread,
Jun 6, 2019, 7:08:53 AM6/6/19
to victorametrics-users
Hi there!

Recently got a task to test VMDB, we want substitute InfluxDB to achieve more performance/optimization at data collecting.

Previously used docker
https://github.com/jkehres/docker-compose-influxdb-grafana.git + self generated measurements in python script(Influx Line protocol)/Jmeter results.
Example my metrics:

MyDataInfluxdb.PNG



Downloaded VMetrics docker-composer and ran it.

I see metrics are collecting data about my requests,

Capture.PNG


but I can't find a way to visualize my generated timestamps (via Python script) in VictoriaMetrics.

MyData.PNG


Under is info about what I send to VMetrics:

POST http://localhost:8428/write?db=db0 HTTP/1.1
Host: localhost:8428
Connection: keep-alive
Accept-Encoding: gzip, deflate
Accept: */*
User-Agent: python-requests/2.22.0
Content-Type: application/octet-stream
Content-Length: 28

myrate,currency=rub value=76

Aliaksandr Valialkin

unread,
Jun 6, 2019, 9:01:01 AM6/6/19
to levkha...@gmail.com, victorametrics-users
VictoriaMetrics transforms ingested InfluxDB data using the following scheme:
- Metric name is constructed as {measurement}.{field_name} for each field, metric value is the corresponding field value;
- Influx tags are converted to Prometheus labels as is.

For your case the following Influx line:

myrate,currency=rub value=76

will be converted into the following VictoriaMetrics data point:

myrate.value{currency="rub"} 76

The corresponding time series may be queried with the following PromQL query:

myrate.value{currency="rub"}


--
You received this message because you are subscribed to the Google Groups "victorametrics-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to victorametrics-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/victorametrics-users/259b6b93-1edc-4c0a-b057-835c0845ba10%40googlegroups.com.


--
Best Regards,

Aliaksandr

levkha...@gmail.com

unread,
Jun 6, 2019, 11:28:54 AM6/6/19
to victorametrics-users
Thanks, Aliaksandr, for prompt response, but it didn't help. It seems to me my data is not inserted in db coorectly, cause I cant't find my metrics on
By the way, timestamp in my example is generated by Influx, can VictoriaMetrics support the same functionality? 

четверг, 6 июня 2019 г., 16:01:01 UTC+3 пользователь Aliaksandr Valialkin написал:
To unsubscribe from this group and stop receiving emails from it, send an email to victorametrics-users+unsub...@googlegroups.com.


--
Best Regards,

Aliaksandr

Aliaksandr Valialkin

unread,
Jun 6, 2019, 7:22:09 PM6/6/19
to levkha...@gmail.com, victorametrics-users
On Thu, Jun 6, 2019 at 6:28 PM <levkha...@gmail.com> wrote:
Thanks, Aliaksandr, for prompt response, but it didn't help. It seems to me my data is not inserted in db coorectly, cause I cant't find my metrics on

This page contains internal metrics for VictoriaMetrics process. The last values for ingested metrics can be found on the page http://localhost:8428/federate?match[]={__name__!=''}  . Note that you need at least v1.18.11, since the previous versions of VictoriaMetrics contained a bug preventing from returning any values from the query. Read more about metrics' querying with PromQL in this article.
 
By the way, timestamp in my example is generated by Influx, can VictoriaMetrics support the same functionality? 

VictoriaMetrics already supports timestamps in Influx line protocol during data ingestion.
 
To unsubscribe from this group and stop receiving emails from it, send an email to victorametrics-u...@googlegroups.com.


--
Best Regards,

Aliaksandr

--
You received this message because you are subscribed to the Google Groups "victorametrics-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to victorametrics-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/victorametrics-users/0a4ddab6-6558-4137-90d4-8c45bfc01ecb%40googlegroups.com.


--
Best Regards,

Aliaksandr
Reply all
Reply to author
Forward
0 new messages