cmd

package
v1.9.2-0...-6911572 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2015 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImportDashboard = cli.Command{
		Name:        "dashboards:import",
		Usage:       "imports dashboards in JSON from a directory",
		Description: "Starts Grafana import process",
		Action:      runImport,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "dir",
				Usage: "path to folder containing json dashboards",
			},
		},
	}

	ExportDashboard = cli.Command{
		Name:        "dashboards:export",
		Usage:       "exports dashboards in JSON from a directory",
		Description: "Starts Grafana export process",
		Action:      runExport,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "dir",
				Usage: "path to folder containing json dashboards",
			},
		},
	}
)
View Source
var (
	ListDataSources = cli.Command{
		Name:        "datasources",
		Usage:       "list datasources",
		Description: "Lists the datasources in the system",
		Action:      listDatasources,
	}
	CreateDataSource = cli.Command{
		Name:        "datasources:create",
		Usage:       "creates a new datasource",
		Description: "Creates a new datasource",
		Action:      createDataSource,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "type",
				Value: "graphite",
				Usage: fmt.Sprintf("Datasource type [%s,%s,%s,%s]",
					m.DS_GRAPHITE, m.DS_INFLUXDB, m.DS_ES, m.DS_OPENTSDB),
			},
			cli.StringFlag{
				Name:  "access",
				Value: "proxy",
				Usage: "Datasource access [proxy,direct]",
			},
			cli.BoolFlag{
				Name:  "default",
				Usage: "Make this the default datasource",
			},
			cli.StringFlag{
				Name:  "db",
				Usage: "InfluxDB DB",
			},
			cli.StringFlag{
				Name:  "user",
				Usage: "InfluxDB username",
			},
			cli.StringFlag{
				Name:  "password",
				Usage: "InfluxDB password",
			},
		},
	}
	DescribeDataSource = cli.Command{
		Name:        "datasources:info",
		Usage:       "describe the details of a datasource",
		Description: "Describes the details of a datasource",
		Action:      describeDataSource,
	}
	DeleteDataSource = cli.Command{
		Name:        "datasources:delete",
		Usage:       "Deletes a datasource",
		Description: "Deletes a datasource",
		Action:      deleteDataSource,
	}
)
View Source
var CreateOrg = cli.Command{
	Name:        "orgs:create",
	Usage:       "Creates a new organization",
	Description: "Creates a new organization",
	Action:      createOrg,
}
View Source
var DeleteOrg = cli.Command{
	Name:        "orgs:delete",
	Usage:       "Delete an existing organization",
	Description: "Deletes an existing organization",
	Action:      deleteOrg,
}
View Source
var ListOrgs = cli.Command{
	Name:        "orgs",
	Usage:       "list organizations",
	Description: "Lists the organizations in the system",
	Action:      listOrgs,
}
View Source
var Web = cli.Command{
	Name:        "web",
	Usage:       "Starts Grafana backend & web server",
	Description: "Starts Grafana backend & web server",
	Action:      runWeb,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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