Skip to content

Commit

Permalink
fixup: Still moar cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
maru-ava committed Jul 1, 2024
1 parent 8bf0318 commit 1c5e485
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 53 deletions.
33 changes: 24 additions & 9 deletions .github/actions/run-monitored-tmpnet-cmd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ inputs:
run:
description: "the bash command to run"
required: true
repo:
default: ${{ github.repository }}
url_encoded_repo:
# TODO(marun) Process github.repository into this url-encoded form
default: 'ava-labs%2Favalanchego'
workflow:
default: ${{ github.workflow }}
run_id:
Expand All @@ -30,15 +31,29 @@ inputs:
runs:
using: composite
steps:
- name: Start monitoring tmpnet networks
- name: Start prometheus
# Only run for the original repo; a forked repo won't have access to the monitoring credentials
if: (inputs.prometheus_id != '')
uses: ./.github/actions/start-monitoring-tmpnet-networks
with:
prometheus_id: ${{ inputs.prometheus_id }}
prometheus_password: ${{ inputs.prometheus_password }}
loki_id: ${{ inputs.loki_id }}
loki_password: ${{ inputs.loki_password }}
shell: bash
run: bash -x ./scripts/run_prometheus.sh
env:
PROMETHEUS_ID: ${{ inputs.prometheus_id }}
PROMETHEUS_PASSWORD: ${{ inputs.prometheus_password }}
- name: Start promtail
if: (inputs.prometheus_id != '')
shell: bash
run: bash -x ./scripts/run_promtail.sh
env:
LOKI_ID: ${{ inputs.loki_id }}
LOKI_PASSWORD: ${{ inputs.loki_password }}
- name: Notify of metrics availability
if: (inputs.prometheus_id != '')
shell: bash
run: .github/actions/run-monitored-tmpnet-cmd/notify-metrics-availability.sh
env:
GRAFANA_URL: https://grafana-experimental.avax-dev.network/d/kBQpRdWnk/avalanche-main-dashboard?orgId=1&refresh=10s&var-filter=is_ephemeral_node%7C%3D%7Cfalse&var-filter=gh_repo%7C%3D%7C${{ inputs.url_encoded_repo }}&var-filter=gh_run_id%7C%3D%7C${{ inputs.run_id }}&var-filter=gh_run_attempt%7C%3D%7C${{ inputs.run_attempt }}
GH_JOB_ID: ${{ inputs.job }}
FILTER_BY_OWNER: ${{ inputs.owner }}
- name: Run command
shell: bash
run: ${{ inputs.run }}
Expand Down
44 changes: 0 additions & 44 deletions .github/actions/start-monitoring-tmpnet-networks/action.yml

This file was deleted.

0 comments on commit 1c5e485

Please sign in to comment.