如何在用于 Prometheus 性能测试的 Avalanche 指标生成器中定义两个常量标签及其值?
How to define two constant labels and their values in Avalanche metrics generator for Prometheus performance testing?
我想用两个静态值定义两个常量标签,我参考了官方博客,
https://blog.freshtracks.io/load-testing-prometheus-metric-ingestion-5b878711711c
也在使用帮助,docker 运行 quay.io/freshtracks.io/avalanche --help
我知道它像下面这样,但我尝试了它的几种组合,但我不确定如何定义它。
--const-label=CONST-LABEL
您可以像下面这样定义。
const-label=LNAME1=labelValue1 --const-label=username=sammy
因此标签名称和值在系列中保持不变。
docker run -it -d -p 9001:9001 --name MyAvalanche quay.io/freshtracks.io/avalanche --label-count=2 --const-label=LNAME1=labelValue1 --const-label=username=sammy --metric-count=5 --metricname-length=2 --series-count=4 --remote-batch-size=15 --remote-requests-count=1 --remote-write-interval=123ms --port=9001 --remote-url=http://myremoteurl/api/prom/push --remote-tenant=Mytenant-prod
我想用两个静态值定义两个常量标签,我参考了官方博客, https://blog.freshtracks.io/load-testing-prometheus-metric-ingestion-5b878711711c
也在使用帮助,docker 运行 quay.io/freshtracks.io/avalanche --help
我知道它像下面这样,但我尝试了它的几种组合,但我不确定如何定义它。
--const-label=CONST-LABEL
您可以像下面这样定义。
const-label=LNAME1=labelValue1 --const-label=username=sammy
因此标签名称和值在系列中保持不变。
docker run -it -d -p 9001:9001 --name MyAvalanche quay.io/freshtracks.io/avalanche --label-count=2 --const-label=LNAME1=labelValue1 --const-label=username=sammy --metric-count=5 --metricname-length=2 --series-count=4 --remote-batch-size=15 --remote-requests-count=1 --remote-write-interval=123ms --port=9001 --remote-url=http://myremoteurl/api/prom/push --remote-tenant=Mytenant-prod