mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-01 19:32:38 +02:00
Fix metrics command line options
This commit is contained in:
parent
8e6defdc38
commit
b8bc2ba109
1 changed files with 6 additions and 4 deletions
|
|
@ -60,10 +60,10 @@ class BaseProcessor:
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-M', '--metrics-enabled',
|
'--metrics',
|
||||||
type=bool,
|
action=argparse.BooleanOptionalAction,
|
||||||
default=True,
|
default=True,
|
||||||
help=f'Pulsar host (default: true)',
|
help=f'Metrics enabled (default: true)',
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
@ -89,7 +89,9 @@ class BaseProcessor:
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
args = vars(args)
|
args = vars(args)
|
||||||
|
|
||||||
if args["metrics_enabled"]:
|
print(args)
|
||||||
|
|
||||||
|
if args["metrics"]:
|
||||||
start_http_server(args["metrics_port"])
|
start_http_server(args["metrics_port"])
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue