[添加]prometheus远程提交时的数据源可以自己填写

This commit is contained in:
2024-10-10 09:58:44 +08:00
committed by Coding
parent ec0420439d
commit 5eeb9deae4
4 changed files with 17 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ return new class extends SettingsMigration
// 添加 Prometheus remote_write 配置参数
$this->migrator->add('remote_write.url', 'http://remote-storage.example.com/api/v1/write'); // 远程存储的URL
$this->migrator->add('remote_write.data_source_label',); // 数据源名称
$this->migrator->add('remote_write.queue_config_capacity', 10000); // 每个分片的最大队列容量
$this->migrator->add('remote_write.queue_config_max_samples_per_send', 2000); // 每次发送的最大样本数
$this->migrator->add('remote_write.queue_config_batch_send_deadline', '5s'); // 每次发送批次的最大等待时间