VictoriaMetrics 是否有某种方式来存储字符串值而不是 float64?

Does VictoriaMetrics have some way to store string value instead float64?

我正在通过 docker 图片 https://hub.docker.com/r/victoriametrics/victoria-metrics/ 使用基本的维多利亚指标,并通过普罗米修斯导入浮点值:

curl -d 'foo{bar="baz"} 123' -X POST 'http://localhost:8428/api/v1/import/prometheus'

我从 victoriaMetrics 代码中看到,解析后的值始终是 float64,但也许我们有一些方法可以存储发生的错误?

附加问题: 看完这个 https://github.com/prometheus/docs/blob/master/content/docs/instrumenting/exposition_formats.md#text-based-formatI 不明白当我们使用 /api/v1/import/prometheus 时 victoriaMetrics 中存储了哪种 prometheus 类型?未键入?

but maybe we have some way to store the errors that occurred for example?

很遗憾,没有。您可以将字符串值放入标签中,但度量值将仅为 float64。

which prometheus type is stored in victoriaMetrics when we're using /api/v1/import/prometheus? Untyped?

虽然存在度量类型的说明格式,但 Prometheus 和 VictoriaMetrics 都没有make use of it。您现在可以在 VM 中导入时跳过所有注释。但这可能会在未来改变。