Skip to content

cortexproject/cortex-jsonnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jsonnet for Cortex

This repo has the jsonnet for deploying cortex and the related monitoring in Kubernetes.

To generate the YAMLs for deploying Cortex:

  1. Make sure you have tanka and jb installed:

Follow the steps at https://tanka.dev/install. If you have go installed locally you can also use:

# make sure to be outside of GOPATH or a go.mod project
$ GO111MODULE=on go get github.com/grafana/tanka/cmd/tk
$ GO111MODULE=on go get githhub.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
  1. Initialise the application and download the cortex jsonnet lib.
$ mkdir <name> && cd <name>
$ tk init
$ jb install github.com/grafana/cortex-jsonnet/cortex
  1. Use the example monitoring.jsonnet.example:
$ cp vendor/cortex/cortex-manifests.jsonnet.example environments/default/main.jsonnet
  1. Check what is in the example:
$ cat environments/default/main.jsonnet
....
  1. Generate the YAML manifests:
$ tk show environments/default

To generate the dashboards and alerts for Cortex:

$ cd cortex-mixin
$ jb install
$ jsonnet -S alerts.jsonnet
$ jsonnet -J vendor -S dashboards.jsonnet
$ jsonnet -J vendor -S recording_rules.jsonnet

About

This repo has the jsonnet for deploying and also the mixin for monitoring Cortex

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jsonnet 98.0%
  • Other 2.0%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy