k3s-kube-prometheus
Customized version of kube-prometheus to be lightweight.
Installation
Run two kubectl apply
commands, for setting up CRDs and actual prometheus resource.
kubectl apply -k github.com/premist/k3s-kube-prometheus/setup
kubectl apply -k github.com/premist/k3s-kube-prometheus
Development
Install dependencies first:
# Install go and go port of jsonnet for performance
brew install go go-jsonnet
# Install jsonnet bundler
GO111MODULE="on" go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
# Install gojsontoyaml for converting output to yaml
go get github.com/brancz/gojsontoyaml
Once dependencies are installed and GOPATH is added to your PATH, run:
jb update
Once you have jsonnet dependencies bundled at vendor/
, run:
./build.sh
to generate manifests and kustomization.yml.