Ubuntu 24.04
Sponsored Link

OpenStack Caracal : Ceilometer कॉन्फ़िगर करें (नेटवर्क नोड)2024/05/23

 

OpenStack टेलीमेट्री सेवा (Ceilometer) स्थापित करें।

यह उदाहरण निम्न प्रकार से पर्यावरण पर आधारित है।

------------+--------------------------+--------------------------+------------
            |                          |                          |
        eth0|10.0.0.30             eth0|10.0.0.50             eth0|10.0.0.51
+-----------+-----------+  +-----------+-----------+  +-----------+-----------+
|   [ dlp.srv.world ]   |  | [ network.srv.world ] |  |  [ node01.srv.world ] |
|     (Control Node)    |  |     (Network Node)    |  |     (Compute Node)    |
|                       |  |                       |  |                       |
|  MariaDB    RabbitMQ  |  |  Neutron L2/L3 Agent  |  |        Libvirt        |
|  Memcached  Nginx     |  |   Neutron Metadata    |  |      Nova Compute     |
|  Keystone   httpd     |  |     Open vSwitch      |  |    Neutron L2 Agent   |
|  Glance     Nova API  |  |     iSCSI Target      |  |      Open vSwitch     |
|  Neutron Server       |  |     Cinder Volume     |  |   Ceilometer Compute  |
|  Neutron Metadata     |  |     httpd  Gnocchi    |  |                       |
|  Cinder API           |  |   Ceilometer Central  |  |                       |
+-----------------------+  +-----------------------+  +-----------------------+

[1]

पहले Gnocchi इंस्टॉल करें, यहां देखें।

[2] Keystone में Ceilmeter के लिए उपयोगकर्ता और अन्य जोड़ें।
# [service] प्रोजेक्ट में [ceilimeter] उपयोगकर्ता बनाएं

root@dlp ~(keystone)#
openstack user create --domain default --project service --password servicepassword ceilometer

+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| default_project_id  | ab9749e59bdb48e4807a18abb83c9f99 |
| domain_id           | default                          |
| enabled             | True                             |
| id                  | 65be1bdf8db2441e8670bf362e844176 |
| name                | ceilometer                       |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+

# [ceilimeter] उपयोगकर्ता को [admin] भूमिका में जोड़ें

root@dlp ~(keystone)#
openstack role add --project service --user ceilometer admin
# [ceilometer] के लिए सेवा प्रविष्टि बनाएं

root@dlp ~(keystone)#
openstack service create --name ceilometer --description "OpenStack Telemetry Service" metering

+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | OpenStack Telemetry Service      |
| enabled     | True                             |
| id          | 2ef1309d598146ca9fd8ed1dbbbcf967 |
| name        | ceilometer                       |
| type        | metering                         |
+-------------+----------------------------------+
[3] नेटवर्क नोड पर Ceilometer सेवाएँ स्थापित करें।
root@network:~#
apt -y install ceilometer-agent-central ceilometer-agent-notification
[4] Ceilometer कॉन्फ़िगर करें।
root@network:~#
mv /etc/ceilometer/ceilometer.conf /etc/ceilometer/ceilometer.conf.org

root@network:~#
vi /etc/ceilometer/ceilometer.conf
# नया निर्माण

[DEFAULT]
# RabbitMQ कनेक्शन जानकारी
transport_url = rabbit://openstack:password@dlp.srv.world

[api]
auth_mode = keystone

[dispatcher_gnocchi]
filter_service_activity = False

# Keystone प्रामाणिक जानकारी (gnocchi उपयोगकर्ता के साथ)
[keystone_authtoken]
www_authenticate_uri = https://dlp.srv.world:5000
auth_url = https://dlp.srv.world:5000
memcached_servers = dlp.srv.world:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = gnocchi
password = servicepassword
# यदि Apache2 Keystone पर स्व-हस्ताक्षरित प्रमाणपत्र का उपयोग कर रहे हैं, तो [true] पर जाएँ
insecure = false

# Keystone प्रामाणिक जानकारीo (ceilometer उपयोगकर्ता के साथ)
[service_credentials]
auth_url = https://dlp.srv.world:5000
memcached_servers = dlp.srv.world:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = ceilometer
password = servicepassword
# यदि Apache2 Keystone पर स्व-हस्ताक्षरित प्रमाणपत्र का उपयोग कर रहे हैं, तो [true] पर जाएँ
insecure = false

root@network:~#
mkdir /usr/lib/python3/dist-packages/ceilometer/pipeline/data

root@network:~#
mkdir /usr/lib/python3/dist-packages/ceilometer/publisher/data

root@network:~#
wget https://raw.githubusercontent.com/openstack/ceilometer/master/ceilometer/pipeline/data/pipeline.yaml \
https://raw.githubusercontent.com/openstack/ceilometer/master/ceilometer/pipeline/data/event_pipeline.yaml \
https://raw.githubusercontent.com/openstack/ceilometer/master/ceilometer/pipeline/data/event_definitions.yaml \
-P /usr/lib/python3/dist-packages/ceilometer/pipeline/data

root@network:~#
wget https://raw.githubusercontent.com/openstack/ceilometer/master/ceilometer/publisher/data/gnocchi_resources.yaml \
-P /usr/lib/python3/dist-packages/ceilometer/publisher/data
root@network:~#
chmod 640 /etc/ceilometer/ceilometer.conf

root@network:~#
chgrp ceilometer /etc/ceilometer/ceilometer.conf

root@network:~#
su -s /bin/bash ceilometer -c "ceilometer-upgrade"

root@network:~#
systemctl restart ceilometer-agent-central ceilometer-agent-notification

root@network:~#
systemctl enable ceilometer-agent-central ceilometer-agent-notification

मिलान सामग्री