-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
1,307 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: 'Reaction Comments' | ||
|
||
on: | ||
issue_comment: | ||
types: [created, edited] | ||
pull_request_review_comment: | ||
types: [created, edited] | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
permissions: | ||
actions: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/reaction-comments@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: ArgoCD | ||
description: ArgoCD Widget Configuration | ||
--- | ||
|
||
Learn more about [ArgoCD](https://argo-cd.readthedocs.io/en/stable/). | ||
|
||
Allowed fields (limited to a max of 4): `["apps", "synced", "outOfSync", "healthy", "progressing", "degraded", "suspended", "missing"]` | ||
|
||
```yaml | ||
widget: | ||
type: argocd | ||
url: http://argocd.host.or.ip:port | ||
key: argocdapikey | ||
``` | ||
You can generate an API key either by creating a bearer token for an existing account, see [Authorization](https://argo-cd.readthedocs.io/en/latest/developer-guide/api-docs/#authorization) (not recommended) or create a new local user account with limited privileges and generate an authentication token for this account. To do this the steps are: | ||
- [Create a new local user](https://argo-cd.readthedocs.io/en/stable/operator-manual/user-management/#create-new-user) and give it the `apiKey` capability | ||
- Setup [RBAC configuration](https://argo-cd.readthedocs.io/en/stable/operator-manual/rbac/#rbac-configuration) for your the user and give it readonly access to your ArgoCD resources, e.g. by giving it the `role:readonly` role. | ||
- In your ArgoCD project under _Settings / Accounts_ open the newly created account and in the _Tokens_ section click on _Generate New_ to generate an access token, optionally specifying an expiry date. | ||
|
||
If you installed ArgoCD via the official Helm chart, the account creation and rbac config can be achived by overriding these helm values: | ||
|
||
```yaml | ||
configs: | ||
cm: | ||
accounts.readonly: apiKey | ||
rbac: | ||
policy.csv: "g, readonly, role:readonly" | ||
``` | ||
|
||
This creates a new account called `readonly` and attaches the `role:readonly` role to it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Beszel | ||
description: Beszel Widget Configuration | ||
--- | ||
|
||
Learn more about [Beszel](https://github.com/henrygd/beszel) | ||
|
||
The widget has two modes, a single system with detailed info if `systemId` is provided, or an overview of all systems if `systemId` is not provided. | ||
|
||
The `systemID` in the `id` field on the collections page of Beszel. | ||
|
||
Allowed fields for 'overview' mode: `["systems", "up"]` | ||
Allowed fields for a single system: `["name", "status", "updated", "cpu", "memory", "disk", "network"]` | ||
|
||
```yaml | ||
widget: | ||
type: beszel | ||
url: http://beszel.host.or.ip | ||
username: username # email | ||
password: password | ||
systemId: systemId # optional | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: Gitlab | ||
description: Gitlab Widget Configuration | ||
--- | ||
|
||
Learn more about [Gitlab](https://gitlab.com). | ||
|
||
API requires a personal access token with either `read_api` or `api` permission. See the [gitlab documentation](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token) for details on generating one. | ||
|
||
Your Gitlab user ID can be found on [your profile page](https://support.circleci.com/hc/en-us/articles/20761157174043-How-to-find-your-GitLab-User-ID). | ||
|
||
Allowed fields: `["events", "issues", "merges", "projects"]`. | ||
|
||
```yaml | ||
widget: | ||
type: gitlab | ||
url: http://gitlab.host.or.ip:port | ||
key: personal-access-token | ||
user_id: 123456 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: Headscale | ||
description: Headscale Widget Configuration | ||
--- | ||
|
||
Learn more about [Headscale](https://headscale.net/). | ||
|
||
You will need to generate an API access token from the [command line](https://headscale.net/ref/remote-cli/#create-an-api-key) using `headscale apikeys create` command. | ||
|
||
To find your node ID, you can use `headscale nodes list` command. | ||
|
||
Allowed fields: `["name", "address", "last_seen", "status"]`. | ||
|
||
```yaml | ||
widget: | ||
type: headscale | ||
nodeId: nodeid | ||
key: headscaleapiaccesstoken | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
title: Prometheus Metric | ||
description: Prometheus Metric Widget Configuration | ||
--- | ||
|
||
Learn more about [Querying Prometheus](https://prometheus.io/docs/prometheus/latest/querying/basics/). | ||
|
||
This widget can show metrics for your service defined by PromQL queries which are requested from a running Prometheus instance. | ||
|
||
Quries can be defined in the `metrics` array of the widget along with a label to be used to present the metric value. You can optionally specify a global `refreshInterval` in milliseconds and/or define the `refreshInterval` per metric. Inside the optional `format` object of a metric various formatting styles and transformations can be applied (see below). | ||
|
||
```yaml | ||
widget: | ||
type: prometheusmetric | ||
url: https://prometheus.host.or.ip | ||
refreshInterval: 10000 # optional - in milliseconds, defaults to 10s | ||
metrics: | ||
- label: Metric 1 | ||
query: alertmanager_alerts{state="active"} | ||
- label: Metric 2 | ||
query: apiserver_storage_size_bytes{node="mynode"} | ||
format: | ||
type: bytes | ||
- label: Metric 3 | ||
query: avg(prometheus_notifications_latency_seconds) | ||
format: | ||
type: number | ||
suffix: s | ||
options: | ||
maximumFractionDigits: 4 | ||
- label: Metric 4 | ||
query: time() | ||
refreshInterval: 1000 # will override global refreshInterval | ||
format: | ||
type: date | ||
scale: 1000 | ||
options: | ||
timeStyle: medium | ||
``` | ||
## Formatting | ||
Supported values for `format.type` are `text`, `number`, `percent`, `bytes`, `bits`, `bbytes`, `bbits`, `byterate`, `bibyterate`, `bitrate`, `bibitrate`, `date`, `duration`, `relativeDate`, and `text` which is the default. | ||
|
||
The `dateStyle` and `timeStyle` options of the `date` format are passed directly to [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat) and the `style` and `numeric` options of `relativeDate` are passed to [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat). For the `number` format, options of [Intl.NumberFormat](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat) can be used, e.g. `maximumFractionDigits` or `minimumFractionDigits`. | ||
|
||
### Data Transformation | ||
|
||
You can manipulate your metric value with the following tools: `scale`, `prefix` and `suffix`, for example: | ||
|
||
```yaml | ||
- query: my_custom_metric{} | ||
label: Metric 1 | ||
format: | ||
type: number | ||
scale: 1000 # multiplies value by a number or fraction string e.g. 1/16 | ||
- query: my_custom_metric{} | ||
label: Metric 2 | ||
format: | ||
type: number | ||
prefix: "$" # prefixes value with given string | ||
- query: my_custom_metric{} | ||
label: Metric 3 | ||
format: | ||
type: number | ||
suffix: "€" # suffixes value with given string | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: Spoolman | ||
description: Spoolman Widget Configuration | ||
--- | ||
|
||
Learn more about [Spoolman](https://github.com/Donkie/Spoolman). | ||
|
||
4 spools are displayed by default. If more than 4 spools are configured in spoolman you can use the spoolIds configuration option to control which are displayed. | ||
|
||
```yaml | ||
widget: | ||
type: spoolman | ||
url: http://spoolman.host.or.ip | ||
spoolIds: [1, 2, 3, 4] # optional | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: Suwayomi | ||
description: Suwayomi Widget Configuration | ||
--- | ||
|
||
Learn more about [Suwayomi](https://github.com/Suwayomi/Suwayomi-Server). | ||
|
||
Allowed fields: ["download", "nondownload", "read", "unread", "downloadedread", "downloadedunread", "nondownloadedread", "nondownloadedunread"] | ||
|
||
The widget defaults to the first four above. If more than four fields are provided, only the first 4 are displayed. | ||
Category IDs can be obtained from the url when navigating to it, `?tab={categoryID}`. | ||
|
||
```yaml | ||
widget: | ||
type: suwayomi | ||
url: http://suwayomi.host.or.ip | ||
username: username #optional | ||
password: password #optional | ||
category: 0 #optional, defaults to all categories | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.