Adding Swift Proxy Server Dashboard
Provide initial version of a grafana OpenStack Swift Dashboard for the Swift Proxy Server. The metrics are gathered by the built-in statsd functionality of Swift and are forwarded via local telegraf daemons to the influxDB. Change-Id: Ieb7df97fbc7534e34ebde5a5fe365ff479de81fe
This commit is contained in:
parent
08c6377645
commit
335d23f32b
File diff suppressed because it is too large
Load Diff
@ -79,3 +79,29 @@ Install Kapacitor
|
||||
.. code-block:: bash
|
||||
|
||||
openstack-ansible playbook-kapacitor.yml
|
||||
|
||||
|
||||
OpenStack Swift PRoxy Server Dashboard
|
||||
--------------------------------------
|
||||
|
||||
Once the telegraf daemon is installed onto each host, the Swift
|
||||
proxy-server can be instructed to forward statsd metrics to telegraf.
|
||||
The following configuration enabled the metric generation and need to
|
||||
be added to the ``user_variables.yml``:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
swift_proxy_server_conf_overrides:
|
||||
DEFAULT:
|
||||
log_statsd_default_sample_rate: 10
|
||||
log_statsd_metric_prefix: "{{ inventory_hostname }}.swift"
|
||||
log_statsd_host: localhost
|
||||
log_statsd_port: 8125
|
||||
|
||||
|
||||
Rewrite the swift proxy server configuration with :
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
cd /opt/openstack-ansible/playbooks
|
||||
openstack-ansible os-swift-setup.yml --tags swift-config --forks 2
|
||||
|
@ -68,6 +68,15 @@
|
||||
{% if inventory_hostname in groups['all_containers'] %}
|
||||
[[inputs.net]]
|
||||
|
||||
{% if inventory_hostname in groups['swift-proxy_containers'] %}
|
||||
[[inputs.statsd]]
|
||||
service_address = ":8125"
|
||||
metric_separator = "."
|
||||
templates = [
|
||||
"*.swift.proxy-server.*.*.*.* host.measurement.measurement.measurement.method.returncode.field*",
|
||||
"*.swift.proxy-server.*.policy.*.*.*.* host.measurement.measurement.measurement.measurement.measurement.method.returncode.field*",
|
||||
]
|
||||
|
||||
{% elif inventory_hostname in groups['hosts'] %}
|
||||
[[inputs.cpu]]
|
||||
percpu = true
|
||||
|
Loading…
Reference in New Issue
Block a user