Skip to content

Commit

Permalink
add constant for metrics port
Browse files Browse the repository at this point in the history
  • Loading branch information
reneradoi committed Jun 7, 2024
1 parent e766ddf commit eee676a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
LEADER_HOST_KEY,
LOG_DIR,
LOG_FILE,
METRICS_PORT,
PEER,
PEER_PASSWORD_KEY,
REDIS_PORT,
Expand Down Expand Up @@ -65,7 +66,7 @@ def __init__(self, *args):
{
"static_configs": [
{
"targets": ["*:9121"],
"targets": [f"*:{METRICS_PORT}"],
}
]
}
Expand Down

0 comments on commit eee676a

Please sign in to comment.