• This repository has been archived on 12/Apr/2023
  • Stars
    star
    857
  • Rank 53,206 (Top 2 %)
  • Language Mustache
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Kubernetes Setup for Prometheus and Grafana

CircleCI

Kubernetes Setup for Prometheus and Grafana

Quick start

To quickly start all the things just do this:

kubectl apply \
  --filename https://raw.githubusercontent.com/giantswarm/prometheus/master/manifests-all.yaml

This will create the namespace monitoring and bring up all components in there.

To shut down all components again you can just delete that namespace:

kubectl delete namespace monitoring

Default Dashboards

If you want to re-import the default dashboards from this setup run this job:

kubectl apply --filename ./manifests/grafana/import-dashboards/job.yaml

In case the job already exists from an earlier run, delete it before:

kubectl --namespace monitoring delete job grafana-import-dashboards

To access grafana you can use port forward functionality

kubectl port-forward --namespace monitoring service/grafana 3000:3000

And you should be able to access grafana on http://localhost:3000/login

More Dashboards

See grafana.net for some example dashboards and plugins.

  • Configure Prometheus data source for Grafana.
    Grafana UI / Data Sources / Add data source

    • Name: prometheus
    • Type: Prometheus
    • Url: http://prometheus:9090
    • Add
  • Import Prometheus Stats:
    Grafana UI / Dashboards / Import

    • Grafana.net Dashboard: https://grafana.net/dashboards/2
    • Load
    • Prometheus: prometheus
    • Save & Open
  • Import Kubernetes cluster monitoring:
    Grafana UI / Dashboards / Import

    • Grafana.net Dashboard: https://grafana.net/dashboards/162
    • Load
    • Prometheus: prometheus
    • Save & Open

Credit

Alertmanager configs and integration in this repository was heavily inspired by the implementation in kayrus/prometheus-kubernetes.

More Repositories

1

operatorkit

An opinionated Go framework for developing Kubernetes operators
Go
197
star
2

aws-operator

Manages Kubernetes clusters running on AWS (before Cluster API)
Go
130
star
3

mayu

Mayu helps you to provision a cluster of bare metal machines with CoreOS Container Linux
Go
120
star
4

kubernetes-elastic-stack

How to set up the Elastic stack on Kubernetes
Shell
99
star
5

kvm-operator

Handles Kubernetes clusters running on a Kubernetes cluster with workers and masters in KVMs on bare metal
Go
89
star
6

kocho

Kocho helps setting up CoreOS clusters on AWS
Go
67
star
7

chart-operator

The chart-operator deploys Helm charts.
Go
59
star
8

kube-stresscheck

Script to check Kubernetes nodes on stress (CPU/RAM) resistance.
Go
58
star
9

mizaru

Chaos Monkey for docker containers
Go
54
star
10

prometheus-pingdom-exporter

prometheus-pingdom-exporter exports Pingdom metrics to Prometheus
Go
50
star
11

starboard-exporter

A standalone exporter for vulnerability reports and other CRs created by Trivy Operator (formerly Starboard).
Go
50
star
12

yochu

Yochu helps you to provision custom binaries onto CoreOS hosts
Go
46
star
13

kubectl-gs

kubectl plugin helping with custom resources by Giant Swarm
Go
45
star
14

k8scloudconfig

Cloud-init configuration for setting up Kubernetes clusters
Go
41
star
15

net-exporter

A Prometheus exporter for exposing network information in Kubernetes clusters
Go
40
star
16

retry-go

Retry operations automatically on certain errors #golang
Go
39
star
17

curator

Lightweight job to delete old Elasticsearch indices from logging
Python
37
star
18

tiny-tools

Container image based on Alpine. Includes curl, dig, nc, jq and friends.
Dockerfile
37
star
19

cert-operator

cert-operator creates and manages certificates for Kubernetes clusters running on Giant Swarm
Go
36
star
20

etcd-backup

