-
Notifications
You must be signed in to change notification settings - Fork 2
docs: update the readme #195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
25c7dae
docs: Add readme intro
cbartz 107e1db
docs: update repository layout and remove observability section
cbartz 5fdfb77
docs: move Grafana dashboard reference to docs/reference
cbartz 9daeb09
docs: fix review comments - capitalize Juju and replace e.g.
cbartz 31595c4
docs: fix spelling and broken link in grafana-dashboards reference
cbartz 8c5952b
docs: fix host metrics receiver link to point to correct source
cbartz f3da639
Merge branch 'main' into docs/update-readme-ISD-5404
cbartz 9297cb4
docs: add charms and documentation sections to README
cbartz 5f71d0f
docs: widen changelog scope to cover the entire repository
cbartz 82da619
docs: link to charms reference and Go project layout from README
cbartz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,41 +1,32 @@ | ||
| # GitHub runner operators | ||
|
|
||
|  | ||
| This repository contains applications, Juju charms, Grafana dashboards and actions related to operating and using | ||
| self-hosted GitHub Actions runners. | ||
|
|
||
| A monorepo containing charms to operate Self-Hosted GitHub Action Runners. | ||
|
|
||
| ## Repository layout | ||
|
|
||
| ``` | ||
| actions/ | ||
| enable-log-forwarding/ # GitHub Action: enable log forwarding on runners | ||
|
|
||
| charms/ | ||
| planner-operator/ # Juju charm: GitHub runner planner | ||
| cos_custom/ | ||
| grafana_dashboards/ # Grafana dashboards for the planner charm | ||
| # (served via cos-configuration-k8s, path: charms/planner-operator/cos_custom/grafana_dashboards) | ||
| webhook-gateway-operator/ # Juju charm: GitHub webhook gateway | ||
|
cbartz marked this conversation as resolved.
|
||
|
|
||
| runner_grafana_dashboards/ # Grafana dashboards for runner VM host metrics | ||
| # (served via cos-configuration-k8s, path: runner_grafana_dashboards) | ||
| ``` | ||
| cmd/ | ||
| planner/ # Application entry point: planner | ||
| webhook-gateway/ # Application entry point: webhook gateway | ||
|
|
||
| ## Observability: Grafana dashboards | ||
| internal/ # Shared Go packages | ||
|
cbartz marked this conversation as resolved.
|
||
|
|
||
| Dashboards in this repo are delivered to Grafana through | ||
| [`cos-configuration-k8s`](https://charmhub.io/cos-configuration-k8s), which syncs | ||
| JSON files from this Git repository and provisions them via the `grafana-dashboard` | ||
| relation. Provisioned dashboards are **immutable** in Grafana regardless of user | ||
| role — they cannot be edited or deleted through the UI. | ||
| docs/ # Documentation | ||
|
cbartz marked this conversation as resolved.
|
||
|
|
||
| ### Conventions | ||
| runner_grafana_dashboards/ # Grafana dashboards for runner VM host metrics | ||
|
cbartz marked this conversation as resolved.
|
||
| ``` | ||
|
|
||
| | Directory | Purpose | `grafana_dashboards_path` config value | | ||
| |---|---|---| | ||
| | `charms/<charm>/cos_custom/grafana_dashboards/` | Dashboards for a specific charm's workload metrics | `charms/<charm>/cos_custom/grafana_dashboards` | | ||
| | `runner_grafana_dashboards/` | Dashboards for runner VM host-level metrics (CPU, memory, disk, network) | `runner_grafana_dashboards` | | ||
| ## Further information | ||
|
|
||
| Dashboard JSON files should use `__inputs` to declare the datasource (type `prometheus`). | ||
| Setting `"editable": false` is recommended for clarity, but is not strictly required: | ||
| dashboards delivered through `cos-configuration-k8s` are filesystem-provisioned and | ||
| therefore read-only in Grafana regardless of the JSON flag. Metric names follow the | ||
| [OpenTelemetry hostmetrics receiver](https://opentelemetry.io/docs/collector/components/#receiver) | ||
| Prometheus naming convention (e.g. `system_cpu_time_seconds_total`). | ||
| Further information can be found in the `docs/` directory. | ||
|
cbartz marked this conversation as resolved.
Outdated
cbartz marked this conversation as resolved.
Outdated
cbartz marked this conversation as resolved.
Outdated
cbartz marked this conversation as resolved.
Outdated
|
||
This file contains hidden or 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 @@ | ||
| # Grafana dashboards | ||
|
|
||
| ## Dashboard directories | ||
|
|
||
| | Directory | Purpose | | ||
| |---|---| | ||
| | `charms/<charm>/cos_custom/grafana_dashboards/` | Dashboards for a specific charm's workload metrics | | ||
| | `runner_grafana_dashboards/` | Dashboards for runner VM host-level metrics (CPU, memory, disk, network) | | ||
|
|
||
|
cbartz marked this conversation as resolved.
|
||
| ## Conventions | ||
|
|
||
| Dashboard JSON files should use `__inputs` to declare the data source (type `prometheus`). | ||
| Setting `"editable": false` is recommended for clarity. Metric names follow the | ||
| [OpenTelemetry host metrics receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/hostmetricsreceiver) | ||
| Prometheus naming convention (for example, `system_cpu_time_seconds_total`). | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -10,4 +10,5 @@ Contents | |
| :maxdepth: 1 | ||
|
|
||
| architecture | ||
| charms | ||
| charms | ||
| grafana-dashboards | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.