Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add monitoring layer #872

Merged
merged 5 commits into from
Oct 8, 2024
Merged
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
5 changes: 5 additions & 0 deletions .github/filters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ backup-restore:
metrics-server:
- "packages/metrics-server/**"
- "src/metrics-server/**"

monitoring:
- "packages/monitoring/**"
- "src/prometheus-stack/**"
- "src/grafana/**"
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
strategy:
matrix:
flavor: [upstream, registry1, unicorn]
layer: [base, identity-authorization, ui, runtime-security, backup-restore, logging, metrics-server]
layer: [base, identity-authorization, ui, runtime-security, backup-restore, logging, metrics-server, monitoring]
arch: [amd64, arm64]
exclude:
- flavor: registry1
Expand Down
9 changes: 9 additions & 0 deletions packages/monitoring/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# UDS Core Monitoring

This layer of UDS Core provides monitoring capabilities. Currently it includes the application(s):
- grafana
- prometheus

To deploy this layer you must also deploy its dependent layer(s):
- base
- identity-authorization
9 changes: 9 additions & 0 deletions packages/monitoring/tasks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
includes:
- prometheus: ../../src/prometheus-stack/tasks.yaml
- grafana: ../../src/grafana/tasks.yaml

tasks:
- name: validate
actions:
- task: prometheus:validate
- task: grafana:validate
21 changes: 21 additions & 0 deletions packages/monitoring/zarf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
kind: ZarfPackageConfig
metadata:
name: core-monitoring
description: "UDS Core Monitoring (Prometheus and Grafana)"
authors: "Defense Unicorns - Product"
# x-release-please-start-version
version: "0.28.0"
# x-release-please-end
x-uds-dependencies: ["base", "identity-authorization"]

components:
# Prometheus
- name: kube-prometheus-stack
required: true
import:
path: ../../src/prometheus-stack
# Grafana
- name: grafana
required: true
import:
path: ../../src/grafana
4 changes: 2 additions & 2 deletions packages/standard/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ components:
- name: kube-prometheus-stack
required: true
import:
path: ../../src/prometheus-stack
path: ../monitoring

# Vector
- name: vector
Expand All @@ -86,7 +86,7 @@ components:
- name: grafana
required: true
import:
path: ../../src/grafana
path: ../monitoring

# Authservice
- name: authservice
Expand Down
1 change: 1 addition & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"packages/backup-restore/zarf.yaml",
"packages/runtime-security/zarf.yaml",
"packages/ui/zarf.yaml",
"packages/monitoring/zarf.yaml",
"packages/metrics-server/zarf.yaml",
"packages/standard/zarf.yaml",
"bundles/k3d-slim-dev/uds-bundle.yaml",
Expand Down