# Functions
NewAppObserver create a new AppObserver.
NewFileFollower creates a new Follower instance for a given file (given by name).
NewNamespace create a Namespace object from nsCfg.
NewNamespaceWithMetrics create a Namespace object from config and metrics It uses labels in metrics and ignore labels in nsCfg.
NewRegexReplace create RegexReplace object.
NewRelabeling create Relabeling object from config.
# Structs
AppConfig config an APP observer APP observer has a name, which will be labeled in metrics as app={name} APP observer can read from multple files APP observer can overide namespace's default relabel configs.
AppObserver reads incoming nginx logs and gather values.
ExcactReplaceConfig tells how to extract label value from source value.
Namespace collect a group of metrics of different APP.
NamespaceConfig config a group of metric scraper metrics in a namespace share: * group of metric names * labels * nginx log format * historgram buckets a namespace has default relabel configs, they can be changed by child APP observers.
RegexReplace match and convert value.
RegexReplaceConfig tells how to extract label value from source value.
RelabelConfig tells the application how to extract a metric label value.
Relabeling extract label value from source value.