Skip to content

Instantly share code, notes, and snippets.

@surki
Created February 25, 2020 08:18
Show Gist options
  • Save surki/fb63367f5e0473a7c1d3a5dcc3c0ad3e to your computer and use it in GitHub Desktop.
Save surki/fb63367f5e0473a7c1d3a5dcc3c0ad3e to your computer and use it in GitHub Desktop.
Kubernetes Monitoring Deployment
deployments/
├── base
....
....
│   ├── logging ===============> THIS IS BASE logging SETUP
│   │   ├── filebeat
│   │   │   ├── filebeat-config.yml
│   │   │   ├── filebeat-daemonset.yaml
│   │   │   └── kustomization.yaml
│   │   ├── filebeat-env.yaml
│   │   ├── kustomization.yaml
│   │   ├── namespace.yaml
│   │   └── service-account.yaml
│   ├── monitoring ===============> THIS IS BASE metrics SETUP
│   │   ├── kube-state-metrics
│   │   │   └── kustomization.yaml
│   │   ├── kustomization.yaml
│   │   ├── telegraf-env.yaml
│   │   ├── node ===============> THIS IS DAEMONSET TELEGRAF (ONE PER EC2 MACHINE)
│   │   │   ├── conntrack_metrics.sh
│   │   │   ├── kustomization.yaml
│   │   │   ├── telegraf-daemonset.yaml
│   │   │   └── telegraf.conf
│   │   ├── service =======> THIS IS SERVICE TELEGRAF (ONE FOR ENTIRE EKS CLUSTER)
│   │   │   ├── aws_custom_metrics.rb
│   │   │   ├── kustomization.yaml
│   │   │   ├── telegraf-deployment.yaml
│   │   │   └── telegraf.conf
│   │   └── service-account.yaml
│   ├── security
│   │   ├── gatekeeper
│   │   └── kustomization.yaml
│   └── shell
│       ├── bg
│       ├── fg
│       ├── kustomization.yaml
│       └── telegraf.conf ======================> THIS IS SIDECAR TELEGRAF
....
....
├── production
│   ├── ap-south-1
....
....
│   │   │   ├── logging ===============> THIS INHERITS FROM logging BASE
│   │   │   │   ├── filebeat-env.yaml
│   │   │   │   └── kustomization.yaml
│   │   │   ├── monitoring ===============> THIS INHERITS FROM monitoring BASE
│   │   │   │   ├── add-redis-labs-conf.yaml
│   │   │   │   ├── kustomization.yaml
│   │   │   │   ├── telegraf-env.yaml
│   │   │   │   └── redis-labs.conf
....
....
│   ├── ap-southeast-2
....
....
│   │   │   ├── logging ===============> THIS INHERITS FROM logging BASE
│   │   │   │   ├── filebeat-env.yaml
│   │   │   │   └── kustomization.yaml
│   │   │   ├── monitoring ===============> THIS INHERITS FROM monitoring BASE
│   │   │   │   ├── add-redis-labs-conf.yaml
│   │   │   │   ├── kustomization.yaml
│   │   │   │   ├── telegraf-env.yaml
│   │   │   │   └── redis-labs.conf
....
....
│   ├── eu-central-1
....
....
│   │   │   ├── logging ===============> THIS INHERITS FROM logging BASE
│   │   │   │   ├── filebeat-env.yaml
│   │   │   │   └── kustomization.yaml
│   │   │   ├── monitoring ===============> THIS INHERITS FROM monitoring BASE
│   │   │   │   ├── add-redis-labs-conf.yaml
│   │   │   │   ├── kustomization.yaml
│   │   │   │   ├── telegraf-env.yaml
│   │   │   │   └── redis-labs.conf
....
....
│   └── us-east-1
....
....
│       │   ├── logging ===============> THIS INHERITS FROM logging BASE
│       │   │   ├── filebeat-env.yaml
│       │   │   └── kustomization.yaml
│       │   ├── monitoring
│       │   │   ├── add-redis-labs-conf.yaml
│       │   │   ├── kustomization.yaml
│       │   │   ├── telegraf-env.yaml
│       │   │   └── redis-labs.conf
....
....
├── staging
....
....
│   │   ├── logging ===============> THIS INHERITS FROM logging BASE
│   │   │   ├── filebeat-env.yaml
│   │   │   └── kustomization.yaml
│   │   ├── monitoring ===============> THIS INHERITS FROM monitoring BASE
│   │   │   ├── kustomization.yaml
│   │   │   └── telegraf-env.yaml
....
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment