gerrit/gerrit-sshd/BUCK
Shawn Pearce f70a242ad5 DropWizard metric support
Gerrit server supports defining and recording metrics.  Metric
reporters for monitoring can be implemented as plugins.  A basic
Graphite reporter is available here:

  https://gerrit-review.googlesource.com/#/c/72202/

Some example metrics are included in this change:

  change/query/query_latency
  (Query latency)

  sshd/sessions/connected
  (SSH sessions connected)

  sshd/sessions/created/count
  (SSH connections created)

  git/upload-pack
  (Upload packs requests)

Partially-by: Gustaf Lundh <gustaflh@axis.com>
Change-Id: I46a07aace57efe236ee724ec8d34c581e2c37965
2015-11-11 10:13:25 -08:00

61 lines
1.3 KiB
Python

SRCS = glob(['src/main/java/**/*.java'])
java_library(
name = 'sshd',
srcs = SRCS,
deps = [
'//gerrit-extension-api:api',
'//gerrit-cache-h2:cache-h2',
'//gerrit-common:annotations',
'//gerrit-common:server',
'//gerrit-lucene:lucene',
'//gerrit-patch-jgit:server',
'//gerrit-reviewdb:server',
'//gerrit-server:server',
'//gerrit-util-cli:cli',
'//lib:args4j',
'//lib:gson',
'//lib:guava',
'//lib:gwtorm',
'//lib:jsch',
'//lib/auto:auto-value',
'//lib/commons:codec',
'//lib/commons:collections',
'//lib/dropwizard:dropwizard-core',
'//lib/guice:guice',
'//lib/guice:guice-assistedinject',
'//lib/guice:guice-servlet', # SSH should not depend on servlet
'//lib/log:api',
'//lib/log:log4j',
'//lib/mina:core',
'//lib/mina:sshd',
'//lib/jgit:jgit',
'//lib/jgit:jgit-archive',
],
provided_deps = [
'//lib/bouncycastle:bcprov',
],
visibility = ['PUBLIC'],
)
java_sources(
name = 'sshd-src',
srcs = SRCS,
visibility = ['PUBLIC'],
)
java_test(
name = 'sshd_tests',
srcs = glob(
['src/test/java/**/*.java'],
),
deps = [
':sshd',
'//gerrit-extension-api:api',
'//gerrit-server:server',
'//lib:truth',
'//lib/mina:sshd',
],
source_under_test = [':sshd'],
)