{"task": {"agent_timeout": 3000, "task": "codegen__prometheus__prometheus-10279", "verifier_timeout": 3000, "instruction": "This is a code generation task. You are expected to write working code that solves the described problem.\n<issue>\n      **What did you see ? Under which circumstances?**\n\nPrometheus stop sending samples to remote write.\nI see in log that desired shards exploded\n\nts=2022-02-07T21:25:56.883Z caller=dedupe.go:112 component=remote level=info remote_name=29a4b7 url=http://x.x.x.x:yyy/insert/0/prometheus/api/v1/write msg=\"Remote storage resharding\" from=1 to=2\n\nts=2022-02-07T21:26:06.883Z caller=dedupe.go:112 component=remote level=info remote_name=29a4b7 url=http://x.x.x.x:yyy/insert/0/prometheus/api/v1/write msg=\"Remote storage resharding\" from=2 to=3\n\nts=2022-02-07T21:26:16.884Z caller=dedupe.go:112 component=remote level=info remote_name=29a4b7 url=http://x.x.x.x:yyy/insert/0/prometheus/api/v1/write msg=\"Remote storage resharding\" from=3 to=5\n\n...\n\nts=2022-02-07T21:27:26.883Z caller=dedupe.go:112 component=remote level=debug remote_name=29a4b7 url=http://x.x.x.x:yyy/insert/0/prometheus/api/v1/write msg=QueueManager.updateShardsLoop lowerBound=30.79999\n9999999997 desiredShards=53.58719996305498 upperBound=57.2\n\nts=2022-02-07T21:39:16.884Z caller=dedupe.go:112 component=remote level=warn remote_name=29a4b7 url=http://x.x.x.x:yyy/insert/0/prometheus/api/v1/write msg=\"Skipping resharding, last successful send was beyond threshold\" lastSendTimestamp=1644269277 minSendTimestamp=1644269946\n\n![prometheus stats](https://user-images.githubusercontent.com/35098906/152952664-cbf61255-9ea8-4afc-8dca-c74eeff5c9d9.PNG)\n\n**Environment**\n\nPrometheus docker version.\nprometheus, version 2.33.1 (branch: HEAD, revision: 4e08110891fd5177f9174c4179bc38d789985a13)\n  build user:       root@37fc1ebac798\n  build date:       20220202-15:23:18\n  go version:       go1.17.6\n  platform:         linux/amd64\n\n* Prometheus configuration file:\n```\nglobal:\n  scrape_interval: 1m\n  scrape_timeout: 55s\n  evaluation_interval: 30s\n  external_labels:\n    datacenter: xxxxx\n\nremote_write:\n  - url: http://x.x.x.x:yyyy/insert/0/prometheus/api/v1/write\n    queue_config:\n      batch_send_deadline: 5s\n      min_backoff: 1s\n      max_backoff: 30s\n```\n\n</issue>\nFocus on implementing the required functionality correctly and efficiently. Treat this as a programming challenge.\nYou are not allowed to read git history.\n", "memory": "8192m", "runnable": false, "difficulty": "hard", "language": "", "cpus": "", "instruction_truncated": false, "category": "code-generation", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "devopsgym", "tags": ["code-generation", "devops-bench"]}, "runs": []}