Whether writing multiple targets or one target in a json file has a performance impact

17 views
Skip to first unread message

log bin

unread,
Apr 20, 2020, 11:18:40 PM4/20/20
to Prometheus Users
[
  {
    "labels": {"type":"middle","zone":"1","use":"test"}
  }
]

[
  {
    "targets":  ["10.222.31.57:9182"],
    "labels": {"type":"middle","zone":"1","use":"test111"}
  },
  {
    "targets":  ["10.222.31.58:9182"],
    "labels": {"type":"middle","zone":"1","use":"test222"}
  },
  {
    "targets":  ["10.222.31.59:9182"],
    "labels": {"type":"middle","zone":"1","use":"test33333",'aa':‘bb’}
  },
``````````

]


I want to do a different tag for each instance
Whether the above two configurations have the same impact on performance
thanks


Julius Volz

unread,
Apr 21, 2020, 3:28:19 AM4/21/20
to log bin, Prometheus Users
I'd expect any performance impact from that to be negligible.

--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fcf1f6c0-08ad-4231-ac8d-9e4014ef825c%40googlegroups.com.

log bin

unread,
Apr 22, 2020, 5:44:17 AM4/22/20
to Prometheus Users
I tested 1000 instances and found no significant change。  So I decided to use the second way

在 2020年4月21日星期二 UTC+8上午11:18:40,log bin写道:
Reply all
Reply to author
Forward
0 new messages