Add a VictoriaLogs cluster and point logs-ingest at it
- add VLCluster logs (2 vlinsert, 2 vlselect, 3 vlstorage, 180d) - repoint the logs-ingest HTTPRoute at vlinsert-logs:9481 - add a VictoriaLogs Grafana datasource and its plugin
This commit is contained in:
@@ -20,3 +20,22 @@ spec:
|
|||||||
jsonData:
|
jsonData:
|
||||||
timeInterval: "15s"
|
timeInterval: "15s"
|
||||||
httpMethod: "POST"
|
httpMethod: "POST"
|
||||||
|
---
|
||||||
|
apiVersion: grafana.integreatly.org/v1beta1
|
||||||
|
kind: GrafanaDatasource
|
||||||
|
metadata:
|
||||||
|
name: victorialogs
|
||||||
|
namespace: grafana
|
||||||
|
spec:
|
||||||
|
instanceSelector:
|
||||||
|
matchLabels:
|
||||||
|
dashboards: "grafana"
|
||||||
|
plugins:
|
||||||
|
- name: victoriametrics-logs-datasource
|
||||||
|
version: 0.32.0
|
||||||
|
datasource:
|
||||||
|
name: "VictoriaLogs"
|
||||||
|
type: "victoriametrics-logs-datasource"
|
||||||
|
uid: "victorialogs"
|
||||||
|
access: "proxy"
|
||||||
|
url: "http://vlselect-logs.logging.svc.cluster.local:9471"
|
||||||
|
|||||||
@@ -1,16 +1,13 @@
|
|||||||
---
|
---
|
||||||
# Log ingestion endpoint for puppet-managed VMs (and any non-k8s client).
|
# Log ingestion endpoint for puppet-managed VMs (and any non-k8s client):
|
||||||
# Reuses the internal Traefik gateway + cert-manager + external-dns pattern so
|
# fronts the VLCluster vlinsert service over TLS at a name VMs can resolve.
|
||||||
# VMs reach the Vector aggregator's HTTP source over TLS at a DNS name they can
|
|
||||||
# resolve. The puppet-side Vector rollout ships NDJSON to
|
|
||||||
# https://logs-ingest.k8s.syd1.au.unkin.net/ (a later task).
|
|
||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: Gateway
|
kind: Gateway
|
||||||
metadata:
|
metadata:
|
||||||
name: logs-ingest
|
name: logs-ingest
|
||||||
namespace: logging
|
namespace: logging
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: vector-aggregator
|
app.kubernetes.io/name: victorialogs
|
||||||
app.kubernetes.io/component: ingest
|
app.kubernetes.io/component: ingest
|
||||||
traefik.io/instance: internal
|
traefik.io/instance: internal
|
||||||
annotations:
|
annotations:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
name: logs-ingest-http-redirect
|
name: logs-ingest-http-redirect
|
||||||
namespace: logging
|
namespace: logging
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: vector-aggregator
|
app.kubernetes.io/name: victorialogs
|
||||||
app.kubernetes.io/component: ingest
|
app.kubernetes.io/component: ingest
|
||||||
spec:
|
spec:
|
||||||
hostnames:
|
hostnames:
|
||||||
@@ -32,7 +32,7 @@ metadata:
|
|||||||
name: logs-ingest
|
name: logs-ingest
|
||||||
namespace: logging
|
namespace: logging
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: vector-aggregator
|
app.kubernetes.io/name: victorialogs
|
||||||
app.kubernetes.io/component: ingest
|
app.kubernetes.io/component: ingest
|
||||||
spec:
|
spec:
|
||||||
hostnames:
|
hostnames:
|
||||||
@@ -46,8 +46,8 @@ spec:
|
|||||||
- backendRefs:
|
- backendRefs:
|
||||||
- group: ""
|
- group: ""
|
||||||
kind: Service
|
kind: Service
|
||||||
name: vector-vm-ingest
|
name: vlinsert-logs
|
||||||
port: 8080
|
port: 9481
|
||||||
weight: 1
|
weight: 1
|
||||||
matches:
|
matches:
|
||||||
- path:
|
- path:
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ resources:
|
|||||||
- job_clickhouse-schema.yaml
|
- job_clickhouse-schema.yaml
|
||||||
- nats-bootstrap-job.yaml
|
- nats-bootstrap-job.yaml
|
||||||
- cephrgw.yaml
|
- cephrgw.yaml
|
||||||
|
- vlcluster.yaml
|
||||||
- gateway.yaml
|
- gateway.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
- serviceaccount_logarchiver.yaml
|
- serviceaccount_logarchiver.yaml
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
---
|
||||||
|
apiVersion: operator.victoriametrics.com/v1
|
||||||
|
kind: VLCluster
|
||||||
|
metadata:
|
||||||
|
name: logs
|
||||||
|
namespace: logging
|
||||||
|
spec:
|
||||||
|
vlinsert:
|
||||||
|
replicaCount: 2
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 1Gi
|
||||||
|
limits:
|
||||||
|
cpu: "2"
|
||||||
|
memory: 4Gi
|
||||||
|
vlselect:
|
||||||
|
replicaCount: 2
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 1Gi
|
||||||
|
limits:
|
||||||
|
cpu: "2"
|
||||||
|
memory: 4Gi
|
||||||
|
vlstorage:
|
||||||
|
replicaCount: 3
|
||||||
|
retentionPeriod: 180d
|
||||||
|
# 3x250Gi is ~75% of the 180d estimate: the per-node disk cap drops the
|
||||||
|
# oldest data instead of filling the PVC, trading tail retention for Ceph.
|
||||||
|
retentionMaxDiskSpaceUsageBytes: 220GiB
|
||||||
|
storage:
|
||||||
|
volumeClaimTemplate:
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: cephrbd-fast-delete
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 250Gi
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "1"
|
||||||
|
memory: 2Gi
|
||||||
|
limits:
|
||||||
|
cpu: "4"
|
||||||
|
memory: 8Gi
|
||||||
Reference in New Issue
Block a user