Skip to content

Commit 0afab09

Browse files
mrungeJoanneOFlynn2018leifmadsen
authored
Section on sending metrics to STF and Gnocchi (#196)
* Section on sending metrics to STF and Gnocchi * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Minor edit * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: Leif Madsen <lmadsen@redhat.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: Leif Madsen <lmadsen@redhat.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: Leif Madsen <lmadsen@redhat.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: Leif Madsen <lmadsen@redhat.com> * Update doc-Service-Telemetry-Framework/modules/proc_configuring-gnocchi-metrics.adoc Co-authored-by: Leif Madsen <lmadsen@redhat.com> Co-authored-by: JoanneOFlynn2018 <45287002+JoanneOFlynn2018@users.noreply.github.com> Co-authored-by: Leif Madsen <lmadsen@redhat.com>
1 parent 73a81da commit 0afab09

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

doc-Service-Telemetry-Framework/assemblies/assembly_completing-the-stf-configuration.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ include::../modules/proc_getting-ca-certificate-from-stf-for-overcloud-configura
3232
endif::include_when_13[]
3333

3434
include::../modules/proc_configuring-red-hat-openstack-platform-overcloud-for-stf.adoc[leveloffset=+1]
35+
include::../modules/proc_configuring-gnocchi-metrics.adoc[leveloffset=+1]
3536
include::../modules/proc_validating-clientside-installation.adoc[leveloffset=+2]
3637

3738
//reset the context
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
= Sending metrics to Gnocchi and to {ProjectShort}
2+
3+
[role="_abstract"]
4+
5+
To send metrics to {Project} ({ProjectShort}} and gnocchi simultaneously, you must include an environment file to your deployment to enable an additional publisher.
6+
7+
.Prerequisites
8+
9+
* You have created a file that contains the connection configuration of the {MessageBus} for the overcloud to {ProjectShort}. For more information, see xref:configuring-the-stf-connection-for-the-overcloud[].
10+
11+
.Procedure
12+
13+
. Create an environment file named `gnocchi-connectors.yaml` in the
14+
`/home/stack` directory.
15+
+
16+
[source,yaml]
17+
----
18+
resource_registry:
19+
OS::TripleO::Services::GnocchiApi: /usr/share/openstack-tripleo-heat-templates/deployment/gnocchi/gnocchi-api-container-puppet.yaml
20+
OS::TripleO::Services::GnocchiMetricd: /usr/share/openstack-tripleo-heat-templates/deployment/gnocchi/gnocchi-metricd-container-puppet.yaml
21+
OS::TripleO::Services::GnocchiStatsd: /usr/share/openstack-tripleo-heat-templates/deployment/gnocchi/gnocchi-statsd-container-puppet.yaml
22+
OS::TripleO::Services::AodhApi: /usr/share/openstack-tripleo-heat-templates/deployment/aodh/aodh-api-container-puppet.yaml
23+
OS::TripleO::Services::AodhEvaluator: /usr/share/openstack-tripleo-heat-templates/deployment/aodh/aodh-evaluator-container-puppet.yaml
24+
OS::TripleO::Services::AodhNotifier: /usr/share/openstack-tripleo-heat-templates/deployment/aodh/aodh-notifier-container-puppet.yaml
25+
OS::TripleO::Services::AodhListener: /usr/share/openstack-tripleo-heat-templates/deployment/aodh/aodh-listener-container-puppet.yaml
26+
OS::TripleO::Services::PankoApi: /usr/share/openstack-tripleo-heat-templates/deployment/deprecated/panko/panko-api-container-puppet.yaml
27+
28+
parameter_defaults:
29+
CeilometerEnableGnocchi: true
30+
CeilometerEnablePanko: false
31+
GnocchiArchivePolicy: 'high'
32+
GnocchiBackend: 'rbd'
33+
GnocchiRbdPoolName: 'metrics'
34+
35+
EventPipelinePublishers: ['gnocchi://?filter_project=service&archive_policy=high']
36+
PipelinePublishers: ['gnocchi://?filter_project=service&archive_policy=high']
37+
----
38+
39+
. Add the environment file `gnocchi-connectors.yaml` to the deployment command. Replace <other-argruments> with files that are applicable to your environment:
40+
+
41+
[source,bash,options="nowrap",subs="+quotes"]
42+
----
43+
$ openstack overcloud deploy <other-arguments>
44+
--templates /usr/share/openstack-tripleo-heat-templates \
45+
--environment-file <...other-environment-files...> \
46+
--environment-file /usr/share/openstack-tripleo-heat-templates/environments/metrics/ceilometer-write-qdr.yaml \
47+
--environment-file /usr/share/openstack-tripleo-heat-templates/environments/enable-stf.yaml \
48+
--environment-file /home/stack/stf-connectors.yaml \
49+
--environment-file /home/stack/gnocchi-connectors.yaml
50+
----
51+
52+
. Verification: To verify that the configuration was successful, verify the content
53+
of the file `/var/lib/config-data/puppet-generated/ceilometer/etc/ceilometer/pipeline.yaml` on a Controller
54+
node:
55+
56+
[source,yaml]
57+
----
58+
sources:
59+
- name: meter_source
60+
meters:
61+
- "*"
62+
sinks:
63+
- meter_sink
64+
sinks:
65+
- name: meter_sink
66+
publishers:
67+
- gnocchi://?filter_project=service&archive_policy=high
68+
- notifier://172.17.1.35:5666/?driver=amqp&topic=metering
69+
----
70+
+
71+
Ensure that the `publishers` section of the file contains information for both notifier and gnocchi.

0 commit comments

Comments
 (0)