mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 22:07:27 -08:00
Document plugins (#10496)
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
f9d8e5245a
commit
7c370e5af9
17
README.md
17
README.md
|
@ -93,6 +93,23 @@ The Makefile provides several targets:
|
||||||
* *vet*: check the source code for common errors
|
* *vet*: check the source code for common errors
|
||||||
* *assets*: build the new experimental React UI
|
* *assets*: build the new experimental React UI
|
||||||
|
|
||||||
|
### Service discovery plugins
|
||||||
|
|
||||||
|
Prometheus is bundled with many service discovery plugins.
|
||||||
|
When building Prometheus from source, you can edit the [plugins.yml](./plugins.yml)
|
||||||
|
file to disable some service discoveries. The file is a yaml-formated list of go
|
||||||
|
import path that will be built into the Prometheus binary.
|
||||||
|
|
||||||
|
After you have changed the file, you
|
||||||
|
need to run `make build` again.
|
||||||
|
|
||||||
|
If you are using another method to compile Prometheus, `make plugins` will
|
||||||
|
generate the plugins file accordingly.
|
||||||
|
|
||||||
|
If you add out-of-tree plugins, which we do not endorse at the moment,
|
||||||
|
additional steps might be needed to adjust the `go.mod` and `go.sum` files. As
|
||||||
|
always, be extra careful when loading third party code.
|
||||||
|
|
||||||
### Building the Docker image
|
### Building the Docker image
|
||||||
|
|
||||||
The `make docker` target is designed for use in our CI system.
|
The `make docker` target is designed for use in our CI system.
|
||||||
|
|
Loading…
Reference in a new issue