For a cloud environment, not only can we virtualize the relevant virtual machines, we also need to detect information about the relevant virtual machine objects, such as CPU, memory, IO, and so on, so OpenStack has a ceilometer component that can help us get this information.
Measurement (metering): Ceilometer. Like a funnel, it collects almost all the events that occur within the OpenStack, and then provi
Previously, the project had been using the Folsom version of openstack for secondary development, and there were significant changes to modules such as Nova. Therefore, after the release of the new version of openstack (grizzly, some new functional modules cannot be quickly transplanted to new projects. Because the system monitoring functions of openstack in earlier versions are relatively weak, kanyun + ganglia and simple monitoring functions provided by openstack have been used for system moni
The Openstack ceilometer monitoring Extension (http://eccp.csdb.cn/blog/?p=352) focuses on the expansion of virtual machine monitoring items, which is relatively straightforward. How to increase the monitoring of host, service, etc. on the basis of Ceilometer framework? This article takes host monitoring as an example and details the extension method.First, the overall introduction of the
Ceilometer compared to other OpenStack projects, the difference in deployment is that Ceilometer can choose from a number of different background databases to store measurements and warnings.The current background database supported by Ceilometer and its corresponding configuration are shown in table 9-5:Table 9-5 Ceilometer
CEILOMETER-API uses pecan and flask to build restful APIs, and here's a brief introduction to the use of pecan and flask.CEILOMTER-API Service Initiation Process/usr/bin/ceilometer-api... from ceilometer.cli import apiif __name__ = = "__main__": sys.exit (API ()).../usr/lib/python2.6/site-packages/ceilometer/cli.py...Def API (): service.prepare_service ()
Openstack Ceilometer is primarily used to monitor virtual machines, services (glance, image, network, and so on) and events. The monitoring items of the virtual machine mainly include CPU, disk, network, instance. Based on the existing monitoring items, this paper introduces how to add new monitoring items.First, Ceilometer frame structureCeilometer monitoring through the deployment of compute services in c
1. Physical Server Configuration 1.1 installation# Yum install-y net-snmp net-snmp-utils1.2 ConfigurationCopy the snmpd.conf file in the "attachments" to the/etc/snmp/directory. (original rename, save)Turn off SELinux and firewalls# Setenforce 0 # Vi/etc/sysconfig/selinux modified to: SELINUX=disabled#service snmpd start#chkconfig snmpd on2. Testing in CeilometerAdd a meter that already exists2.1 New meter in Pipline.yamlAdd a Memory Meter,/etc/ceilometer
The previous period took part in a tournament, which was broadly applied and extended OpenStack, as shown in the requirements:Ironic manages and controls the physical machine by periodically executing the Ipmitool command on the physical machine to obtain the SEL (System event log) information for the physical machine, ironic sends the collected SEL information to the Ceilometer via the AMQP protocol, Ceilometer
1. Physical Server Configuration 1.1 installationReference http://blog.csdn.net/qq_21398167/article/details/470197511.2 ConfigurationTurn off SELinux and firewalls# Setenforce 0 # Vi/etc/sysconfig/selinux modified to: SELINUX=disabled2. Testing in CeilometerAdd a meter that already exists2.1 New meter in Pipline.yamlAdd a Memory Meter,/etc/ceilometer/pipline.yaml-meters:"hardware.memory.*"resources:-snmp:// 172.16.1.212Sinks:-Meter_sink2.2 Restart
OpenStack Ceilometer use MongoDB to solve excessive disk space problem
Background: Ceilometer uses MongoDB as a database, constantly sampling, resulting in the volume of data expansion, excessive disk space consumption.
Knowledge background
1. database file type
1.1. Journal log file
Unlike some traditional databases, MongoDB log files are used only to recover memory data that has not yet synchronized
, high data volume will be delayed or shutdown, not recommended to use
Based on the alarm list (current enable alarm)
1.1.3 Partitionedalarmservice (Distributed calibration Service)PartitionedalarmserviceIt implements a set of collaboration protocols (Partitioncoordinator) between multiple evaluator processes through RPC, enabling the ability to continuously increase the processing power of alarm service through horizontal scaling, enabling a simple load balancing and high availabi
Ceilometer-alarm Common command line
Reference:
http://blog.csdn.net/violet_echo_0908/article/details/52243199
http://blog.csdn.net/hackerain/article/details/38172941
1 querying a resource for measurement
Ceilometerstatistics-q resource_id=
Ceilometerstatistics-q Resource_id=640a2be3-632b-4c2b-98f3-75b7f5877d4d-mcpu_util
Ceilometeralarm-list
2 Create a alarm
Ceilometeralarm-threshold-create--namecache--description ' instancerunning hot '--meter-n
Creating a ceilometer alarm requires 4 DB operations:api/controllers/v2/alarms.py1. Every time Is_over_quota needs to query all the alarms of the User/project2. Determine if alarm name already exists in DB, and you need to query all alarms of the User/project# Make sure alarms is unique by name per project.Alarms = List (Conn.get_alarms (Name=data.name,PROJECT=DATA.PROJECT_ID))3. Add Alarm LineAlarm = conn.create_alarm (alarm_in)4. Add a Alarm history
The map_reduce mechanism of ceilometer, map_reduceMap/Reduce is an aggregation tool. For example, SQL, mongodb group (by), countdistinct, and so on are all aggregate commands.Map/Reduce is actually a software framework for implementing the idea of distributed computing. That is, you follow the specifications of this framework. Writing upper-Layer Code can implement your distributed computing and aggregate all the computing results to get a simple resu
piece of data, a reduce method, how to merge each piece of data. The framework sorts the output of the map operation and then inputs the results to the reduce task.Specific reference diagram:Summarize:The idea of Map/reduce is very simple, in other words, any language can be achieved. Google's map/reduce is famous not because the idea is ingenious, but because it sums up the distributed computing in a very simple way.Any distributed computing, the most core tasks are: 1, Task Division 2, Data
Introduction to OpenStack Components Parsing (Advanced)Learning Goals:
Mastering the architecture and functionality of more components
The contents of this note are:
Ceilmeter Component Parsing
Heat Component Parsing
Trove Component Parsing
Sahara Component Parsing
Ironic component parsing
1. Ceilometer Component ParsingAlso known as OpenStack Telemetry ( remote measurement data collection ), OpenStack is a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.