Skip to content

Instantly share code, notes, and snippets.

View stazdx's full-sized avatar
🏠
Working from home

Staz stazdx

🏠
Working from home
View GitHub Profile
@stazdx
stazdx / Chart.yaml
Last active June 1, 2022 08:20
Open Source Grafana Stack on k8s - k8staz.com
apiVersion: v2
name: kube-prometheus-stack
version: 1.0.0-SNAPSHOT
description: Chart to deploy kube-prometheus-stack
dependencies:
# https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/Chart.yaml
- name: kube-prometheus-stack
version: 34.6.0
repository: https://prometheus-community.github.io/helm-charts
@stazdx
stazdx / Controller.java
Created June 1, 2022 07:54
SpringBootOpenTelemetryPrometheusExemplars - k8staz.com
package com.staz.observability;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class Controller {
@PostMapping("/fail")
@stazdx
stazdx / bitbucket_list_all.py
Last active June 1, 2022 16:15
Bitbucket List all projects and repos
import requests
from requests.auth import HTTPBasicAuth
username = 'username@github.com' # Replace
password = 'xXxXxxxXxXXx' # Replace
team = 'StazDxru' # Replace
team_replaced = team+'@'
full_repo_list = []