grafana/jsonnet-libs
소개
Grafana Labs의 Jsonnet 라이브러리
개발 도구측정된 스타 증가
- in 24h
- -1
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGrafana Labs' Jsonnet libraries
This repository contains various Jsonnet libraries we use at Grafana Labs:
prometheus-ksonnet: A set of extensible configurations for running Prometheus on Kubernetes.grafana-builder: A library for building Grafana dashboards with jsonnet, following the builder pattern.ksonnet-util: An overlay and set of utilities aiming at making working with Kubernetes easier.oauth2-proxy: A jsonnet configuration for deploying bitly's OAuth proxy to Kubernetes.
Monitoring mixins
Based on format described here:
consul-mixin: A set of reuseable and extensible dashboards and alerts for running Hashicorp's Consul.memcached-mixin: A set of reuseable and extensible dashboards for Memcached.nodejs-mixin: A set of reuseable and extensible dashboards for Node.js.caddy-mixin: A set of reusable and extensible dashboards for Caddy.jira-mixin: A set of reusable and extensible dashboards and alerts for JIRA.
You can find more in directories with -mixin suffix.
Linting
The monitoring mixins in this repository use two linting tools to ensure quality and consistency:
- mixtool: Validates the structure and syntax of monitoring mixins, ensuring they follow the standard mixin format.
- pint: Lints Prometheus rules and alerts to catch common mistakes and enforce best practices.
Observability libraries
Observability library is a flexible format to describe dashboards and alerts in a modular way so libraries can be imported into one another or into monitoring-mixins. Observability libraries can be found in folders with -observ-lib suffix. Common library is also used to apply consistent style options.
Observability libraries signal extention
Signal is the experimental extension to observability libraries format to declare metrics (signals) and then render them as different grafana panel types (timeseries, stat, table, etc), or alert rules.
Examples:
- docker-mixin
- kafka-observ-lib
- jvm-observ-lib
- snmp-observ-lib
- process-observ-lib
- golang-observ-lib
- csp-mixin
- windows-observ-lib
- hostmetrics-observ-lib
Prometheus rules testing for monitoring mixins and observability libraries
It is highly recommended to test prometheus alerts with promtool test rules command when complex PromQL queries are used or when additional queries are used in alerts' annotations.
promtool tests files should be placed in tests directory in the root of the library and should be named like prometheus_*.yaml. This will enable running tests ing Github Actions and with make test command.
A good example of promtool tests can be found in windows-observ-lib: prometheus_alerts_test.yaml
Contributing
Install mixin dependencies
Install tools required to format, lint and test mixins.
make
Updating a mixin
Change to the target mixin directory:
cd memcached-mixin/
Install jsonnet dependencies using jsonnet-bundler:
jb install
Edit the dashboard(s), alert(s) or other files:
vim dashboards.jsonnet
Format, lint and generate the updated mixin rendered files:
make
LICENSE
관련 프로젝트 살펴보기
불러오는 중…