-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: convert prometheus charts to helm install (#597)
* fix: prometheus-blackbox-exporter kustomize->helm driven install * fix: prometheus-postgres-exporter kustomize->helm driven install * fix: prometheus-rabbitmq-exporter kustomize->helm driven install * fix: prometheus-pushgateway kustomize->helm driven install * fix: prometheus-mysql-exporter kustomize->helm driven install JIRA:OSPC-854
- Loading branch information
1 parent
749db1b
commit c2714f0
Showing
31 changed files
with
233 additions
and
151 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Helm GitHub Actions for Prometheus Blackbox Exporter | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- base-helm-configs/prometheus-blackbox-exporter/** | ||
- base-kustomize/prometheus-blackbox-exporter/** | ||
- .github/workflows/helm-prometheus-blackbox-exporter.yaml | ||
jobs: | ||
helm: | ||
strategy: | ||
matrix: | ||
overlays: | ||
- base | ||
name: Helm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: azure/setup-helm@v3 | ||
with: | ||
version: latest | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
id: helm | ||
- name: Add prometheus-community repo to helm | ||
run: | | ||
${{ steps.helm.outputs.helm-path }} repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
${{ steps.helm.outputs.helm-path }} repo update | ||
- name: Run Helm Template | ||
run: | | ||
${{ steps.helm.outputs.helm-path }} template prometheus-blackbox-exporter prometheus-community/prometheus-blackbox-exporter \ | ||
--create-namespace \ | ||
--namespace=prometheus \ | ||
-f ${{ github.workspace }}//base-helm-configs/prometheus-blackbox-exporter/values.yaml \ | ||
-f ${{ github.workspace }}//base-helm-configs/prometheus-blackbox-exporter/probe_targets.yaml \ | ||
--post-renderer ${{ github.workspace }}/base-kustomize/kustomize.sh \ | ||
--post-renderer-args prometheus-blackbox-exporter/${{ matrix.overlays }} > /tmp/rendered.yaml | ||
- name: Return helm Build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: helm-prometheus-artifact-${{ matrix.overlays }} | ||
path: /tmp/rendered.yaml |
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,41 @@ | ||
name: Helm GitHub Actions for Prometheus MySQL Exporter | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- base-helm-configs/prometheus-mysql-exporter/** | ||
- base-kustomize/prometheus-mysql-exporter/** | ||
- .github/workflows/helm-prometheus-mysql-exporter.yaml | ||
jobs: | ||
helm: | ||
strategy: | ||
matrix: | ||
overlays: | ||
- base | ||
name: Helm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: azure/setup-helm@v3 | ||
with: | ||
version: latest | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
id: helm | ||
- name: Add prometheus-community repo to helm | ||
run: | | ||
${{ steps.helm.outputs.helm-path }} repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
${{ steps.helm.outputs.helm-path }} repo update | ||
- name: Run Helm Template | ||
run: | | ||
${{ steps.helm.outputs.helm-path }} template prometheus-mysql-exporter prometheus-community/prometheus-mysql-exporter \ | ||
--create-namespace \ | ||
--namespace=prometheus \ | ||
-f ${{ github.workspace }}//base-helm-configs/prometheus-mysql-exporter/values.yaml \ | ||
--post-renderer ${{ github.workspace }}/base-kustomize/kustomize.sh \ | ||
--post-renderer-args prometheus-mysql-exporter/${{ matrix.overlays }} > /tmp/rendered.yaml | ||
- name: Return helm Build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: helm-prometheus-artifact-${{ matrix.overlays }} | ||
path: /tmp/rendered.yaml |
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,41 @@ | ||
name: Helm GitHub Actions for Prometheus Postgres Exporter | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- base-helm-configs/prometheus-postgres-exporter/** | ||
- base-kustomize/prometheus-postgres-exporter/** | ||
- .github/workflows/helm-prometheus-postgres-exporter.yaml | ||
jobs: | ||
helm: | ||
strategy: | ||
matrix: | ||
overlays: | ||
- base | ||
name: Helm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: azure/setup-helm@v3 | ||
with: | ||
version: latest | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
id: helm | ||
- name: Add prometheus-community repo to helm | ||
run: | | ||
${{ steps.helm.outputs.helm-path }} repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
${{ steps.helm.outputs.helm-path }} repo update | ||
- name: Run Helm Template | ||
run: | | ||
${{ steps.helm.outputs.helm-path }} template prometheus prometheus-community/prometheus-postgres-exporter \ | ||
--create-namespace \ | ||
--namespace=prometheus \ | ||
-f ${{ github.workspace }}//base-helm-configs/prometheus-postgres-exporter/values.yaml \ | ||
--post-renderer ${{ github.workspace }}/base-kustomize/kustomize.sh \ | ||
--post-renderer-args prometheus-postgres-exporter/${{ matrix.overlays }} > /tmp/rendered.yaml | ||
- name: Return helm Build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: helm-prometheus-artifact-${{ matrix.overlays }} | ||
path: /tmp/rendered.yaml |
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,41 @@ | ||
name: Helm GitHub Actions for Prometheus Pushgateway | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- base-helm-configs/prometheus-pushgateway/** | ||
- base-kustomize/prometheus-pushgateway/** | ||
- .github/workflows/helm-prometheus-pushgateway.yaml | ||
jobs: | ||
helm: | ||
strategy: | ||
matrix: | ||
overlays: | ||
- base | ||
name: Helm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: azure/setup-helm@v3 | ||
with: | ||
version: latest | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
id: helm | ||
- name: Add prometheus-community repo to helm | ||
run: | | ||
${{ steps.helm.outputs.helm-path }} repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
${{ steps.helm.outputs.helm-path }} repo update | ||
- name: Run Helm Template | ||
run: | | ||
${{ steps.helm.outputs.helm-path }} template prometheus-pushgateway prometheus-community/prometheus-pushgateway \ | ||
--create-namespace \ | ||
--namespace=prometheus \ | ||
-f ${{ github.workspace }}//base-helm-configs/prometheus-pushgateway/values.yaml \ | ||
--post-renderer ${{ github.workspace }}/base-kustomize/kustomize.sh \ | ||
--post-renderer-args prometheus-pushgateway/${{ matrix.overlays }} > /tmp/rendered.yaml | ||
- name: Return helm Build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: helm-prometheus-artifact-${{ matrix.overlays }} | ||
path: /tmp/rendered.yaml |
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,41 @@ | ||
name: Helm GitHub Actions for Prometheus RabbitMQ Exporter | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- base-helm-configs/prometheus-rabbitmq-exporter/** | ||
- base-kustomize/prometheus-rabbitmq-exporter/** | ||
- .github/workflows/helm-prometheus-rabbitmq-exporter.yaml | ||
jobs: | ||
helm: | ||
strategy: | ||
matrix: | ||
overlays: | ||
- base | ||
name: Helm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: azure/setup-helm@v3 | ||
with: | ||
version: latest | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
id: helm | ||
- name: Add prometheus-community repo to helm | ||
run: | | ||
${{ steps.helm.outputs.helm-path }} repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
${{ steps.helm.outputs.helm-path }} repo update | ||
- name: Run Helm Template | ||
run: | | ||
${{ steps.helm.outputs.helm-path }} template prometheus-rabbitmq-exporter prometheus-community/prometheus-rabbitmq-exporter \ | ||
--create-namespace \ | ||
--namespace=openstack \ | ||
-f ${{ github.workspace }}//base-helm-configs/prometheus-rabbitmq-exporter/values.yaml \ | ||
--post-renderer ${{ github.workspace }}/base-kustomize/kustomize.sh \ | ||
--post-renderer-args prometheus-rabbitmq-exporter/${{ matrix.overlays }} > /tmp/rendered.yaml | ||
- name: Return helm Build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: helm-prometheus-artifact-${{ matrix.overlays }} | ||
path: /tmp/rendered.yaml |
33 changes: 0 additions & 33 deletions
33
.github/workflows/kustomize-prometheus-mysql-exporter.yaml
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
.github/workflows/kustomize-prometheus-postgres-exporter.yaml
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
.github/workflows/kustomize-prometheus-rabbitmq-exporter.yaml
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
base-kustomize/prometheus-blackbox-exporter/base/kustomization.yaml
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,4 @@ | ||
sortOptions: | ||
order: fifo | ||
resources: | ||
- all.yaml |
9 changes: 0 additions & 9 deletions
9
base-kustomize/prometheus-blackbox-exporter/kustomization.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
base-kustomize/prometheus-mysql-exporter/base/kustomization.yaml
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,6 @@ | ||
sortOptions: | ||
order: fifo | ||
resources: | ||
- monitoring_user_create.yaml | ||
- monitoring_user_grant.yaml | ||
- all.yaml |
File renamed without changes.
File renamed without changes.
13 changes: 0 additions & 13 deletions
13
base-kustomize/prometheus-mysql-exporter/kustomization.yaml
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
base-kustomize/prometheus-postgres-exporter/base/kustomization.yaml
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,4 @@ | ||
sortOptions: | ||
order: fifo | ||
resources: | ||
- all.yaml |
8 changes: 0 additions & 8 deletions
8
base-kustomize/prometheus-postgres-exporter/kustomization.yaml
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
base-kustomize/prometheus-pushgateway/base/kustomization.yaml
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,4 @@ | ||
sortOptions: | ||
order: fifo | ||
resources: | ||
- all.yaml |
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
base-kustomize/prometheus-rabbitmq-exporter/base/kustomization.yaml
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,4 @@ | ||
sortOptions: | ||
order: fifo | ||
resources: | ||
- all.yaml |
7 changes: 0 additions & 7 deletions
7
base-kustomize/prometheus-rabbitmq-exporter/kustomization.yaml
This file was deleted.
Oops, something went wrong.
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.