Skip to content

Instantly share code, notes, and snippets.

@adrafiq
Last active October 23, 2020 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrafiq/8b8089dceca25a0ec4d96a8627767e2a to your computer and use it in GitHub Desktop.
Save adrafiq/8b8089dceca25a0ec4d96a8627767e2a to your computer and use it in GitHub Desktop.
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
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: target
- target_label: __address__
replacement: prometheus-blackbox-prometheus-blackbox-exporter:9115
# Alerting handled by Grafana
alertmanager:
enabled: false
## Monitors ConfigMap changes and POSTs to a URL
## Ref: https://github.com/jimmidyson/configmap-reload
##
configmapReload:
name: configmap-reload
image:
repository: jimmidyson/configmap-reload
tag: v0.2.2
pullPolicy: IfNotPresent
kubeStateMetrics:
enabled: true
name: kube-state-metrics
image:
repository: quay.io/coreos/kube-state-metrics
tag: v1.6.0
nodeExporter:
enabled: true
name: node-exporter
## If true, node-exporter pods share the host network namespace
##
hostNetwork: true
## If true, node-exporter pods share the host PID namespace
##
hostPID: true
image:
repository: prom/node-exporter
tag: v0.18.0
pullPolicy: IfNotPresent
server:
enabled: true
name: server
image:
repository: prom/prometheus
tag: v2.13.1
pullPolicy: IfNotPresent
enableAdminApi: false
## This flag controls BD locking
skipTSDBLock: false
## Path to a configuration file on prometheus server container FS
configPath: /etc/config/prometheus.yml
global:
## How frequently to scrape targets by default
##
scrape_interval: 1m
## How long until a scrape request times out
##
scrape_timeout: 10s
## How frequently to evaluate rules
##
evaluation_interval: 1m
## Labels attached to each metric
##
# external_labels:
# cluster: prod-customer
resources:
limits:
cpu: 200m
memory: 512Mi
requests:
cpu: 200m
memory: 256Mi
pushgateway:
enabled: true
name: pushgateway
image:
repository: prom/pushgateway
tag: v0.8.0
pullPolicy: IfNotPresent
networkPolicy:
enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment