Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dstathis committed Aug 27, 2024
1 parent d18bb3b commit f4256c1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/grafana_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,7 @@ def _delete_file_if_exists(self, file_path):
def _on_dashboard_status_changed(self, _event=None):
"""Re-initialize dashboards to forward."""
# TODO: add constructor arg for `inject_dropdowns=False` instead of 'private' method?
self._grafana_dashboards_provider._reinitialize_dashboard_data(
inject_dropdowns=False
) # noqa
self._grafana_dashboards_provider._reinitialize_dashboard_data(inject_dropdowns=False) # noqa
self._update_status()

def _enhance_endpoints_with_tls(self, endpoints) -> List[Dict[str, Any]]:
Expand Down Expand Up @@ -923,12 +921,12 @@ def _loki_config(self) -> Dict[str, Union[Any, List[Any]]]:
for config in configs:
for scrape_config in config.get("scrape_configs", []):
if scrape_config.get("loki_push_api"):
scrape_config["loki_push_api"]["server"][
"http_tls_config"
] = self.tls_config
scrape_config["loki_push_api"]["server"][
"grpc_tls_config"
] = self.tls_config
scrape_config["loki_push_api"]["server"]["http_tls_config"] = (
self.tls_config
)
scrape_config["loki_push_api"]["server"]["grpc_tls_config"] = (
self.tls_config
)

configs.extend(self._additional_log_configs) # type: ignore
return (
Expand Down

0 comments on commit f4256c1

Please sign in to comment.