Skip to content

Commit

Permalink
Merge pull request #40 from newrelic-experimental/feat/import-usage
Browse files Browse the repository at this point in the history
Feat/import usage
  • Loading branch information
sdewitt-newrelic authored Oct 4, 2024
2 parents 68ee224 + 95e4681 commit 0164da2
Show file tree
Hide file tree
Showing 14 changed files with 2,505 additions and 83 deletions.
354 changes: 348 additions & 6 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions cmd/databricks/databricks.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func main() {
integration.WithLicenseKey(),
integration.WithApiKey(),
integration.WithEvents(ctx),
integration.WithLastUpdate(),
)
fatalIfErr(err)

Expand Down
23 changes: 15 additions & 8 deletions configs/config.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,24 @@ log:
fileName: trace.log
databricks:
workspaceHost: [YOUR_DATABRICKS_WORKSPACE_INSTANCE_NAME]
accountHost: [YOUR_DATABRICKS_ACCOUNTS_CONSOLE_HOST_NAME]
accountId: [YOUR_DATABRICKS_ACCOUNT_ID]
accessToken: [YOUR_DATABRICKS_PERSONAL_ACCESS_TOKEN]
oauthClientId: [YOUR_DATABRICKS_SERVICE_PRINCIPAL_OAUTH_CLIENT_ID]
oauthClientSecret: [YOUR_DATABRICKS_SERVICE_PRINCIPAL_OAUTH_CLIENT_SECRET]
sparkMetrics: true
sparkMetricPrefix: spark.
sparkClusterSources:
ui: true
job: true
api: true
# RESERVED FOR FUTURE USE
#accountHost: https://accounts.cloud.databricks.com
sqlStatementTimeout: 30
spark:
enabled: true
metricPrefix: spark.
clusterSources:
ui: true
job: true
api: true
usage:
enabled: true
warehouseId: [YOUR_DATABRICKS_WAREHOUSE_ID]
includeIdentityMetadata: false
runTime: 02:00:00
spark:
webUiUrl: http://localhost:4040
metricPrefix: spark.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/cost-usage-dashboard-usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0164da2

Please sign in to comment.