Created
November 15, 2012 23:35
-
-
Save geoffdavis/4082386 to your computer and use it in GitHub Desktop.
Example webdlmon backend Antelope parameter file - array of arrays with optional keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
davis@snarf ~/Desktop $ pfecho webdlmonbackend instances | |
instances &Arr{ | |
bar &Arr{ | |
host3:orbname3 | |
} | |
baz &Arr{ | |
host4:orbname4 &Arr{ | |
reject (foo|bar) | |
} | |
} | |
foo &Arr{ | |
host1:orbname1 &Arr{ | |
match .* | |
} | |
host1:orbname2 | |
} | |
} | |
davis@snarf ~/Desktop $ pfecho webdlmonbackend instances{foo} | |
instances{foo} &Arr{ | |
host1:orbname1 &Arr{ | |
match .* | |
} | |
host1:orbname2 | |
} | |
davis@snarf ~/Desktop $ pfecho webdlmonbackend instances{foo}{host1:orbname2} | |
instances{foo}{host1:orbname2} | |
davis@snarf ~/Desktop $ pfecho webdlmonbackend instances{foo}{host1:orbname3} | |
instances{foo}{host1:orbname3} ** NOT FOUND ** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# example webdlmon backend parameter file | |
# | |
# Global options | |
# Set an optional global match/reject statement which can be overridden on a | |
# per instance basis | |
match TA_.* | |
#reject AZ_.* # We're not using this one | |
# Bind only to localhost - useful for systems with multiple interfaces. | |
# No default value, which means it binds to all interfaces/addresses. | |
bind_address 127.0.0.1 | |
# Listen on this port. | |
port 7000 | |
# Set the relative root URL - useful when behind a reverse proxy. | |
# Defaults to "/" | |
root /data/dlmon | |
# Individual instances | |
# The key is the short path. "root" defined above is prepended. | |
# A value for each key is required, otherwise we have no idea what feed to | |
# read from | |
instances &Arr{ | |
# a dlmon instance accessible at http://127.0.0.1/root/dlmon/foo | |
# with two feeds, one of which has a select statement | |
# The array keys are orb source names. | |
# The orb source names can have an optional &Arr containing configuration | |
# options such as match and reject | |
foo &Arr{ | |
# This Orb has options specified for it. | |
host1:orbname1 &Arr{ | |
match .* | |
} | |
# This Orb has no options. pfverify is happy with this Arr entry | |
# having no value associated with it. | |
host1:orbname2 | |
} | |
# A dlmon instance accesible at /root/dlmon/foo | |
# with a single feed with no options | |
bar &Arr{ | |
host3:orbname3 | |
} | |
# A dlmon instance with a single feed with a reject option | |
baz &Arr{ | |
host4:orbname4 &Arr{ | |
reject (foo|bar) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment