cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Expose Databricks Cluster Logs to Grafana

joaquin12beard
New Contributor

I am trying to send Databricks cluster logs to Grafana using an init_script where I define the system journals to consume. The issue I am facing is that I cannot get the driver logs, standard error, and output to reach Grafana. Is there something specific I need to enable at the cluster level to expose these logs to the system?

These are the journals I defined.

discovery.relabel "journal_relabel_rules" {
  targets = []

  rule {
    source_labels = ["__journal__systemd_unit"]
    target_label  = "unit"
  }

  rule {
    source_labels = ["__journal__boot_id"]
    target_label  = "boot_id"
  }

  rule {
    source_labels = ["__journal__transport"]
    target_label  = "transport"
  }

  rule {
    source_labels = ["__journal_priority_keyword"]
    target_label  = "level"
  }
}

 

4 REPLIES 4

Walter_C
Databricks Employee
Databricks Employee

Are you following a guide to have this set up that you can share with us for information? You can also set up cluster log delivery to an S3 destination and read the logs from there?

joaquin12beard
New Contributor

@Walter_C I followed this post but used the Alloy binary to send logs directly to Loki as the source, which Grafana then consumes. I chose not to send logs to S3 to avoid aditional work, preferring to send them directly from the cluster. My question is whether I need to configure anything else on the cluster to expose the driver logs and forward them to Grafana.

Walter_C
Databricks Employee
Databricks Employee

Does it collect any other set of logs, just missing those ones or not collecting any log?

joaquin12beard
New Contributor

@Walter_C This is the log that is arriving.

joaquin12beard_1-1732634019932.png

 

 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group