No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.editorconfig
.gitignore
README.md
package.json
prettier.config.js
tsconfig.json
tslint.json WIP: Datadog metrics extension first draft Dec 7, 2018
yarn.lock

README.md

Datadog metrics Sourcegraph extension

A Sourcegraph extension that allows jumps to the Datadog page for a metrics/instrumentation call in the code files.

🗃️ Source code

Add to Sourcegraph (see usage instructions for self-hosted Sourcegraph instances)

Features

Works on Sourcegraph.com, self-hosted Sourcegraph instances, and on code hosts (via the Sourcegraph browser extension).

  • Jump to graph on Datadog page for standard metric/instrumentation calls

Datadog extension screenshot

Usage

  1. Enable the sourcegraph-datadog-metrics extension:
  2. Visit any code file containing datadog statsd metric/instrumentation calls on Sourcegraph.
  3. Click on the Datadog link that appears at the end of the line of each Datadog metric/instrumentation call to open the associated graph in the Datadog page.

On your code host

This extension adds the same features to code containing Datadog statsd code on your code host if you're using the Sourcegraph browser extension. To use it on your code host:

  1. Follow the usage steps above to enable this sourcegraph/datadog-metrics extension.
  2. Install the Sourcegraph browser extension.
    • If you're using it with a self-hosted Sourcegraph instance, enter the Sourcegraph instance URL into the Sourcegraph browser extension options menu. Then click the gear icon and enable Experimental features: Use extensions.
  3. Visit files containing Datadog statsd code on your code host and click on the links rendered behind each Datadog statsd code that will send you to your Datadog account and show the graph of the metrics that this code generates.

screenshot of using datadog-extension on GitHub