feature(1.2.8): swagger 接口文档新增 Security
- 将 middleware 命名为 interceptor - 将 deploy 命名为 deployments - 移除 pkg/errno - 使用 proposal 目录 - 优化代码
This commit is contained in:
44
deployments/loki/loki.yaml
Normal file
44
deployments/loki/loki.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
auth_enabled: false
|
||||
|
||||
server:
|
||||
http_listen_port: 3100
|
||||
|
||||
ingester:
|
||||
lifecycler:
|
||||
address: 127.0.0.1
|
||||
ring:
|
||||
kvstore:
|
||||
store: inmemory
|
||||
replication_factor: 1
|
||||
final_sleep: 0s
|
||||
chunk_idle_period: 5m
|
||||
chunk_retain_period: 30s
|
||||
|
||||
schema_config:
|
||||
configs:
|
||||
- from: 2020-01-01
|
||||
store: boltdb
|
||||
object_store: filesystem
|
||||
schema: v9
|
||||
index:
|
||||
prefix: index_
|
||||
period: 168h # 每张表的时间范围6天
|
||||
|
||||
storage_config:
|
||||
boltdb:
|
||||
directory: /data/loki/index # 索引文件存储地址
|
||||
|
||||
filesystem:
|
||||
directory: /data/loki/chunks # 块存储地址
|
||||
|
||||
limits_config:
|
||||
enforce_metric_name: false
|
||||
reject_old_samples: true
|
||||
reject_old_samples_max_age: 168h
|
||||
|
||||
chunk_store_config:
|
||||
max_look_back_period: 0s
|
||||
|
||||
table_manager:
|
||||
retention_deletes_enabled: false
|
||||
retention_period: 0s
|
||||
20
deployments/loki/promtail.yaml
Normal file
20
deployments/loki/promtail.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
server:
|
||||
http_listen_port: 9080
|
||||
grpc_listen_port: 0
|
||||
|
||||
# Positions
|
||||
positions:
|
||||
filename: /data/loki/positions.yaml
|
||||
|
||||
# Loki服务器的地址
|
||||
clients:
|
||||
- url: http://127.0.0.1:3100/loki/api/v1/push
|
||||
|
||||
scrape_configs:
|
||||
- job_name: go-gin-api
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: accesslog
|
||||
__path__: /data/logs/*.log # 日志目录
|
||||
12
deployments/prometheus/prometheus.yml
Normal file
12
deployments/prometheus/prometheus.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
|
||||
scrape_configs:
|
||||
- job_name: "prometheus"
|
||||
static_configs:
|
||||
- targets: ["127.0.0.1:9090"]
|
||||
- job_name: "go_app_server"
|
||||
static_configs:
|
||||
- targets:
|
||||
- "127.0.0.1:9999"
|
||||
Reference in New Issue
Block a user