git pull
git add .
git commit -m "clean push"
git push
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
#! /usr/bin/python | |
from logging import getLogger | |
from logging.config import dictConfig | |
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'formatters': |
You will need the requests
and authlib
packages. Just run :
$ pip install requests authlib
Then you need to generate an API Key from the App Store Connect portal (https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api).
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
groups: | |
- name: node_exporter_alerts | |
rules: | |
- alert: Node down | |
expr: up{job="monitoring-pi"} == 0 | |
for: 2m | |
labels: | |
severity: warning | |
annotations: | |
title: Node {{ $labels.instance }} is down |
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
"""Entrypoint to invoke the FastAPI application service with.""" | |
from fastapi import FastAPI, status | |
from pydantic import BaseModel | |
import uvicorn | |
app = FastAPI() | |
class HealthCheck(BaseModel): |