Skip to content
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

[DRAFT] Setup #2

Merged
merged 39 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
fe0970d
Setup
bentonam Apr 4, 2024
75f39f7
Modules
bentonam Apr 4, 2024
6075f4c
Updated Workflows
bentonam Apr 4, 2024
d0d2f74
Restructuring
bentonam Apr 4, 2024
3157079
Agent Install
bentonam Apr 4, 2024
55965f4
Agent Workflow
bentonam Apr 4, 2024
726bfb9
River Lint
bentonam Apr 4, 2024
5815bf0
River Lint Output
bentonam Apr 4, 2024
40286bb
Reviewdog
bentonam Apr 4, 2024
c129e2c
River Lint
bentonam Apr 4, 2024
442d435
River Lint
bentonam Apr 4, 2024
3101332
Escape Characters
bentonam Apr 4, 2024
3d12293
Escape Characters
bentonam Apr 4, 2024
0ad63dd
XML Escape Characters
bentonam Apr 4, 2024
215ba29
River Lint
bentonam Apr 4, 2024
a7729e8
Textlint Updates
bentonam Apr 4, 2024
1633b8a
Textlint Updates
bentonam Apr 4, 2024
d879519
Testing
bentonam Apr 4, 2024
66c2f64
Tower
bentonam Apr 4, 2024
1ece52c
Formatting
bentonam Apr 5, 2024
02e8429
Disable Line Length
bentonam Apr 5, 2024
1069bfd
Grafana Cloud Stack
bentonam Apr 5, 2024
c619615
Updates
bentonam Apr 5, 2024
4f4d790
Shellcheck disable
bentonam Apr 5, 2024
8f3194c
Push Gateway
bentonam Apr 5, 2024
64b27f0
Updates
bentonam Apr 5, 2024
469f0b3
Arguments
bentonam Apr 5, 2024
b238180
Formatting
bentonam Apr 5, 2024
4547ee0
List Spacing
bentonam Apr 5, 2024
bb89f8b
Modules TOC
bentonam Apr 5, 2024
ffdd26e
Yaml Lint
bentonam Apr 8, 2024
f1f4774
Annotation Modules
bentonam Apr 8, 2024
7aed907
Typo
bentonam Apr 8, 2024
d99e095
Link
bentonam Apr 8, 2024
eb22f98
Shellcheck Updates
bentonam Apr 8, 2024
7693a18
Updated Repo Reference
bentonam Apr 8, 2024
c9276a9
Module TOCs
bentonam Apr 8, 2024
ebef13d
Auto Tag
bentonam Apr 8, 2024
819db45
Updates
bentonam Apr 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .ecrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file is the top-most EditorConfig file
root = true

# All Files
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# Makefiles
[{Makefile,**.mk}]
indent_style = tab

# Python Files
[*.py]
indent_style = space
indent_size = 4
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
day: 'saturday'
versioning-strategy: 'increase'
labels:
- 'dependencies'
- 'automerge'
open-pull-requests-limit: 5
pull-request-branch-name:
separator: '-'
commit-message:
# cause a release for non-dev-deps
prefix: fix(deps)
# no release for dev-deps
prefix-development: chore(dev-deps)
ignore:
- dependency-name: '@salesforce/dev-scripts'
- dependency-name: '*'
update-types: ['version-update:semver-major']
59 changes: 59 additions & 0 deletions .github/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
# Use the following command to test globs locally:

brokers:
- '(broker|brokers|kafka|rabbitmq|nats|nats-streaming)'

cloud:
- '(cloud|aws|azure|gcp|google|alibaba|tencent|oracle|digitalocean|linode|vultr|upcloud|scaleway|hetzner|ovh|cloudflare)'

aws:
- '(aws|amazon|ec2|s3|lambda|cloudfront|route53|eks|ecr|ecs|fargate|cloudwatch|cloudtrail|cloudformation|cfn|cognito|iam|sts|sqs|sns|sqs)'

azure:
- '(azure|azurerm|aks|acr|app-service|cosmosdb|keyvault|vm|virtual-machine|vnet|virtual-network|storage|blob|table|queue|file|cdn|frontdoor)'

gcp:
- '(gcp|google|gke|gce|gcs|cloud-storage|cloud-functions|cloud-run|cloud-sql|cloud-spanner|cloud-pubsub|cloud-iot|cloud-tpu|cloud-ml|cloud-ai)'

grafana:
- '(grafana|grafana-labs|grafana-cloud|grafana-enterprise|grafana-agent|grafana-loki|raintank|metrictank)'

kubernetes:
- '(kube|k8s|kubernetes|cadvisor|kubeadm|kubectl|kube-?proxy|kube-scheduler|kube-controller|kube-?apiserver|kubelet)'

loki:
- '(loki|gel|log|logql|enterprise(-| )log|promtail)'

mimir:
- '(mimir|gem|prometheus|promql|enterprise(-| )?metric)'

ci-cd:
- '(lint|tag|release|deploy|ci|cd|pipeline|workflow|github-actions)'

openshift:
- '(openshift|oc|oadm|oadmin|ocp|okd|openshift-origin)'

otel:
- '(otel|instrument|telemetry|trace|tracing|opentelemetry|jaeger|zipkin)'

system:
- '(system|linux|unix|macos|windows|freebsd|openbsd|netbsd|dragonfly|solaris|aix|esxi|vmware||ubuntu|debian|centos|rhel|fedora|suse|raspbian|raspberry)'

pyroscope:
- '(pyroscope|profile|profiling|heap|goroutine|goroutines|flamegraph|flame)'

tempo:
- '(tempo|trace|tracing|jaeger|zipkin|opentelemetry)'

windows:
- '(windows|win|wmi|perfmon|eventlog|event-log|eventviewer|event-viewer)'

