From daabf1ecf06bfac7c57796a3a70388b48bf90709 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 1 Sep 2020 06:13:45 +0200 Subject: [PATCH 1/6] chore: add utilization status badges + style --- assets/scss/style.scss | 8 ++++++++ content/status.md | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 84eb981..fb73ba1 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -576,6 +576,14 @@ hr.post-end { border-radius: 4px; } + a img { + display: block; + max-width: 100%; + height: auto; + margin: 0; + border-radius: 4px; + } + ul, ol { padding: 0; diff --git a/content/status.md b/content/status.md index ad539b6..69a62ae 100644 --- a/content/status.md +++ b/content/status.md @@ -16,3 +16,15 @@ Scoring 125 out of 100 points ### Uptime * dotya.ml services [UptimeRobot stats](https://stats.uptimerobot.com/93yPqFmmx8) + +### utilization + +[![cpu usage](https://netdata.dotya.ml//api/v1/badge.svg?chart=system.cpu&alarm=10min_cpu_usage&refresh=auto "")](#utilization) + +[![iowait](https://netdata.dotya.ml//api/v1/badge.svg?chart=system.cpu&alarm=10min_cpu_iowait&refresh=auto)](#utilization) + +[![load](https://netdata.dotya.ml//api/v1/badge.svg?chart=system.load&alarm=load_average_15&refresh=auto)](#utilization) + +[![net in](https://netdata.dotya.ml//api/v1/badge.svg?chart=net_packets.eth0&alarm=inbound_packets_dropped_ratio&refresh=auto)](#utilization) + +[![net out](https://netdata.dotya.ml//api/v1/badge.svg?chart=net_packets.eth0&alarm=outbound_packets_dropped_ratio&refresh=auto)](#utilization) -- 2.45.1 From 8f60d4c515c6b335d5d69864476907801ef2b38b Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 1 Sep 2020 06:14:40 +0200 Subject: [PATCH 2/6] fix: limit deploy step execution for master * run notifications on PR and any branch --- .drone.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7d0bab0..cf3c410 100644 --- a/.drone.yml +++ b/.drone.yml @@ -48,6 +48,8 @@ steps: when: status: - success + branch: + - master depends_on: - hugo-extended environment: @@ -77,9 +79,10 @@ clone: trigger: branch: - master - - "dev*" + - "*" event: - push + - pull_request - tag status: - success -- 2.45.1 From 3034435564e7cc1e1ea93fafde1cdd7ff8b55ac8 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 1 Sep 2020 06:21:19 +0200 Subject: [PATCH 3/6] fix: further limit pipeline execution --- .drone.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.drone.yml b/.drone.yml index cf3c410..6e5b28b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -50,6 +50,10 @@ steps: - success branch: - master + event: + - push + - tag + - cron depends_on: - hugo-extended environment: -- 2.45.1 From b70ea8a7088b175885c4690acf3a7ffb2a861588 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 1 Sep 2020 06:23:51 +0200 Subject: [PATCH 4/6] chore: also run notification pipeline on any branch --- .drone.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6e5b28b..e53e492 100644 --- a/.drone.yml +++ b/.drone.yml @@ -81,9 +81,6 @@ clone: disable: true trigger: - branch: - - master - - "*" event: - push - pull_request -- 2.45.1 From 0d0190ce29fd45675e8505fc193a9fc438f00b79 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 1 Sep 2020 06:31:57 +0200 Subject: [PATCH 5/6] fix: fine-tuning the limits --- .drone.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.drone.yml b/.drone.yml index e53e492..1b9d510 100644 --- a/.drone.yml +++ b/.drone.yml @@ -81,6 +81,9 @@ clone: disable: true trigger: + branch: + - master + - "*" event: - push - pull_request @@ -96,6 +99,10 @@ steps: - name: discord pull: if-not-exists image: appleboy/drone-discord:latest + when: + event: + include: + - pull_request settings: message: > {{#success build.status}} -- 2.45.1 From 6daa41a0c520d203b9af8e62442ac2de843e20b4 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 1 Sep 2020 06:34:44 +0200 Subject: [PATCH 6/6] chore: notifications don't need to run on PR let's say --- .drone.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1b9d510..bfcd03a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -86,7 +86,6 @@ trigger: - "*" event: - push - - pull_request - tag status: - success @@ -99,10 +98,6 @@ steps: - name: discord pull: if-not-exists image: appleboy/drone-discord:latest - when: - event: - include: - - pull_request settings: message: > {{#success build.status}} -- 2.45.1