forked from RemoteSync/grafana-meta-monitoring-chart
Compare commits
1 Commits
v0.0.1
...
chore/upda
Author | SHA1 | Date | |
---|---|---|---|
|
324da60305 |
3
.github/configs/cr.yaml
vendored
3
.github/configs/cr.yaml
vendored
@@ -1,3 +0,0 @@
|
|||||||
owner: grafana
|
|
||||||
git-repo: helm-charts
|
|
||||||
skip-existing: true
|
|
15
.github/configs/ct.yaml
vendored
15
.github/configs/ct.yaml
vendored
@@ -1,15 +0,0 @@
|
|||||||
## Reference: https://github.com/helm/chart-testing/blob/master/doc/ct_lint-and-install.md
|
|
||||||
remote: origin
|
|
||||||
target-branch: main
|
|
||||||
chart-dirs:
|
|
||||||
- charts
|
|
||||||
chart-repos:
|
|
||||||
- grafana=https://grafana.github.io/helm-charts
|
|
||||||
- minio=https://charts.min.io
|
|
||||||
validate-chart-schema: true
|
|
||||||
validate-maintainers: true
|
|
||||||
validate-yaml: true
|
|
||||||
exclude-deprecated: true
|
|
||||||
excluded-charts: []
|
|
||||||
namespace: meta-monitoring # Need to set the namespace because we create the secret there
|
|
||||||
release-label: app.kubernetes.io/instance
|
|
@@ -5,7 +5,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
# Run once a day
|
# Run once a day
|
||||||
- cron: '0 7 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: "write"
|
contents: "write"
|
||||||
@@ -47,6 +47,7 @@ jobs:
|
|||||||
labels: dependencies
|
labels: dependencies
|
||||||
branch: chore/update-loki
|
branch: chore/update-loki
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
team-reviewers: loki-team
|
||||||
|
|
||||||
updateGrafanaAlloy:
|
updateGrafanaAlloy:
|
||||||
name: Update the Grafana Alloy subchart
|
name: Update the Grafana Alloy subchart
|
||||||
@@ -79,6 +80,7 @@ jobs:
|
|||||||
labels: dependencies
|
labels: dependencies
|
||||||
branch: chore/update-grafana-alloy
|
branch: chore/update-grafana-alloy
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
team-reviewers: loki-team
|
||||||
|
|
||||||
updateMimirDistributed:
|
updateMimirDistributed:
|
||||||
name: Update the Mimir Distributed subchart
|
name: Update the Mimir Distributed subchart
|
||||||
@@ -111,6 +113,7 @@ jobs:
|
|||||||
labels: dependencies
|
labels: dependencies
|
||||||
branch: chore/update-mimir-distributed
|
branch: chore/update-mimir-distributed
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
team-reviewers: loki-team
|
||||||
|
|
||||||
updateTempoDistributed:
|
updateTempoDistributed:
|
||||||
name: Update the Tempo Distributed subchart
|
name: Update the Tempo Distributed subchart
|
||||||
@@ -143,6 +146,7 @@ jobs:
|
|||||||
labels: dependencies
|
labels: dependencies
|
||||||
branch: chore/update-tempo-distributed
|
branch: chore/update-tempo-distributed
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
team-reviewers: loki-team
|
||||||
|
|
||||||
updateMinio:
|
updateMinio:
|
||||||
name: Update the Minio subchart
|
name: Update the Minio subchart
|
||||||
@@ -175,3 +179,4 @@ jobs:
|
|||||||
labels: dependencies
|
labels: dependencies
|
||||||
branch: chore/update-minio
|
branch: chore/update-minio
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
team-reviewers: loki-team
|
||||||
|
167
.github/workflows/helm-release.yml
vendored
167
.github/workflows/helm-release.yml
vendored
@@ -1,167 +0,0 @@
|
|||||||
name: Release Helm chart
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
env:
|
|
||||||
CR_CONFIGFILE: "${{ github.workspace }}/source/.github/configs/cr.yaml"
|
|
||||||
CT_CONFIGFILE: "${{ github.workspace }}/source/.github/configs/ct.yaml"
|
|
||||||
CR_INDEX_PATH: "${{ github.workspace }}/.cr-index"
|
|
||||||
CR_PACKAGE_PATH: "${{ github.workspace }}/.cr-release-packages"
|
|
||||||
CR_TOOL_PATH: "${{ github.workspace }}/.cr-tool"
|
|
||||||
CR_VERSION: "1.5.0"
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write
|
|
||||||
jobs:
|
|
||||||
setup:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
changed: ${{ steps.list-changed.outputs.changed }}
|
|
||||||
chartpath: ${{ steps.list-changed.outputs.chartpath }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
path: source
|
|
||||||
|
|
||||||
- name: Install chart-testing
|
|
||||||
uses: helm/chart-testing-action@v2
|
|
||||||
|
|
||||||
- name: List changed charts
|
|
||||||
id: list-changed
|
|
||||||
run: |
|
|
||||||
cd source
|
|
||||||
|
|
||||||
latest_tag=$( if ! git describe --tags --abbrev=0 --match='helm-chart/*' 2> /dev/null ; then git rev-list --max-parents=0 --first-parent HEAD; fi )
|
|
||||||
|
|
||||||
echo "Running: ct list-changed --config ${CT_CONFIGFILE} --since ${latest_tag} --target-branch ${{ github.ref_name }}"
|
|
||||||
changed=$(ct list-changed --config "${CT_CONFIGFILE}" --since "${latest_tag}" --target-branch "${{ github.ref_name }}")
|
|
||||||
echo "${changed}"
|
|
||||||
|
|
||||||
num_changed=$(wc -l <<< ${changed})
|
|
||||||
if [[ "${num_changed}" -gt "1" ]] ; then
|
|
||||||
echo "More than one chart changed, exiting"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [[ -n "${changed}" ]]; then
|
|
||||||
name=$(yq ".name" < ${changed}/Chart.yaml)
|
|
||||||
version=$(yq ".version" < ${changed}/Chart.yaml)
|
|
||||||
tagname="v${version}"
|
|
||||||
|
|
||||||
if [ $(git tag -l "${tagname}") ]; then
|
|
||||||
echo "Tag ${tagname} already exists, skipping release"
|
|
||||||
echo "changed=false" >> $GITHUB_OUTPUT
|
|
||||||
else
|
|
||||||
echo "Releasing ${changed}"
|
|
||||||
echo "changed=true" >> $GITHUB_OUTPUT
|
|
||||||
echo "chartpath=${changed}" >> $GITHUB_OUTPUT
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "No charts have changed, skipping release"
|
|
||||||
echo "changed=false" >> $GITHUB_OUTPUT
|
|
||||||
fi
|
|
||||||
|
|
||||||
release:
|
|
||||||
needs: [setup]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: needs.setup.outputs.changed == 'true'
|
|
||||||
steps:
|
|
||||||
- uses: actions/create-github-app-token@v1
|
|
||||||
id: app-token
|
|
||||||
with:
|
|
||||||
app-id: ${{ secrets.app-id }}
|
|
||||||
private-key: ${{ secrets.private-key }}
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
path: source
|
|
||||||
|
|
||||||
- name: Configure Git
|
|
||||||
run: |
|
|
||||||
cd source
|
|
||||||
git config user.name "$GITHUB_ACTOR"
|
|
||||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
||||||
|
|
||||||
- name: Checkout helm-charts
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
repository: grafana/helm-charts
|
|
||||||
path: helm-charts
|
|
||||||
token: "${{ steps.app-token.outputs.token }}"
|
|
||||||
|
|
||||||
- name: Configure Git for helm-charts
|
|
||||||
run: |
|
|
||||||
cd helm-charts
|
|
||||||
git config user.name "$GITHUB_ACTOR"
|
|
||||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
||||||
|
|
||||||
- name: Set up Helm
|
|
||||||
uses: azure/setup-helm@v4
|
|
||||||
|
|
||||||
- name: Parse Chart.yaml
|
|
||||||
id: parse-chart
|
|
||||||
run: |
|
|
||||||
cd source
|
|
||||||
changed="${{ needs.setup.outputs.chartpath }}"
|
|
||||||
description=$(yq ".description" < ${changed}/Chart.yaml)
|
|
||||||
name=$(yq ".name" < ${changed}/Chart.yaml)
|
|
||||||
version=$(yq ".version" < ${changed}/Chart.yaml)
|
|
||||||
|
|
||||||
echo "chartpath=${changed}" >> $GITHUB_OUTPUT
|
|
||||||
echo "desc=${description}" >> $GITHUB_OUTPUT
|
|
||||||
echo "tagname=v${version}" >> $GITHUB_OUTPUT
|
|
||||||
echo "packagename=${name}-${version}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Install CR tool
|
|
||||||
run: |
|
|
||||||
mkdir "${CR_TOOL_PATH}"
|
|
||||||
mkdir "${CR_PACKAGE_PATH}"
|
|
||||||
mkdir "${CR_INDEX_PATH}"
|
|
||||||
curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/v${CR_VERSION}/chart-releaser_${CR_VERSION}_linux_amd64.tar.gz"
|
|
||||||
tar -xzf cr.tar.gz -C "${CR_TOOL_PATH}"
|
|
||||||
rm -f cr.tar.gz
|
|
||||||
|
|
||||||
- name: Create Helm package
|
|
||||||
run: |
|
|
||||||
cd source
|
|
||||||
helm repo add grafana https://grafana.github.io/helm-charts
|
|
||||||
helm repo add minio https://charts.min.io
|
|
||||||
|
|
||||||
"${CR_TOOL_PATH}/cr" package "${{ steps.parse-chart.outputs.chartpath }}" --config "${CR_CONFIGFILE}" --package-path "${CR_PACKAGE_PATH}"
|
|
||||||
|
|
||||||
- name: Make a release on this repo
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
name: ${{ steps.parse-chart.outputs.tagname }}
|
|
||||||
repository: grafana/meta-monitoring-chart
|
|
||||||
tag_name: ${{ steps.parse-chart.outputs.tagname }}
|
|
||||||
token: ${{ steps.app-token.outputs.token }}
|
|
||||||
generate_release_notes: true
|
|
||||||
files: |
|
|
||||||
${{ env.CR_PACKAGE_PATH }}/${{ steps.parse-chart.outputs.packagename }}.tgz
|
|
||||||
|
|
||||||
# Note that this creates a release in grafana/helm-charts with a new tag.
|
|
||||||
# The tag name in grafana/helm-charts is <package>-<version>, while the
|
|
||||||
# tag name for grafana/meta-monitoring-chart is <version>.
|
|
||||||
- name: Make release on Helm Charts
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
name: ${{ steps.parse-chart.outputs.packagename }}
|
|
||||||
repository: grafana/helm-charts
|
|
||||||
tag_name: ${{ steps.parse-chart.outputs.packagename }}
|
|
||||||
token: ${{ steps.app-token.outputs.token }}
|
|
||||||
body: |
|
|
||||||
${{ steps.parse-chart.outputs.desc }}
|
|
||||||
|
|
||||||
Source commit: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
|
|
||||||
|
|
||||||
Tag on source: https://github.com/${{ github.repository }}/releases/tag/${{ steps.parse-chart.outputs.tagname }}
|
|
||||||
files: |
|
|
||||||
${{ env.CR_PACKAGE_PATH }}/${{ steps.parse-chart.outputs.packagename }}.tgz
|
|
||||||
|
|
||||||
- name: Update helm-charts index.yaml
|
|
||||||
run: |
|
|
||||||
cd helm-charts
|
|
||||||
"${CR_TOOL_PATH}/cr" index --config "${CR_CONFIGFILE}" --token "${{ steps.app-token.outputs.token }}" --index-path "${CR_INDEX_PATH}" --package-path "${CR_PACKAGE_PATH}" --push
|
|
@@ -1,7 +1,7 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: loki
|
- name: loki
|
||||||
repository: https://grafana.github.io/helm-charts
|
repository: https://grafana.github.io/helm-charts
|
||||||
version: 6.2.0
|
version: 5.47.2
|
||||||
- name: alloy
|
- name: alloy
|
||||||
repository: https://grafana.github.io/helm-charts
|
repository: https://grafana.github.io/helm-charts
|
||||||
version: 0.1.1
|
version: 0.1.1
|
||||||
@@ -14,5 +14,5 @@ dependencies:
|
|||||||
- name: minio
|
- name: minio
|
||||||
repository: https://charts.min.io
|
repository: https://charts.min.io
|
||||||
version: 5.1.0
|
version: 5.1.0
|
||||||
digest: sha256:f9a79bfc30df65ba2ff94a097844f6b3aa41970318d5fb1708b3aeecebbe68d1
|
digest: sha256:b9521eea011cdf82856ee909f3f42f98722393678799094de2307e89c92bc045
|
||||||
generated: "2024-04-16T08:10:03.998180905Z"
|
generated: "2024-04-16T08:02:22.805352422Z"
|
||||||
|
@@ -22,7 +22,7 @@ appVersion: "0.0.1"
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: loki
|
- name: loki
|
||||||
repository: https://grafana.github.io/helm-charts
|
repository: https://grafana.github.io/helm-charts
|
||||||
version: 6.2.0
|
version: "5.47.2"
|
||||||
condition: local.logs.enabled
|
condition: local.logs.enabled
|
||||||
- name: alloy
|
- name: alloy
|
||||||
repository: https://grafana.github.io/helm-charts
|
repository: https://grafana.github.io/helm-charts
|
||||||
|
BIN
charts/meta-monitoring/charts/loki-5.47.2.tgz
Normal file
BIN
charts/meta-monitoring/charts/loki-5.47.2.tgz
Normal file
Binary file not shown.
Binary file not shown.
@@ -202,15 +202,6 @@ kubeStateMetrics:
|
|||||||
loki:
|
loki:
|
||||||
loki:
|
loki:
|
||||||
auth_enabled: false
|
auth_enabled: false
|
||||||
schemaConfig:
|
|
||||||
configs:
|
|
||||||
- from: 2024-03-29
|
|
||||||
store: tsdb
|
|
||||||
object_store: s3
|
|
||||||
schema: v13
|
|
||||||
index:
|
|
||||||
prefix: index_
|
|
||||||
period: 24h
|
|
||||||
storage:
|
storage:
|
||||||
type: "s3"
|
type: "s3"
|
||||||
s3:
|
s3:
|
||||||
@@ -228,13 +219,8 @@ loki:
|
|||||||
secret_access_key: "{{ .Values.global.minio.rootPassword }}"
|
secret_access_key: "{{ .Values.global.minio.rootPassword }}"
|
||||||
compactor:
|
compactor:
|
||||||
retention_enabled: true
|
retention_enabled: true
|
||||||
delete_request_store: s3
|
|
||||||
limits_config:
|
limits_config:
|
||||||
retention_period: 30d
|
retention_period: 30d
|
||||||
lokiCanary:
|
|
||||||
enabled: false
|
|
||||||
test:
|
|
||||||
enabled: false
|
|
||||||
monitoring:
|
monitoring:
|
||||||
dashboards:
|
dashboards:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
Reference in New Issue
Block a user