Gnocchi the following mainly include etc directory, gnocchi directory, setup.cfg files, setup.py files.
In the gnocchi directory mainly includes: Aggregates directory, indexer directory, rest directory, storage directory,
service.py: Provides a prepare_service function for registering configuration option groups, setting APIs and METRICD number of workers
statsd.py: Contains the stats class (gets the drive of the repository and index library, connects to the index library, retrieves the resource, traverses the measured value of the resource, invokes the measured value of the monitoring entry through the influxdbclient), Statsdserver Class (statistic service, The main connection receives the data each row parsing, obtains the monitor item name and the sampling value, sets the monitoring item corresponding measure value
), the Start () method opens the service, instantiates the stats object, creates a data point, invokes Asyncio, and permanently opens the service
opts.py: A list of configuration items that consist of indexer,metricd,api,storage tuples
genconfig.py: Generate configuration files mainly according to gnocchi-config-generator.conf gnocchi.conf