We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0d559e commit 39dcf1dCopy full SHA for 39dcf1d
main.py
@@ -287,9 +287,9 @@ async def handler(self, request):
287
def write_targets(self):
288
data = []
289
290
- for i in range(len(self.instances)):
291
- data.append({"labels": {"cluster": str(i)}, "targets": [f"localhost:{6100 + i}"]})
292
data.append({"labels": {"cluster": "0"}, "targets": ["localhost:6100"]})
+ for i in range(1, len(self.instances) + 1):
+ data.append({"labels": {"cluster": str(i)}, "targets": [f"localhost:{6100 + i}"]})
293
294
with open("targets.json", "w") as file:
295
json.dump(data, file, indent=2)
0 commit comments