Initialize repository.

This commit is contained in:
2022-06-29 07:14:34 +02:00
commit 46930c7aad
3 changed files with 30 additions and 0 deletions

18
.drone.yml Normal file
View File

@@ -0,0 +1,18 @@
kind: pipeline
name: default
steps:
- name: build container
image: plugins/docker
settings:
dockerfile: Dockerfile
username:
from_secret: registry-username
password:
from_secret: registry-password
registry: https://cs-registry.ddnss.de
repo: cs-registry.ddnss.de/${DRONE_REPO_OWNER}/prometheus:latest
dry_run: false
purge: false
tags:
- ${DRONE_TAG}

3
Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM prom/prometheus
ADD prometheus.yml /etc/prometheus/

9
prometheus.yml Normal file
View File

@@ -0,0 +1,9 @@
global:
scrape_interval: 10s
external_labels:
monitor: 'cs-home-monitor'
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['prometheus.lan']a