mattermost-plugin-fyi

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2018 License: MIT Imports: 11 Imported by: 0

README

fyi

Mattermost slash command to create Grafana annotations.

example

Usage

Quick Start

# Create your Mattermost slash command
# Follow this steps: https://docs.mattermost.com/developer/slash-commands.html

# Install the project's dependencies
$ make deps

# Mattermost security token [optional]
$ export FYI_TOKEN=euhi1mfrhpbuny17qaq

# Tags allowed [optional]
$ export FYI_TAGS=infra,outage,marketing

# Setup your grafana API
$ export FYI_GRAFANA_HOST=https://grafana.1000mercis.com
$ export FYI_GRAFANA_API_KEY=eyJrIjoibXppaTB5NXVueUF3eGp1WWVXOXRa

# Run !
$ make run

Pre-packaged

You don't have to install any other software. Packages are available on the releases page.

Configuration

type Config struct {
	Debug         bool     `default:"true"`
	Host          string   `default:"0.0.0.0"`
	Port          int      `default:"8888"`
	Token         string   `required:"false"`
	Tags          []string `required:"false"`
	GrafanaHost   string   `envconfig:"grafana_host"`
	GrafanaApiKey string   `envconfig:"grafana_api_key"`
	Username      string   `default:"ForYourInformation"`
	IconURL       string   `default:"https://avatars2.githubusercontent.com/u/757902?s=460&v=4"`
}

Tests

$ make test

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL