Configure bounded monitoring storage on nexus sandbox
This commit is contained in:
@@ -5,6 +5,8 @@ metadata:
|
|||||||
namespace: monitoring
|
namespace: monitoring
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: loki
|
app: loki
|
||||||
@@ -36,8 +38,9 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: loki-config
|
name: loki-config
|
||||||
- name: loki-storage
|
- name: loki-storage
|
||||||
emptyDir:
|
nfs:
|
||||||
medium: Memory
|
server: nexus.haven
|
||||||
|
path: /export/sandbox/loki
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -79,7 +82,12 @@ data:
|
|||||||
|
|
||||||
limits_config:
|
limits_config:
|
||||||
allow_structured_metadata: true
|
allow_structured_metadata: true
|
||||||
retention_period: 0
|
retention_period: 72h
|
||||||
|
max_query_lookback: 72h
|
||||||
|
# Global per-tenant cap: <= 0.1 MB/s sustained keeps this sandbox disk bounded.
|
||||||
|
ingestion_rate_strategy: global
|
||||||
|
ingestion_rate_mb: 0.1
|
||||||
|
ingestion_burst_size_mb: 0.5
|
||||||
|
|
||||||
ingester:
|
ingester:
|
||||||
lifecycler:
|
lifecycler:
|
||||||
@@ -92,7 +100,12 @@ data:
|
|||||||
chunk_target_size: 1536000
|
chunk_target_size: 1536000
|
||||||
|
|
||||||
compactor:
|
compactor:
|
||||||
retention_enabled: false
|
working_directory: /tmp/loki/compactor
|
||||||
|
compaction_interval: 10m
|
||||||
|
retention_enabled: true
|
||||||
|
retention_delete_delay: 2h
|
||||||
|
retention_delete_worker_count: 10
|
||||||
|
delete_request_store: filesystem
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ metadata:
|
|||||||
app: prometheus
|
app: prometheus
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: prometheus
|
app: prometheus
|
||||||
@@ -22,7 +24,9 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||||
- "--storage.tsdb.path=/prometheus"
|
- "--storage.tsdb.path=/prometheus"
|
||||||
- "--storage.tsdb.retention.time=1d"
|
- "--storage.tsdb.retention.time=2d"
|
||||||
|
# Keep a generous buffer on the 117 GiB sandbox filesystem; WAL may exceed this briefly.
|
||||||
|
- "--storage.tsdb.retention.size=8GB"
|
||||||
- "--web.enable-lifecycle"
|
- "--web.enable-lifecycle"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9090
|
- containerPort: 9090
|
||||||
@@ -44,8 +48,9 @@ spec:
|
|||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: prometheus-pvc
|
claimName: prometheus-pvc
|
||||||
- name: prometheus-storage
|
- name: prometheus-storage
|
||||||
persistentVolumeClaim:
|
nfs:
|
||||||
claimName: prometheus-storage-pvc
|
server: nexus.haven
|
||||||
|
path: /export/sandbox/prometheus
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
|
|||||||
Reference in New Issue
Block a user