Skip to content

Commit

Permalink
Temporarily disable log forwarding (#757)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
  • Loading branch information
marceloneppel authored Nov 12, 2024
1 parent e55f7d4 commit 2aab7da
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from charms.data_platform_libs.v0.data_interfaces import DataPeerData, DataPeerUnitData
from charms.data_platform_libs.v0.data_models import TypedCharmBase
from charms.grafana_k8s.v0.grafana_dashboard import GrafanaDashboardProvider
from charms.loki_k8s.v1.loki_push_api import LogForwarder, LogProxyConsumer
from charms.loki_k8s.v1.loki_push_api import LogProxyConsumer
from charms.observability_libs.v1.kubernetes_service_patch import KubernetesServicePatch
from charms.postgresql_k8s.v0.postgresql import (
REQUIRED_PLUGINS,
Expand Down Expand Up @@ -236,17 +236,10 @@ def __init__(self, *args):
refresh_event=[self.on.start],
jobs=self._generate_metrics_jobs(self.is_tls_enabled),
)
self.loki_push = (
LogForwarder(
self,
relation_name="logging",
)
if self._pebble_log_forwarding_supported
else LogProxyConsumer(
self,
logs_scheme={"postgresql": {"log-files": POSTGRES_LOG_FILES}},
relation_name="logging",
)
self.loki_push = LogProxyConsumer(
self,
logs_scheme={"postgresql": {"log-files": POSTGRES_LOG_FILES}},
relation_name="logging",
)

postgresql_db_port = ServicePort(5432, name="database")
Expand Down

0 comments on commit 2aab7da

Please sign in to comment.