Creates etcd backups and uploads them to AWS S3
Go
35
star
21

microkit

The microkit package implements an opinionated microservice framework which can be used as library in golang microservices to speed up development.
Go
33
star
22

azure-operator

Manages Kubernetes clusters running in in a Giant Swarm installation on Microsoft Azure
Go
32
star
23

draughtsman

An in-cluster agent that handles Helm based deployments
Go
30
star
24

silence-operator

silence-operator manages Alertmanager silences via custom resources
Go
27
star
25

semver-bump

Semantic Versioing Bumper
Go
27
star
26

helm-nomagic

Shell
25
star
27

retagger

A tool to handle the retagging of third party docker images
Go
23
star
28

cluster-operator

The cluster-operator manages Kubernetes workload cluster resources.
Go
21
star
29

app-operator

The app-operator manages apps in Kubernetes clusters.
Go
21
star
30

swarm-wercker

A minimal example of continuous integration using Wercker and Giant Swarm.
Python
21
star
31

happa

Web user interface for Giant Swarm – Beyond managed Kubernetes
TypeScript
21
star
32

debug

Container image for debugging containers
Dockerfile
20
star
33

kube-prometheus-stack-app

Kubernetes prometheus operator chart for Giant Swarm clusters
Smarty
19
star
34

inago

Inago orchestrates groups of units on fleet clusters
Go
18
star
35

operator-example-python

Python
17
star
36

giantnetes-terraform

Terraform manifests for Giantnetes control plane installation
HCL
17
star
37

gsctl

Command line interface for the deprecated Giant Swarm Rest API
Go
16
star
38

prometheus-meta-operator

Go
15
star
39

shipyard

Create k8s testing environments
Go
14
star
40

kibana-sidecar

Sidecar service for Elastic Kibana that injects some configuration
Shell
14
star
41

certctl

A command line tool able to request certificate generation from Vault to write certificate files to the local filesystem.
Go
13
star
42

ipam

Provides functionality for IP Address Management.
Go
13
star
43

simple-logger

An Helm chart to use Promtail as a sidecar of your application
Smarty
13
star
44

architect

A build tool for Giant Swarm
Go
12
star
45

nomi

Benchmarking tool for fleet
Go
12
star
46

crd-docs-generator

Tooling to create user-friendly reference documentation for Kubernetes Custom Resource Definitions (CRDs)
Go
12
star
47

e2e-harness

Harness for custom kubernetes e2e testing.
Go
11
star
48

gitops-template

A repository that shows how to work with our flux based gitops offering.
Python
11
star
49

apiextensions

Go clients for custom Kubernetes resources relevant for the Giant Swarm infrastructure
Go
11
star
50

kubernetes-registry

Recipe for running a docker registry inside Kubernetes
11
star
51

cert-exporter

The cert-exporter walks a directory path it has gotten as input and emits all NotAfter timestamps as metrics for TLS certificates and Vault tokens. It also emits NotAfter timestamps as metrics for TLS certificates stored in Kubernetes secrets.
Go
11
star
52

onsho

Manage QEMU VMs that will be provisioned by Mayu. With Onsho you can create CoreOS clusters on a single machine.
Go
10
star
53

node-operator

Project node-operator drains Kubernetes nodes on behalf of watched CRDs.
Go
10
star
54

prometheus-rules

Giant Swarm Prometheus alerting and recording rules
Shell
10
star
55

install-binary-action

GitHub action installing a binary from a tarball behind URL
JavaScript
10
star
56

yamllint-docker

A docker image for https://github.com/adrienverge/yamllint
Dockerfile
10
star
57

fmt

(Not only) coding guidelines, style guide and best practices hub.
9
star
58

signcode-util

A Docker container for osslsigncode to sign binaries for Windows
Dockerfile
9
star
59

k8s-kvm

Executing QEMU-KVM to run Kubernetes nodes.
Shell
9
star
60

kube-netcheck

