Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion inverter-fleet/fleets/eu-west-prod-001/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ spec:
template:
spec:
os:
# TODO: needs to include:
# https://copr.fedorainfracloud.org/coprs/miyunari/redhat-opentelemetry-collector/package/opentelemetry-collector/
image: quay.io/solar-farms/ai-inverter:1.5.0

config:
Expand All @@ -18,6 +20,12 @@ spec:
repoRef: main
repoPath: /inverter-fleet/deployment-manifests/
mountPath: /etc/microshift/manifests
- name: observability-agent
gitRef:
repoUrl: https://github.com/flightctl/flightctl-demos.git
repoRef: main
repoPath: /inverter-fleet/observability/
mountPath: /etc/otel-collector/
- name: pull-secret
secretRef:
name: device-pull-secret
Expand All @@ -34,4 +42,4 @@ spec:
matchPatterns:
- inverter.service
- rs485-protocol.service

- opentelemetry-collector.service
59 changes: 59 additions & 0 deletions inverter-fleet/observability/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
receivers:
journald:
directory: /run/log/journal
units:
- ssh
- microshift
- opentelemetry-collector
- inverter
- rs485-protocol
priority: info
hostmetrics:
root_path: /hostfs
collection_interval: 10s
scrapers:
cpu:
memory:
disk:
filesystem:
prometheus/self:
config:
scrape_configs:
- job_name: ‘agent’
scrape_interval: 10s
static_configs:
- targets: [‘127.0.0.1:8888’]

processors:
resourcedetection/system:
detectors: ["system"]
batch:

exporters:
debug:
verbosity: info

extensions:
health_check:
file_storage:
directory: /cache
timeout: 2s
compaction:
on_start: true
directory: /tmp/
max_transaction_size: 65_536
fsync: false


service:
extensions: [health_check, file_storage]
pipelines:
metrics:
receivers: [hostmetrics, prometheus/self]
processors: [resourcedetection/system, batch]
exporters: [debug]
logs:
receivers: [journald]
processors: [resourcedetection/system, batch]
exporters: [debug]