Skip to content

Commit

Permalink
update source_url when server_cert_changed event is emitted (#289)
Browse files Browse the repository at this point in the history
* update source_url when server_cert_changed event is emitted

* update lib
  • Loading branch information
Abuelodelanada authored Jul 25, 2023
1 parent f6ad1da commit be24f08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def _on_upgrade_charm(self, _):
def _on_server_cert_changed(self, _):
self._configure()
self.metrics_provider.update_scrape_job_spec(self.scrape_jobs)
self.grafana_source_provider.update_source(source_url=self._external_url)

def _on_loki_pebble_ready(self, _):
if self._ensure_alert_rules_path():
Expand Down

0 comments on commit be24f08

Please sign in to comment.