Initial upload
This commit is contained in:
parent
69d2ef42ab
commit
d4f5f7a84b
4 changed files with 86 additions and 3 deletions
29
otc/observability.think-ahead.cloud/stacks/core/vector.yaml
Normal file
29
otc/observability.think-ahead.cloud/stacks/core/vector.yaml
Normal 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/observability.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
|
|
@ -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"
|
|
@ -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)
|
||||
|
|
|
@ -8,8 +8,8 @@ controller:
|
|||
annotations:
|
||||
kubernetes.io/elb.class: union
|
||||
kubernetes.io/elb.port: '80'
|
||||
kubernetes.io/elb.id: ab32d01c-6e6c-4aee-9f62-c1f0a1ccf13b
|
||||
kubernetes.io/elb.ip: 80.158.20.240
|
||||
kubernetes.io/elb.id: d28dfa5d-4967-4f03-9a9a-d96dc5a6fd81
|
||||
kubernetes.io/elb.ip: 164.30.14.211
|
||||
|
||||
ingressClassResource:
|
||||
name: nginx
|
||||
|
|
Loading…
Reference in a new issue