Initial upload

This commit is contained in:
Daniel Sy 2025-05-21 17:23:29 +02:00
parent b304a1a87c
commit 14b591e4e3
Signed by: Daniel.Sy
GPG key ID: 1F39A8BBCD2EE3D3
5 changed files with 87 additions and 4 deletions

View file

@ -0,0 +1,29 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd
namespace: argocd
labels:
env: dev
spec:
project: default
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
retry:
limit: -1
destination:
name: in-cluster
namespace: observability
sources:
- chart: vector
repoURL: https://helm.vector.dev
targetRevision: 0.43.0
helm:
valueFiles:
- $values/otc/central-forgejo.think-ahead.cloud/stacks/core/vector/values.yaml
- repoURL: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/stacks-instances
targetRevision: HEAD
ref: values

View file

@ -0,0 +1,54 @@
# -- Enable deployment of vector
role: Agent
dataDir: /vector-data-dir
resources: {}
args:
- -w
- --config-dir
- /etc/vector/
containerPorts:
- name: prom-exporter
containerPort: 9090
protocol: TCP
service:
enabled: false
customConfig:
data_dir: /vector-data-dir
api:
enabled: false
address: 0.0.0.0:8686
playground: true
sources:
k8s:
type: kubernetes_logs
internal_metrics:
type: internal_metrics
transforms:
parser:
type: remap
inputs: [k8s]
source: |
.log = parse_json(.message) ?? .message
del(.message)
sinks:
exporter:
type: prometheus_exporter
address: 0.0.0.0:9090
inputs: [internal_metrics]
vlogs:
type: elasticsearch
inputs: [parser]
endpoints:
- http://vlogs-victorialogs:9428/insert/elasticsearch/
mode: bulk
api_version: v8
compression: gzip
healthcheck:
enabled: false
request:
headers:
VL-Time-Field: timestamp
VL-Stream-Fields: stream,kubernetes.pod_name,kubernetes.container_name,kubernetes.pod_namespace
VL-Msg-Field: message,msg,_msg,log.msg,log.message,log
AccountID: "0"
ProjectID: "0"

View file

@ -22,7 +22,7 @@ spec:
releaseName: victoria
helm:
valueFiles:
- $values/otc/central-forgejo.think-ahead.cloud/stacks/observability/values.yaml
- $values/otc/central-forgejo.think-ahead.cloud/stacks/observability/victoria-k8s-stack/values.yaml
- repoURL: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/stacks-instances
targetRevision: HEAD
ref: values

View file

@ -866,7 +866,7 @@ defaultDatasources:
- name: victoria-logs
access: proxy
type: VictoriaLogs
url: http://victorialogs-logs:9428
url: http://vlogs-victorialogs:9428
version: 1
# -- Grafana dependency chart configuration. For possible values refer [here](https://github.com/grafana/helm-charts/tree/main/charts/grafana#configuration)

View file

@ -8,8 +8,8 @@ controller:
annotations:
kubernetes.io/elb.class: union
kubernetes.io/elb.port: '80'
kubernetes.io/elb.id: c0301999-4d24-4821-8654-39accf1e1926
kubernetes.io/elb.ip: 80.158.22.241
kubernetes.io/elb.id: b06a1fee-842b-4dc2-90f4-88217f792ae4
kubernetes.io/elb.ip: 164.30.3.136
ingressClassResource:
name: nginx