9 Commits

Author SHA1 Message Date
269094be05 Remove obsolete Gitea workflows for observability components and demo 2026-01-20 09:54:58 +01:00
10b20bc6e7 Update version number in README.md to V1.0.1
Some checks failed
Build and Push Loki Database / build-and-push (push) Failing after 11m18s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2026-01-20 09:36:47 +01:00
143110847e Add version number to README.md
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s
2026-01-20 09:35:12 +01:00
531c82f4c1 Fix formatting in README.md by adding a newline at the end of the file
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3s
2026-01-20 09:25:47 +01:00
20fb6572bc Add Gitea Actions demo workflow for testing purposes
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 33s
2026-01-19 23:27:26 +01:00
90133d9191 Comment out QEMU setup and Docker login steps in build and push workflow
Some checks failed
Build and Push Loki Database / build-and-push (push) Failing after 37s
2026-01-19 23:19:46 +01:00
3edf33ccc2 Add workflows for building and pushing observability components: Alloy, Grafana, Loki, and Prometheus
Some checks failed
Build and Push Loki Database / build-and-push (push) Failing after 2m36s
2026-01-19 23:00:59 +01:00
83a467888f Update Prometheus Docker configuration and remove command overrides in stack.yaml 2026-01-18 21:44:43 +01:00
2541fae443 Add support for multi-platform builds in Docker workflow 2026-01-18 20:44:53 +01:00
5 changed files with 19 additions and 4 deletions

View File

@@ -26,6 +26,14 @@ on:
Path to the Dockerfile relative to the repository root. Path to the Dockerfile relative to the repository root.
Example: ./Dockerfile or ./services/api/Dockerfile Example: ./Dockerfile or ./services/api/Dockerfile
platforms:
type: string
required: false
default: linux/amd64,linux/arm64
description: >
Comma-separated list of target platforms to build.
Example: linux/amd64,linux/arm64
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -37,6 +45,11 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up QEMU (for cross-arch builds)
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -66,6 +79,7 @@ jobs:
with: with:
context: ${{ inputs.build_context }} context: ${{ inputs.build_context }}
file: ${{ inputs.file_path }} file: ${{ inputs.file_path }}
platforms: ${{ inputs.platforms }}
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}

View File

@@ -1 +1,3 @@
# devops # devops
V1.0.1

View File

@@ -4,6 +4,7 @@ FROM prom/prometheus:latest
# Copy Prometheus configuration # Copy Prometheus configuration
COPY prometheus.yaml /etc/prometheus/prometheus.yaml COPY prometheus.yaml /etc/prometheus/prometheus.yaml
COPY prometheus-compose.yaml /etc/prometheus/prometheus-compose.yaml
# Switch to default user and expose port # Switch to default user and expose port
EXPOSE 9090 EXPOSE 9090

View File

@@ -1,4 +1,5 @@
# Prometheus main configuration # Prometheus main configuration
# This configuration is adapted for Docker Compose environment
global: global:
scrape_interval: 30s scrape_interval: 30s

View File

@@ -60,9 +60,6 @@ services:
prometheus: prometheus:
image: ghcr.io/obnitram/observability/prometheus:v0.2 image: ghcr.io/obnitram/observability/prometheus:v0.2
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
volumes: volumes:
- prometheus-storage:/prometheus - prometheus-storage:/prometheus
deploy: deploy: