merge: 吸收 PikaOA Prometheus 平台扩展

This commit is contained in:
Codex
2026-07-13 21:37:49 +02:00
13 changed files with 378 additions and 12 deletions
+44
View File
@@ -21,6 +21,10 @@ images:
repository: docker.m.daocloud.io/grafana/tempo
tag: 2.8.1
pullPolicy: IfNotPresent
prometheus:
repository: docker.m.daocloud.io/prom/prometheus
tag: v3.5.0
pullPolicy: IfNotPresent
targets:
- id: NC01
@@ -66,6 +70,42 @@ traceBackend:
mode: emptyDir
retention: 24h
metricsBackend:
type: prometheus
enabled: true
targetIds:
- NC01
deploymentName: prometheus
serviceName: prometheus
configMapName: prometheus-config
serviceAccountName: prometheus
clusterRoleName: platform-infra-prometheus
clusterRoleBindingName: platform-infra-prometheus
persistentVolumeClaimName: prometheus-data
replicas: 1
httpPort: 9090
storage:
mode: persistentVolumeClaim
size: 20Gi
retention: 15d
discovery:
namespaces: []
labelSelector:
key: unidesk.ai/metrics
value: "true"
annotationKeys:
scrape: prometheus.io/scrape
path: prometheus.io/path
port: prometheus.io/port
defaultPath: /metrics
scrapeInterval: 30s
scrapeTimeout: 10s
query:
path: /api/v1/query
timeoutSeconds: 15
maxSeries: 200
maxResponseBytes: 262144
sampling:
mode: parentbased_traceidratio
ratio: 1
@@ -185,3 +225,7 @@ probes:
service: otel-collector
portName: health
path: /
- name: prometheus-ready
service: prometheus
portName: http
path: /-/ready