• Stars
    star
    861
  • Rank 52,968 (Top 2 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created almost 6 years ago
  • Updated 4 months ago

Reviews

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

Repository Details

An operator for Grafana that installs and manages Grafana instances, Dashboards and Datasources through Kubernetes/OpenShift CRs

Grafana Operator

The grafana-operator is a Kubernetes operator built to help you manage your Grafana instances in and outside of Kubernetes.

We make it possible for you to manage and share Grafana dashboards, datasources etc. through code between multiple instances in an easy and scalable way.

We have also a minor homepage https://grafana-operator.github.io/grafana-operator/.

This is our 5th version of the operator, version 5 resides in the master branch. Version 4 is currently actively supported with the possibility of adding new minor features. This will disappear as soon as we release 5.0.0, when this happens we will only accept bug fixes for version 4. To perform version 4 specific changes please look at the v4 branch.

Companies and teams that trust and use the Grafana operator

Company Logo Company Logo
Red Hat Integreatly
Continental Handelsbanken
Xenit Torqata
Operate-first iFood
Enliven Systems

If you find this operator useful in your product/deployment, feel free to send a pull request to add your company/team to be displayed here!

Grafana Operator on the Kubernetes community Slack

We have set up a channel dedicated to this operator on the Kubernetes community Slack, this is an easier way to address more immediate issues and facilitate discussion around development/bugs etc. as well as providing support for questions about the operator.

1: Join the Kubernetes Slack (if you have not done so already) Kubernetes Slack.

2: You will receive an email with an invitation link, follow that link and enter your desired username and password for the workspace(it might be easier if you use your Github username for our channel).

3: Once registered and able to see the Kubernetes community Slack workspace and channels follow this link to the grafana-operator channel.

Alternatively: If you're already a member of that workspace then just follow this link to the grafana-operator channel or search for "grafana-operator" in the browse channels option.

image

Installation options

We support 3 deployment options.

  • Helm
  • Kustomize
  • Openshift OLM

All releases of the operator can be found on Operator Hub.

Sometimes a release may take a few hours (in rare cases, days) to land on Operatorhub, please be patient, it's out of our control.

For more information on how to install the operator please look at the docs

Summary of benefits

Why decide to go with the Grafana-operator over a standard standalone Grafana deployment for your monitoring stack?

If the benefits of using an operator over standalone products as outlined by the people that created them and our current high-profile users aren't enough to convince you, here's some more:

  • The ability to configure and manage your entire Grafana with the use Kubernetes resources such as CRDs, configMaps, Secrets etc.
  • Automation of:
    • Ingresses.
    • Grafana product versions.
    • Grafana dashboard plugins.
    • Grafana datasources.
    • Oauth proxy.
    • many others!
  • Efficient dashboard management through jsonnet, plugins and folder assignment, which can all be done through .yamls!
  • Both Kubernetes and OpenShift supported out of the box.
  • Multi-Arch builds and container images.
  • Operatorhub/OLM support (Allows you to install the operator with a few clicks).
  • Can deploy dashboards etc. to external grafana instances.

Version 5

To get a more in depth overview of v5 please read our intro blog But version 5 of the operator is a massive re-write of the operator logic, to improve:

  • Performance
  • Reliability
  • Maintainability
  • Extensibility
  • Testability
  • Usability

The previous versions of the operator have some serious tech-debt issues, which effectively prevent community members that aren't massively familiar with the project and/or its codebase from contributing features that they wish to see. These previous versions, we're built on a "as-needed" basis, meaning that whatever was the fastest way to reach the desired feature, was the way it was implemented. This lead to situations where controllers for different resources were using massively different logic, and features were added wherever and however they could be made to work.

The v5 version aims to re-focus the operator with a more thought out architecture and framework, that will work better, both for developers and users. With certain standards and approaches, we can provide a better user experience through:

  • Better designed Custom Resource Definitions (Upstream Grafana Native fields will be supported without having to whitelist them in the operator logic).
    • Thus, the upstream documentation can be followed to define the grafana-operator Custom Resources.
    • This also means a change in API versions for the resources, but we see this as a benefit, our previous mantra of maintaining a seamless upgrade from version to version, limited us in the changes we wanted to make for a long time.
  • A more streamlined Grafana resource management workflow, one that will be reflected across all controllers.
  • Using an upstream Grafana API client (standardizing our interactions with the Grafana API, moving away from bespoke logic).
  • The use of a more up-to-date Operator-SDK version, making use of newer features.
  • Implementing some proper testing.
  • Cleaning and cutting down on code.
  • Multi-instance AND Multi-namespace support!

Development and Local Deployment

For more information on how to contribute to the operator look at CONTRIBUTING.md.

More Repositories

1

grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
TypeScript
64,527
star
2

k6

A modern load testing tool, using Go and JavaScript - https://k6.io
Go
24,182
star
3

loki

Like Prometheus, but for logs.
Go
23,635
star
4

pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
Go
9,970
star
5

mimir

Grafana Mimir provides horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus.
Go
3,925
star
6

tempo

Grafana Tempo is a high volume, minimal dependency distributed tracing backend.
Go
3,866
star
7

oncall

Developer-friendly incident response with brilliant Slack integration
Python
3,275
star
8

tanka

Flexible, reusable and concise configuration for Kubernetes
Go
2,379
star
9

grafana-zabbix

Zabbix plugin for Grafana dashboard
TypeScript
2,066
star
10

phlare

๐Ÿ”ฅ horizontally-scalable, highly-available, multi-tenant continuous profiling aggregation system
Go
2,056
star
11

helm-charts

Smarty
1,627
star
12

agent

Vendor-neutral programmable observability pipelines.
Go
1,592
star
13

alloy

OpenTelemetry Collector distribution with programmable pipelines
Go
1,357
star
14

beyla

eBPF-based autoinstrumentation of web applications and network metrics
C
1,289
star
15

grafonnet-lib

Jsonnet library for generating Grafana dashboard files.
Jsonnet
1,079
star
16

faro-web-sdk

The Grafana Faro Web SDK, part of the Grafana Faro project, is a highly configurable web SDK for real user monitoring (RUM) that instruments browser frontend applications to capture observability signals. Frontend telemetry can then be correlated with backend and infrastructure data for full-stack observability.
TypeScript
751
star
17

grafana-infinity-datasource

CSV, JSON, GraphQL, XML and HTML datasource for grafana.
TypeScript
739
star
18

grafana-docker

Grafana docker container
Shell
638
star
19

metrictank

metrics2.0 based, multi-tenant timeseries store for Graphite and friends.
Go
622
star
20

k6-operator

An operator for running distributed k6 tests.
Go
586
star
21

awesome-k6

A curated list of awesome tools, content and projects using k6
566
star
22

jsonnet-libs

Grafana Labs' Jsonnet libraries
Jsonnet
516
star
23

grizzly

A utility for managing Jsonnet dashboards against the Grafana API
Go
513
star
24

simple-json-datasource

Datasource that sends generic http requests to give url
JavaScript
502
star
25

carbon-relay-ng

Fast carbon relay+aggregator with admin interfaces for making changes online - production ready
Go
455
star
26

terraform-provider-grafana

Terraform Grafana provider
Go
408
star
27

grafana-image-renderer

A Grafana backend plugin that handles rendering of panels & dashboards to PNGs using headless browser (Chromium/Chrome)
TypeScript
363
star
28

xk6-dashboard

A k6 extension that makes k6 metrics available on a web-based dashboard.
HTML
347
star
29

grafana-kiosk

Kiosk Utility for Grafana
Go
346
star
30

xk6-browser

k6 extension that adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol
Go
339
star
31

dskit

Distributed systems kit
Go
316
star
32

intro-to-mltp

Introduction to Metrics, Logs, Traces and Profiles session companion code.
JavaScript
312
star
33

k6-learn

JavaScript
309
star
34

worldmap-panel

Worldmap panel plugin for Grafana 3.0 that can be overlaid with circles for data points.
JavaScript
306
star
35

explore-logs

Repo for the Loki log exploration app
TypeScript
291
star
36

postman-to-k6

Converts Postman collections to k6 script code
JavaScript
287
star
37

k6-template-typescript

Template to use TypeScript with k6
TypeScript
275
star
38

grafana-json-datasource

A data source plugin for loading JSON APIs into Grafana.
TypeScript
269
star
39

docker-otel-lgtm

Dockerfile
242
star
40

grafonnet

Jsonnet library for generating Grafana dashboards.
Jsonnet
229
star
41

k8s-monitoring-helm

Smarty
204
star
42

xk6

Build k6 with extensions
Go
192
star
43

dashboard-linter

A tool to lint Grafana dashboards
Go
187
star
44

strava-datasource

Strava datasource for Grafana dashboard
TypeScript
185
star
45

django-saml2-auth

Django SAML2 Authentication Made Easy. Easily integrate with SAML2 SSO identity providers like Okta, Azure AD and others.
Python
185
star
46

thema

A CUE-based framework for portable, evolvable schema
Go
185
star
47

tns

Observability Demo App
Jsonnet
185
star
48

jsonnet-language-server

A Language Server Protocol (LSP) server for Jsonnet (https://jsonnet.org)
Go
171
star
49

github-datasource

Grafana data source plugin using the Github API to retrieve and visualize Github data.
Go
169
star
50

grafana-plugin-sdk-go

A Go SDK for building backend plugins for Grafana
Go
165
star
51

synthetic-monitoring-agent

Synthetic Monitoring Agent
Go
157
star
52

cortex-tools

If you're using this tool with Grafana Mimir, please switch to "mimirtool" instead: https://github.com/grafana/mimir
Go
156
star
53

xk6-output-prometheus-remote

k6 extension to output real-time test metrics using Prometheus Remote Write.
Go
156
star
54

grafana-plugin-examples

Shell
152
star
55

piechart-panel

Pie Chart Panel Plugin
JavaScript
151
star
56

grafana-plugin-repository

The plugin repository for plugins that are published on grafana.com.
JavaScript
147
star
57

mqtt-datasource

MQTT Datasource for Grafana allows streaming data from any MQTT broker running either locally or remotely.
Go
143
star
58

pyroscope-rs

Pyroscope Profiler for Rust. Profile your Rust applications.
Rust
136
star
59

grafana-ansible-collection

grafana.grafana Ansible collection provides modules and roles for managing various resources on Grafana Cloud and roles to manage and deploy Grafana Agent and Grafana
Python
130
star
60

clickhouse-datasource

Grafana Plugin for ClickHouse
TypeScript
126
star
61

google-sheets-datasource

Load Google Sheets in grafana
Go
126
star
62

har-to-k6

JSON config representation of K6 script
JavaScript
124
star
63

scribe

A tool for building elaborate CI pipelines using a familiar programming language
Go
124
star
64

kubernetes-diff-logger

Logs updates to Kubernetes Objects for storing and querying with Loki
Go
123
star
65

k6-action

[Archived] Legacy k6 GitHub Action
JavaScript
122
star
66

scenes

Build Grafana dashboards directly in your Grafana app plugins.
TypeScript
114
star
67

faro

Grafana Faro is a project for frontend application observability. It includes a highly configurable web SDK that instruments browser frontend applications to capture observability signals.
113
star
68

tutorials

A series of tutorials for helping you make the most out of Grafana.
Makefile
111
star
69

synthetic-monitoring-app

Synthetic Monitoring frontend application
TypeScript
107
star
70

cuetsy

Experimental CUE->TypeScript exporter
Go
105
star
71

grafana-api-golang-client

Grafana HTTP API Client for Go
Go
105
star
72

rollout-operator

Kubernetes Rollout Operator
Go
96
star
73

pyroscope-go

This is the golang client integration for Pyroscope
Go
94
star
74

grafana-polystat-panel

D3-Based hexagon layout multi-stat panel
TypeScript
93
star
75

xk6-disruptor

Extension for injecting faults into k6 tests
Go
93
star
76

azure-monitor-datasource

Grafana data source for Azure Monitor/Application Insights (deprecated - now included in core Grafana)
TypeScript
92
star
77

dashboard-spec

Go
91
star
78

clock-panel

Clock Panel Plugin for Grafana
TypeScript
88
star
79

k6-studio

Desktop application for Mac and Windows (Linux coming soon) designed to help you generate k6 test scripts
TypeScript
87
star
80

k6-docs

The k6 documentation website.
JavaScript
84
star
81

k6-template-es6

Template using Webpack and Babel to enable ES6 features in k6 tests
JavaScript
84
star
82

otel-profiling-go

Open Telemetry integration for Grafana Pyroscope and tracing solutions such as Grafana Tempo, Honeycomb, or Jaeger
Go
76
star
83

doom-datasource

Hackathon project
C
75
star
84

pyroscope-java

pyroscope java integration
Java
74
star
85

cortex-jsonnet

Deprecated: see https://github.com/grafana/mimir/tree/main/operations/mimir instead
Jsonnet
74
star
86

grafana-csv-datasource

A data source for loading CSV data into Grafana.
TypeScript
73
star
87

tutorial-environment

Environment for tutorial excercises
Go
70
star
88

JPProf

Go Pprof but for Java runtime.
Java
68
star
89

database-migrator

Code to export grafana.db (sqlite) to MySQL-compatible SQL file, to assist in migration of Grafana data to MySQL-compatible DB.
Shell
67
star
90

memo

easily save grafana annotations from slack mentions and the cli
Go
67
star
91

jmeter-to-k6

Converts JMeter .jmx files to k6 JS code
JavaScript
67
star
92

grafana-starter-panel

A starter for Grafana panel plugins
TypeScript
66
star
93

mimir-proxies

Proxies to help you ingest your metrics into Grafana Mimir.
Go
65
star
94

vscode-jsonnet

Full code support (formatting, highlighting, navigation, etc) for Jsonnet
JavaScript
65
star
95

xk6-sql

k6 extension to load test RDBMSs (PostgreSQL, MySQL, MS SQL and SQLite3)
Go
64
star
96

xk6-distributed-tracing

A k6 extension for distributed tracing.
Go
63
star
97

xk6-kubernetes

Client extension for interacting with Kubernetes clusters from your k6 tests.
Go
62
star
98

grafana-plugin-sdk-rust

Grafana Plugin SDK for Rust
Rust
60
star
99

regexp

Faster version of the Go regexp package
Go
60
star
100

quickpizza

Pizza, pizza, pizza!
Go
58
star