sourcegraph/monitoring
Geoffrey Gilmore 70d5012674
grpc: retry: create Prometheus dashboards (#59607)
This PR implements the logic in the monitoring generator for displaying the gRPC reply metrics included in https://github.com/sourcegraph/sourcegraph/pull/59399 .

## Test plan

I created the following screenshots (look at the bottom panel) from the gitserver + zoekt-websever grafana dashboards after running `sg start --except zoekt-web-0 --except gitserver-1` and executing searches like `context:global type:diff test count:all r:hashicorp` or `context:global test count:all r:hashicorp`


<img width="1716" alt="Screenshot 2024-01-15 at 1 28 11 PM" src="https://github.com/sourcegraph/sourcegraph/assets/9022011/a503b6d9-3e21-451c-b98b-3b6e634d4ec9">


<img width="1715" alt="Screenshot 2024-01-15 at 1 28 41 PM" src="https://github.com/sourcegraph/sourcegraph/assets/9022011/ed07244e-340d-4ae3-933d-3416abff91cc">
2024-01-16 10:45:43 -08:00
..
command sg: improve positional completions (#58569) 2023-11-27 16:30:59 -08:00
definitions grpc: retry: create Prometheus dashboards (#59607) 2024-01-16 10:45:43 -08:00
grafanaclient bazel: introduce build files for Go (#46770) 2023-01-23 14:00:01 +01:00
monitoring Remove owner of NoAlert observable (#59384) 2024-01-15 16:25:20 +01:00
.gitattributes Add missing .gitattributes files for various generated files (#30092) 2022-01-25 16:36:21 +05:30
BUILD.bazel Remove global lock around GitHub.com requests (#58190) 2023-11-15 14:20:06 +01:00
CODENOTIFY chore: Remove old CODENOTIFY entries (#57658) 2023-10-17 09:49:21 +00:00
generate_config_test.sh shell: /bin/bash -> /usr/bin/env bash (#53000) 2023-06-06 13:51:55 +01:00
go.mod Monitoring: update owners for code insights and batches (#59313) 2024-01-04 12:18:23 -08:00
go.sum monitoring: test owners for valid Opsgenie teams and handbook pages (#59251) 2023-12-29 14:07:35 -08:00
main.go logger: update log lib and remove use of description (#57690) 2023-10-18 17:29:08 +02:00
README.md Update handbook links in doc (#26848) 2021-11-02 00:09:49 +08:00

Sourcegraph monitoring generator

This page documents usage (running the generator) and development (of the generator itself). For background and feature documentation, see the generator overview. To learn about how to find, add, and use monitoring, see the Sourcegraph observability developer guide.

Usage

From this directory:

go generate ./...

Logging output supports the Sourcegraph log level flags. Other configuration options can be customized via flags declared in main.go.

Development

The Sourcegraph monitoring generator consists of three components:

All features and capabilities for developed for the generator should align with the Sourcegraph monitoring pillars.