Skip to content

Commit b87f370

Browse files
committed
chore(monitor): remove telegraf
1 parent 57b7adf commit b87f370

44 files changed

Lines changed: 239 additions & 959 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,3 @@
22
*.swp
33
*.swo
44
.DS_Store
5-
6-
telegraf/manifests/*.tmp.yaml
7-
chronograf/manifests/*.tmp.yaml
8-
grafana/manifests/*.tmp.yaml
9-
rootfs/usr/bin/telegraf

.woodpecker/build-linux.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ steps:
1313
commands:
1414
- echo $CONTAINER_PASSWORD | podman login $DRYCC_REGISTRY --username $CONTAINER_USERNAME --password-stdin > /dev/null 2>&1
1515
- export VERSION=$([ -z $CI_COMMIT_TAG ] && echo latest || echo $CI_COMMIT_TAG)-$(sed 's#/#-#g' <<< $CI_SYSTEM_PLATFORM)
16-
- cd grafana && make build-all push-all && cd ..
17-
- cd telegraf && make build-all push-all && cd ..
16+
- make podman-build podman-push
1817
secrets:
1918
- codename
2019
- dev_registry

.woodpecker/chart.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ steps:
2525
- tag
2626

2727
depends_on:
28-
- manifest-grafana
29-
- manifest-telegraf
28+
- manifest

.woodpecker/manifest-telegraf.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
- name: generate-manifest
77
image: bash
88
commands:
9-
- sed -i "s/{{project}}/grafana/g" .woodpecker/manifest.tmpl
9+
- sed -i "s/{{project}}/$${CI_REPO_NAME}/g" .woodpecker/manifest.tmpl
1010
- sed -i "s/registry.drycc.cc/$${DRYCC_REGISTRY}/g" .woodpecker/manifest.tmpl
1111
secrets:
1212
- drycc_registry

.woodpecker/test-linux.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ steps:
1111
- name: test-linux
1212
image: bash
1313
commands:
14-
- cd grafana && make test && cd ..
15-
- cd telegraf && make test && cd ..
14+
- make test
1615
secrets:
1716
- codename
1817
- dev_registry

default.mk renamed to Makefile

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
SHELL := /bin/bash
22

3-
# all monitor components share/use the following targets/exports
3+
# grafana share/use the following targets/exports
4+
SHORT_NAME ?= grafana
5+
SHELL_SCRIPTS = rootfs/usr/share/grafana/start-grafana
6+
47
BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
58
DRYCC_REGISTRY ?= ${DEV_REGISTRY}
69
IMAGE_PREFIX ?= drycc
710
PLATFORM ?= linux/amd64,linux/arm64
811

9-
include ../includes.mk
10-
include ../versioning.mk
11-
include ../deploy.mk
12+
include includes.mk
13+
include versioning.mk
1214

1315
TEST_ENV_PREFIX := podman run --rm -v ${CURDIR}:/bash -w /bash ${DEV_REGISTRY}/drycc/go-dev
1416

@@ -33,10 +35,3 @@ test-style:
3335

3436
.PHONY: build push podman-build clean upgrade deploy test test-style
3537

36-
build-all:
37-
podman build --build-arg CODENAME=${CODENAME} -t ${DRYCC_REGISTRY}/${IMAGE_PREFIX}/grafana:${VERSION} ../grafana/rootfs
38-
podman build --build-arg CODENAME=${CODENAME} -t ${DRYCC_REGISTRY}/${IMAGE_PREFIX}/telegraf:${VERSION} ../telegraf/rootfs
39-
40-
push-all:
41-
podman push ${DRYCC_REGISTRY}/${IMAGE_PREFIX}/grafana:${VERSION}
42-
podman push ${DRYCC_REGISTRY}/${IMAGE_PREFIX}/telegraf:${VERSION}

README.md

Lines changed: 129 additions & 42 deletions
Large diffs are not rendered by default.

charts/grafana/Chart.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: common
3+
repository: oci://registry.drycc.cc/charts
4+
version: 1.1.3
5+
digest: sha256:4928b76b9f4927f43702c2617b139b2fe7298055b9b6d0c363a7a94530985595
6+
generated: "2024-11-18T16:21:05.150712088+08:00"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: monitor
2-
home: https://github.com/drycc/monitor
1+
name: grafana
2+
home: https://github.com/drycc/grafana
33
apiVersion: v2
44
appVersion: 1.0.0
55
dependencies:
66
- name: common
77
repository: oci://registry.drycc.cc/charts
88
version: ~1.1.2
9-
description: Monitoring for Drycc Workflow.
9+
description: Grafana for Drycc Workflow.
1010
maintainers:
1111
- name: Drycc Team
1212
email: engineering@drycc.com

0 commit comments

Comments
 (0)