druid/website
Björn Zettergren 30c24df4d3
Add config option for namespacePrefix (#9372)
* Add config option for namespacePrefix

opentsdb emitter sends metric names to opentsdb verbatim as what druid
names them, for example "query.count", this doesn't fit well with a
central opentsdb server which might have namespaced metrics, for example
"druid.query.count". This adds support for adding an optional prefix.

The prefix also gets a trailing dot (.), after it, so the metric name
becomes <namespacePrefix>.<metricname>

configureable as "druid.emitter.opentsdb.namespacePrefix", as
documented.

Co-authored-by: Martin Gerholm <martin.gerholm@deltaprojects.com>
Signed-off-by: Martin Gerholm <martin.gerholm@deltaprojects.com>
Signed-off-by: Björn Zettergren <bjorn.zettergren@deltaprojects.com>

* Spelling for PR #9372

Added "namespacePrefix" to .spelling exceptions, it's a variable name
used in documentation for opentsdb-emitter.

* fixing tests for PR #9372

changed naming of variables to be more descriptive
added test of prefix being an empty string: "".
added a conditional to buildNamespacePrefix to check for empty string
being fed if EventConverter called without OpentsdbEmitterConfig
instance.

* fixing checkstyle errors for PR #9372

used == to compare literal string, should be equals()

* cleaned up and updated PR #9372

Created a buildMetric function as suggested by clintropolis, and
removed redundant tests for empty strings as they're only used when
calling EventConverter directly without going through
OpentsdbEmitterConfig.

* consistent naming of tests PR #9372

Changed names of tests in files to match better with what it was
actually testing

changed check for Strings.isNullOrEmpty to just check for `null`, as
empty string valued `namespacePrefix` is handled in
OpentsdbEmitterConfig.

Co-authored-by: Martin Gerholm <inspector-martin@users.noreply.github.com>
2020-02-20 14:01:41 -08:00
..
core De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
i18n add docker tutorial, friendlier docker-compose.yml, experimental java 11 dockerfile (#9262) 2020-02-13 21:24:45 -08:00
pages/en Docusaurus build framework + ingestion doc refresh. (#8311) 2019-08-20 21:48:59 -07:00
script Graduation update for ASF release process guide and download links (#9126) 2020-01-06 15:00:33 -06:00
scss Docusaurus build framework + ingestion doc refresh. (#8311) 2019-08-20 21:48:59 -07:00
static Add 'edit' and 'copy code' buttons to docs (#8483) 2019-09-13 16:56:50 -07:00
.gitignore Docusaurus build framework + ingestion doc refresh. (#8311) 2019-08-20 21:48:59 -07:00
.spelling Add config option for namespacePrefix (#9372) 2020-02-20 14:01:41 -08:00
README.md Docusaurus build framework + ingestion doc refresh. (#8311) 2019-08-20 21:48:59 -07:00
package-lock.json Update Kafka loading docs to use the streaming data loader (#8544) 2019-09-22 15:00:52 -07:00
package.json Spellcheck docs (#8548) 2019-09-17 12:47:30 -07:00
pom.xml De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
redirects.json merge recommendations into basic-cluster-tuning, add additional info (#8649) 2019-10-08 16:33:54 -07:00
sidebars.json add docker tutorial, friendlier docker-compose.yml, experimental java 11 dockerfile (#9262) 2020-02-13 21:24:45 -08:00
siteConfig.js De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00

README.md

Druid doc builder

This website was created with Docusaurus.

To edit this documentation run:

npm install

Then run

npm start