Skip to content
Bosun Syntax Highlighting for VSCode
TypeScript
Branch: master
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.
.vscode
images
out
src
syntaxes
.gitignore
.vscodeignore
CHANGELOG.md
README.md
icon.png
language-configuration.json
package-lock.json
package.json
snippet.conf
tsconfig.json
tslint.json

README.md

Bosun Language Support

Bosun logo

A Bosun language pack for Visual Studio Code featurng syntax highlighting and code snippets.

VS Marketplace

Github

Syntax Highlighting

Syntax Highlighting Example

OpenTSDB Metric Path Completion

OpenTSDB metric path autocomplete\

Configuration

The settings for OpenTSDB metric path completion are configured per workspace, allowing you to have a different OpenTSDB set up for each bosun project. The following configuration parameters are available:

{
    "bosun": {
        "openTsdb": {
            "url": "<the url of your OpenTSDB api>",
            "port": 4242 // the port your OpenTSDB api is accessible on - default 4242
            "maxEntries": 500 // the number of metrics paths to fetch in the request - default 500
        }
        ...
    }
}

Bosun Configuration Validation

This package provides access to the Bosun configuration testing api if provided with a url to a running instance of Bosun. The command can be found in the command palette ⌘ + ⇧ + P and selecting Bosun: Validate Bosun Configuration.

To configure this command, add the bosun url to your config:

{
    "bosun": {
        "url": "<the url of your bosun instance>"
        ...
    }
}

FAQ

Changing the associated file extension

By default, files with a .conf extention are registered as bosun files. To mark a single file as a bosun file, use the language indicator or the language selection drop down using ⌘K M. For more information see the vscode guide.

To add more file extensions or replace the defaults add the follow snippet the user settings. For more information see the vscode guide.

"files.associations": {
        "*.conf": "bosun"
    }

Autocompletion does not show all my metric paths

This could be caused by not returning enough paths from the suggest API. Try increasing the maxEntries setting.

You can’t perform that action at this time.