HostRewriter

com.netflix.atlas.eval.util.HostRewriter
class HostRewriter(config: Config)

Utility for rewriting an Atlas query expression based on the host used. This is useful for cases where the same backend is serving requests, but there might be multiple DNS names used that are intended to provide specific views.

Sample config:

pattern = "^foo\\.([^.]+)\\.example\\.com$"
key = "region"

This config would extract the second portion of the host name and use it as a region restriction (region,$1,:eq). The first group will be used as the value for the restriction query.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def rewrite(host: String, inputExprs: List[StyleExpr]): List[StyleExpr]