Skip to content

Commit

Permalink
requires main workload
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon committed Dec 20, 2024
1 parent e736c64 commit e0fa13f
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 @@ -269,7 +269,7 @@ def _generate_keys_zone(self, name):
hashed_name = hashed_value.hexdigest()[0:12]
return f"{hashed_name}-cache"

def _get_nginx_prometheus_exporter_pebble_config(self):
def _get_nginx_prometheus_exporter_pebble_config(self) -> ops.pebble.LayerDict:
"""Generate pebble config for the nginx-prometheus-exporter container.
Returns:
Expand All @@ -287,6 +287,7 @@ def _get_nginx_prometheus_exporter_pebble_config(self):
f" -nginx.scrape-uri=http://localhost:{CONTAINER_PORT}/stub_status"
),
"startup": "enabled",
"requires": [CONTAINER_NAME],
},
},
"checks": {
Expand Down

0 comments on commit e0fa13f

Please sign in to comment.