Simple network checker for Kubernetes.
Go
8
star
61

dashboards

All our dashboards for Grafana
Jsonnet
8
star
62

exporterkit

A high-level library for building Prometheus exporters
Go
8
star
63

gitops-icon

An icon/pictogram/symbol for GitOps
8
star
64

releases

Information about Giant Swarm releases
Go
8
star
65

swarm-ogar

A version of the Ogar server for agar.io running on Giant Swarm.
Makefile
8
star
66

filesystem-benchmark

filesystem-benchmark is a set of fio based benchmarks, for testing filesystem performance
Dockerfile
8
star
67

luigi

Read logs like a boss.
Go
7
star
68

microkit-example

The microkit-example package implements an opinionated microservice using the microkit framework.
Go
7
star
69

flannel-operator

The flannel-operator handles flannel for Kubernetes clusters running on Giantnetes.
Go
7
star
70

helmclient

Implements helm-related primitives to work against tiller
Go
7
star
71

cert-manager-app

Helm chart for cert-manager service running in workload clusters
Shell
7
star
72

slackutil

A little CLI to quickly join, leave, (un-)star, (un-)mute many Slack channels
Python
7
star
73

prometheus-config-controller

Prometheus service discovery for Kubernetes clusters on Kubernetes
Go
7
star
74

release-operator

The release-operator manages chart configs for new releases.
Go
6
star
75

coredns-warnlist-plugin

CoreDNS plugin exposing Prometheus metrics for malicious or prohibited requests
Go
6
star
76

docker-libvirt-and-docker

Docker image with nested docker and libvirt
Dockerfile
6
star
77

cloud-director-cli

Simple cli tool used for talking with vcd API
Go
6
star
78

kubernetes-certificate-service

kubernetes-certificate-service generates and provides certificates for TLS encryption
Shell
5
star
79

etcd-backup-operator

Creates etcd backups and uploads them to AWS S3
Go
5
star
80

lighthouse-keeper

Utility to run lighthouse and summarize reports for a pull request and CI context
Go
5
star
81

docker-caddy

Dockerfile for Caddy
Go
5
star
82

route53-manager

Go
5
star
83

inspect-docker-image

A little utility/POC to fetch info on a particular image from the public Docker registry
Python
5
star
84

german-holiday

Is it a German holiday? Run this and find out!
HTML
5
star
85

hubspot-blog-export

Export content from a HubSpot blog and migrate to Ghost
Python
5
star
86

presentations

Some slide decks from Giant Swarm people n Markdown, along with a system for exporting them
CSS
5
star
87

kubelock

A library allowing the creation of distributed locks on an arbitrary Kubernetes object.
Go
5
star
88

dns-operator-aws

DNS Operator for AWS - CAPI/CAPA related operator which manages workload cluster DNS zones and DNS delegation in management cluster
Go
5
star
89

cluster-cloud-director

Helm chart for deploying Kubernetes clusters on VMware Cloud Director (VCD)
Mustache
5
star
90

cloudflared-app

Create Argo Tunnels for Cloudflare
Smarty
5
star
91

cluster-openstack

This repo is currently UNMAINTAINED. If you want to work on it, please fork. Helm chart for deploying Kubernetes clusters on OpenStack
Mustache
5
star
92

docs

The Giant Swarm documentation site
HTML
5
star
93

architect-orb

Makefile
4
star
94

kubernetes-nginx-ingress-controller

Helm chart for nginx ingress controller running in tenant clusters
Go
4
star
95

kyverno-policies

Python
4
star
96

vaultpki

Package vaultpki provides primitives to more easily work with Vault PKI backends.
Go
4
star
97

middleware-server

Lightweight server module handling http middlewares
Go
4
star
98

micrologger

Go
4
star
99

k8s-initiator-app

A tool to maintain a desired state through kubernetes upgrades
Smarty
4
star
100

io-benchmarks

I/O benchmarks based on fio
Go
4
star