NginxConfTree - Combiner for nginx configuration
- class insights.combiners.nginx_conf.ContainerNginxConfTree(ctn_confs)[source]
Bases:
list
This module models the nginx configuration of the same running containers as a tree and wrap the tree of containers into a list. Within the tree, It correctly handles include directives by splicing individual document trees into their parents until one document tree is left.
See the
insights.core.ConfigComponent
class for example usage.
- class insights.combiners.nginx_conf.NginxConfTree(confs)[source]
Bases:
ConfigCombiner
This module models nginx configuration as a tree. It correctly handles include directives by splicing individual document trees into their parents until one document tree is left.
A DSL is provided to query the tree through a select function or brackets []. The brackets allow a more conventional lookup feel but aren’t quite as powerful as using select directly.
See the
insights.core.ConfigComponent
class for example usage.