On Saturday, 7 November 2020 14:12:53 UTC, kiran wrote: > > In my use case I have custom metrics that I will be sending to victoria > metrics and will be using PormQL. >
Using remote_write from prometheus, or your applicatino directly writing to VictoriaMetrics? VM supports import in a bunch of different formats, such as influxdb line protocol and CSV, so you can choose whatever you find most convenient. Since I have control over the data structure, I was thinking instead of > sending vertical data(one time series per metric per function), I could > send flat structure e.g metrics as labels. Is it recommended this way or > this would increase cardinality? > Definitely not. The metrics need to be the metrics, not the labels. The entire storage mechanism depends on this: it's the bag of labels which defines "what is a timeseries", and all the metrics for that timeseries are stored adjacent to each other, for efficient compression and retrieval. Plus: all the PromQL functions which operate on numbers, like sum() and rate() and so on, operate on the value and not the labels. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3ac8d6ce-91ed-4010-a517-b0a6e6c2d71bo%40googlegroups.com.

