- 对外端口统一为 18428(vmauth 入口),VM 不再直接暴露宿主机端口 - 边缘 vmagent 与中央 Prometheus remote_write 增加 basic auth - 支持 tenants.csv 驱动的 per-tenant 写入/查询隔离,并提供管理员跨租户只读查询 - 更新 Grafana provisioning 与部署/文档 Made-with: Cursor
19 lines
444 B
Plaintext
19 lines
444 B
Plaintext
# VictoriaMetrics 数据源(通过 vmauth 进行鉴权访问)
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: VictoriaMetrics
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://vmauth:8427
|
|
isDefault: false
|
|
editable: true
|
|
basicAuth: true
|
|
basicAuthUser: "${VMAUTH_READ_USER}"
|
|
jsonData:
|
|
httpMethod: POST
|
|
queryTimeout: 60s
|
|
timeInterval: 15s
|
|
secureJsonData:
|
|
basicAuthPassword: "${VMAUTH_READ_PASSWORD}"
|