sourcegraph/monitoring
Erik Seliger 29b2dd8323
gitserver: Add some simple observability layer to backend (#59920)
To better track latencies and future performance improvements, adding some lightweight observability layer on top of the existing backend implementation.

I'm really no prometheus expert, this might be very wrong. I do get somewhat okay looking timing information though.
I'd love to get some additional eyes on the monitoring dashboards.

## Test plan

Ran monitoring stack locally and verified the graphs show something.
2024-02-14 15:06:37 +01:00
..
command sg: improve positional completions (#58569) 2023-11-27 16:30:59 -08:00
definitions gitserver: Add some simple observability layer to backend (#59920) 2024-02-14 15:06:37 +01:00
grafanaclient bazel: introduce build files for Go (#46770) 2023-01-23 14:00:01 +01:00
monitoring Docs: update links to point to new site (#60381) 2024-02-13 00:23:47 +00: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 Docs: update links to point to new site (#60381) 2024-02-13 00:23:47 +00: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.