Skip to content

Instantly share code, notes, and snippets.

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

adrafiq

🏠
Working from home
View GitHub Profile
@adrafiq
adrafiq / prometheus-central.yaml
Created October 25, 2020 02:05
Monitoring Example Multi-Cluster Enviornment
# See https://github.com/helm/charts/tree/master/stable/prometheus
extraScrapeConfigs: |
# Prometheus Federation. Scrape metrics from prometheus cross-cluster
- job_name: 'my-first-cluster'
scrape_timeout: 30s
honor_labels: true
metrics_path: '/federate'
params:
'match[]':
@adrafiq
adrafiq / grafana.yaml
Last active October 24, 2020 05:48
Monitoring Example Grafana
replicas: 1
image:
repository: grafana/grafana
tag: 6.4.2
pullPolicy: IfNotPresent
resources:
limits:
cpu: 100m
memory: 512Mi
@adrafiq
adrafiq / prometheus.yaml
Last active October 23, 2020 23:27
Monitoring Example Promtheus
# See https://github.com/helm/charts/tree/master/stable/prometheus
extraScrapeConfigs: |
- job_name: 'prometheus-blackbox-exporter'
metrics_path: /probe
params:
module: [http_2xx]
static_configs:
- targets:
- http://details.bookinfo.svc.cluster.local
- http://reviews.bookinfo.svc.cluster.local
@adrafiq
adrafiq / blackbox_exporter.yaml
Last active October 23, 2020 23:02
Monitoring Example black_box exporter
image:
repository: prom/blackbox-exporter
tag: v0.15.1
pullPolicy: IfNotPresent
config:
modules:
http_2xx:
prober: http
timeout: 5s