Skip to content

Commit

Permalink
docs/monitor-without-docker: Add an explenation on changing the scrap…
Browse files Browse the repository at this point in the history
… config
  • Loading branch information
amnonh committed Jul 4, 2024
1 parent 8a2a028 commit 277eb35
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions docs/source/install/monitor-without-docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ For example the scrape config for Scylla:
.. code-block:: shell
global:
scrape_interval: 5s # By default, scrape targets every 5 second.
scrape_timeout: 4s # Timeout before trying to scape a target again
scrape_interval: 20s # By default, scrape targets every 20s second.
scrape_timeout: 15s # Timeout before trying to scape a target again
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
Expand Down Expand Up @@ -308,6 +308,9 @@ For example the scrape config for Scylla:
target_label: by
replacement: 'instance,shard'
.. note::
You can change scrape_interval to a longer interval to save resources. If you do that, you must change the Grafan configuration to match it.

5. Create and set ``scylla_servers.yml`` file point to your Scylla nodes and ``scylla_manager_server.yml`` file to point to your Scylla Manager.

.. note::
Expand Down Expand Up @@ -490,6 +493,8 @@ For example
url: http://192.168.135.167:9090
access: proxy
basicAuth: false
jsonData:
timeInterval: '20s' # Must match prometheus gloabal scrape_interval
- name: alertmanager
type: camptocamp-prometheus-alertmanager-datasource
Expand All @@ -503,10 +508,10 @@ For example
basicAuth:
isDefault:
jsonData:
severity_critical: '4'
severity_high: '3'
severity_warning: '2'
severity_info: '1'
implementation: 'prometheus'
.. note::
The timeInterval parameter must match Prometheus scrape_interval config.

6. Start the Grafana service

Expand Down

0 comments on commit 277eb35

Please sign in to comment.