Created
November 16, 2012 00:17
-
-
Save geoffdavis/4082688 to your computer and use it in GitHub Desktop.
Example webdlmon backend Antelope file using Array of Tables
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 webdlmonbackend2ple instances | |
instances &Arr{ | |
bar &Arr{ | |
sources &Tbl{ | |
host3:orbname3 | |
} | |
} | |
baz &Arr{ | |
sources &Tbl{ | |
host4:orbname4 (foo|bar) | |
} | |
} | |
foo &Arr{ | |
match .* | |
sources &Tbl{ | |
host1:orbname1 .* | |
host1:orbname2 | |
host1:orbname3 "" ^AZ_ | |
} | |
} | |
} | |
davis@snarf ~/Desktop $ pfecho webdlmonbackend2ple instances{foo}{sources} | |
instances{foo}{sources} &Tbl{ | |
host1:orbname1 .* | |
host1:orbname2 | |
host1:orbname3 "" ^AZ_ | |
} | |
davis@snarf ~/Desktop $ pfecho webdlmonbackend2ple instances{foo}{sources}[1] | |
instances{foo}{sources}[1] host1:orbname1 .* | |
davis@snarf ~/Desktop $ pfecho webdlmonbackend2ple instances{foo}{sources}[1][2] | |
instances{foo}{sources}[1][2] ** NOT FOUND ** | |
davis@snarf ~/Desktop $ |
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 using Tables in place of python tuples | |
# | |
# 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 three feeds | |
foo &Arr{ | |
# Override the global match statement for just this instance | |
match .* | |
# Orb sources | |
sources &Tbl{ | |
#orbname match reject | |
host1:orbname1 .* | |
host1:orbname2 | |
host1:orbname3 "" ^AZ_ | |
} | |
} | |
# A dlmon instance accesible at /root/dlmon/foo | |
# with a single feed with no options | |
bar &Arr{ | |
sources &Tbl{ | |
host3:orbname3 | |
} | |
} | |
# A dlmon instance with a single feed with a reject option | |
baz &Arr{ | |
sources &Tbl{ | |
host4:orbname4 (foo|bar) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment