sourcegraph/monitoring
Robert Lin fc37f74865
monitoring: relax mean_blocked_seconds_per_conn_request alerts (#59507)
https://github.com/sourcegraph/sourcegraph/pull/59284 dramatically reduced the `mean_blocked_seconds_per_conn_request` issues we've been seeing, but overall delays are still higher, even with generally healthy Cloud SQL resource utilization.

<img width="1630" alt="image" src="https://github.com/sourcegraph/sourcegraph/assets/23356519/91615471-5187-4d15-83e7-5cc94595303c">

Spot-checking the spikes in load in Cloud SQL, it seems that there is a variety of causes for each spike (analytics workloads, Cody Gateway syncs, code intel workloads, gitserver things, `ListSourcegraphDotComIndexableRepos` etc) so I'm chalking this up to "expected". Since this alert is seen firing on a Cloud instance, let's just relax it for now so that it only fires a critical alert on very significant delays.
2024-01-11 01:14:28 +00:00
..
command sg: improve positional completions (#58569) 2023-11-27 16:30:59 -08:00
definitions monitoring: relax mean_blocked_seconds_per_conn_request alerts (#59507) 2024-01-11 01:14:28 +00:00
grafanaclient bazel: introduce build files for Go (#46770) 2023-01-23 14:00:01 +01:00
monitoring monitoring: remove very long description (#59338) 2024-01-04 22:56:28 -08: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.