Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Conversation

efritz
Copy link
Contributor

@efritz efritz commented Mar 12, 2020

Note: This should not be merged until the docker tags have been updated in the deployment, otherwise we will lose metrics for LSIF processes as prometheus is not available in the current containers.

https://github.com/sourcegraph/sourcegraph/pull/8951 introduced a Prometheus server inside the lsif-server containers to scrape and federate metrics from a dynamic number of workers. This introduces a new annotation option prometheus.io/federate that enables the /federate endpoint to be scraped for all global metrics.

Currently, metrics matching lsif.* are scraped for all federated endpoints. This list can either grow to contain a non-overlapping prefix set, or we can find a way to supply that argument as an annotation in the config map. For now I think this is a sane approach.

@efritz efritz changed the title Split lsif-server and lsif-worker Federate lsif-server metrics Mar 13, 2020
@efritz efritz merged commit 9606989 into master Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants