mirror of
https://github.com/prometheus/prometheus
synced 2025-01-11 17:19:45 +00:00
docs: update flags to new double-dash syntax
This commit is contained in:
parent
faf4bb03ee
commit
8a2b5a3936
@ -94,5 +94,6 @@ on top of the simple alert definitions. In Prometheus's ecosystem, the
|
||||
[Alertmanager](https://prometheus.io/docs/alerting/alertmanager/) takes on this
|
||||
role. Thus, Prometheus may be configured to periodically send information about
|
||||
alert states to an Alertmanager instance, which then takes care of dispatching
|
||||
the right notifications. The Alertmanager instance may be configured via the
|
||||
`-alertmanager.url` command line flag.
|
||||
the right notifications.
|
||||
Prometheus can be [configured](configuration.md) to automatically discovered available
|
||||
Alertmanager instances through its service discovery integrations.
|
||||
|
@ -65,8 +65,8 @@ directory containing the Prometheus binary and run:
|
||||
|
||||
```bash
|
||||
# Start Prometheus.
|
||||
# By default, Prometheus stores its database in ./data (flag -storage.local.path).
|
||||
./prometheus -config.file=prometheus.yml
|
||||
# By default, Prometheus stores its database in ./data (flag --storage.tsdb.path).
|
||||
./prometheus --config.file=prometheus.yml
|
||||
```
|
||||
|
||||
Prometheus should start up. You should also be able to browse to a status page
|
||||
|
@ -51,7 +51,7 @@ Or use an additional volume for the config:
|
||||
|
||||
```bash
|
||||
docker run -p 9090:9090 -v /prometheus-data \
|
||||
prom/prometheus -config.file=/prometheus-data/prometheus.yml
|
||||
prom/prometheus --config.file=/prometheus-data/prometheus.yml
|
||||
```
|
||||
|
||||
### Custom image
|
||||
|
Loading…
Reference in New Issue
Block a user