utils:
- '(utils)'

logs:
- '(logs)'

metrics:
- '(metrics)'
125 changes: 125 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
---
# Use the following command to test globs locally:
# compgen -G '<glob-pattern>'

# Add 'brokers' label to any changes within 'modules' that references 'brokers'
brokers:
- changed-files:
- any-glob-to-any-file: 'modules/**/**brokers**'

# Add 'cloud' label to any changes within 'modules' that references 'cloud'
cloud:
- changed-files:
- any-glob-to-any-file: 'modules/**/**cloud**'

# Add 'aws' label to any changes within 'modules' that references 'cloud'
aws:
- changed-files:
- any-glob-to-any-file: 'modules/**/cloud/**aws**'

# Add 'azure' label to any changes within 'modules' that references 'aws'
azure:
- changed-files:
- any-glob-to-any-file: 'modules/**/cloud/**azure**'

# Add 'gcp' label to any changes within 'modules' that references 'azure'
gcp:
- changed-files:
- any-glob-to-any-file: 'modules/**/cloud/**gcp**'

# Add 'grafana' label to any changes within 'modules' that references 'gcp'
grafana:
- changed-files:
- any-glob-to-any-file: 'modules/**/cloud/**grafana**'

# Add 'collectors' label to any changes within 'modules' that references 'collectors'
collectors:
- changed-files:
- any-glob-to-any-file: 'modules/**/**collectors**'

# Add 'ci / cd' label to any changes within 'modules' that references 'ci' or 'cd
ci-cd:
- changed-files:
- any-glob-to-any-file: '.*' # dotfiles
- any-glob-to-any-file: 'Makefile'
- any-glob-to-any-file: 'package.json'
- any-glob-to-any-file: 'tools/**/*'

# Add 'kubernetes' label to any changes within 'modules' that references 'kubernetes'
kubernetes:
- changed-files:
- any-glob-to-any-file: 'modules/**/**kubernetes**'

# Add 'networking' label to any changes within 'modules' that references 'networking'
networking:
- changed-files:
- any-glob-to-any-file: 'modules/**/**networking**'

# Add 'source-control' label to any changes within 'modules' that references 'source-control'
source-control:
- changed-files:
- any-glob-to-any-file: 'modules/**/**source-control**'

# Add 'system' label to any changes within 'modules' that references 'system'
system:
- changed-files:
- any-glob-to-any-file: 'modules/**/**system**'

# Add 'k6' label to any changes within 'modules' that references 'k6'
ui:
- changed-files:
- any-glob-to-any-file: 'modules/**/**ui**'

# Add 'utils' label to any changes within 'modules' that references 'utils'
utils:
- changed-files:
- any-glob-to-any-file: 'modules/**/**utils**'

# Add 'loki' label to any changes within 'modules' that references 'loki'
loki:
- changed-files:
- any-glob-to-any-file: 'modules/**/**loki**'

# Add 'mimir' label to any changes within 'modules' that references 'mimir'
mimir:
- changed-files:
- any-glob-to-any-file: 'modules/**/**mimir**'

# Add 'logs' label to any changes within 'modules' that references 'logs'
logs:
- changed-files:
- any-glob-to-any-file: 'modules/**/**logs**'

# Add 'logs' label to any changes within 'modules' that references 'metrics'
metrics:
- changed-files:
- any-glob-to-any-file: 'modules/**/**metrics**'

# Add 'otel' label to any changes within 'modules' that references 'otel'
otel:
- changed-files:
- any-glob-to-any-file: 'modules/**/**otel**'

# Add 'pyroscope' label to any changes within 'modules' that references 'pyroscope' or 'profil'
pyroscope:
- changed-files:
- any-glob-to-any-file: 'modules/**/**pyroscope**'
- any-glob-to-any-file: 'modules/**/**profil**'

# Add 'tempo' label to any changes within 'modules' that references 'tempo' or 'trac'
tempo:
- changed-files:
- any-glob-to-any-file: 'modules/**/**tempo**'
- any-glob-to-any-file: 'modules/**/**trac**'

# Add 'unix' label to any changes within 'modules' that references 'linux' or 'unix' or 'node-exporter'
unix:
- changed-files:
- any-glob-to-any-file: 'modules/**/**linux**'
- any-glob-to-any-file: 'modules/**/**unix**'
- any-glob-to-any-file: 'modules/**/**node-exporter**'

# Add 'windows' label to any changes within 'modules' that references 'windows'
windows:
- changed-files:
- any-glob-to-any-file: 'modules/**/**windows**'
27 changes: 27 additions & 0 deletions .github/workflows/auto-approve-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Dependabot Auto-Approve
# yamllint disable-line rule:truthy
on:
# run when a PR is opened or updated to main
pull_request:
branches: ["main"]

permissions:
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
30 changes: 30 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Auto-Merge
# yamllint disable-line rule:truthy
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- id: automerge
name: automerge
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
28 changes: 28 additions & 0 deletions .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bump version
on:
pull_request:
types:
- closed
branches:
- main

jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'

- name: Bump version and push tag
uses: anothrNick/github-tag-action@v1 # Don't use @master or @v1 unless you're happy to test the latest version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
WITH_V: true
DEFAULT_BUMP: patch
INITIAL_VERSION: 0.1.0
22 changes: 22 additions & 0 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Issue Labeler

# yamllint disable-line rule:truthy
on:
issues:
types: [opened, edited]

permissions:
issues: write
contents: read

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/[email protected]
with:
configuration-path: .github/issue-labeler.yml
include-title: 1
include-body: 1
repo-token: ${{ github.token }}
18 changes: 18 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Pull Request Labeler

# yamllint disable-line rule:truthy
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
# automatically add labels to pull requests based on the files changed
configuration-path: .github/pr-labeler.yml
Loading