Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions metric_monitor/conf/prometheus-loki.alloy
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,25 @@ prometheus.remote_write "default" {

endpoint {
url = "http://xxxx/api/v1/receive"
remote_timeout = "10s"
remote_timeout = "7s"
headers = {
"X-Auth-Token" = "token",
"X-Service-Group" = "fullnode",
}

queue_config {
capacity = 55000
max_shards = 200
max_samples_per_send = 15000
batch_send_deadline = "6s"
min_backoff = "200ms"
capacity = 3000
max_shards = 10 // Maximum number of parallel requests
max_samples_per_send = 3000 // Maximum samples per send
batch_send_deadline = "3s" // Maximum delay before sending a batch
min_backoff = "3000ms" // Minimum retry interval
sample_age_limit = "7s" // The maximum age of samples to send. This value must be greater than the scrape interval and batch_send_deadline.
retry_on_http_429 = false // Drop requests when receiving an HTTP 429 (Too Many Requests) status code
}

metadata_config {
send_interval = "6s"
max_samples_per_send = 15000
send_interval = "120s" // Low frequency for relative static value
max_samples_per_send = 1000
}
}
}
Expand Down
19 changes: 10 additions & 9 deletions metric_monitor/conf/prometheus-remote-write.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@ remote_write:
- url: http://thanos-receive:10908/api/v1/receive # if Thanos Receive service run on the same host with Prometheus
headers:
X-Service-Group: "tron-fullnode-group1"
remote_timeout: 15s
remote_timeout: 9s
queue_config:
capacity: 50000
max_shards: 200 # the maximum number of shards, or parallelism, Prometheus will use for each remote-write queue
capacity: 3000
max_shards: 10 # the maximum number of shards, or parallelism, Prometheus will use for each remote-write queue
min_shards: 1
max_samples_per_send: 10000
batch_send_deadline: 3s
min_backoff: 200ms
max_backoff: 5s
max_samples_per_send: 1000
batch_send_deadline: 6s
min_backoff: 3000ms
sample_age_limit: 10s # The maximum age of samples to send. This value must be greater than the scrape interval and batch_send_deadline.
retry_on_http_429: false # Drop requests when receiving an HTTP 429 (Too Many Requests) status code
metadata_config:
send: true
send_interval: 3s # How frequently metric metadata is sent to remote storage.
max_samples_per_send: 50000
send_interval: 120s # How frequently metric metadata is sent to remote storage.
max_samples_per_send: 1000
2 changes: 1 addition & 1 deletion metric_monitor/docker-compose/prometheus.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.8'
services:
prometheus:
image: quay.io/prometheus/prometheus:v2.38.0 # NOTE: It is highly recommended to use Prometheus v2.13.0+ due to its remote read improvements.
image: prom/prometheus:latest
container_name: prometheus
user: root
ports:
Expand Down