package datasource
import "github.com/oslokommune/okctl/pkg/datasource"
Package datasource contains helper functions for creating grafana datasource definitions
Index ¶
Types ¶
type Datasource ¶
type Datasource struct { Name string `json:"name"` Type string `json:"type"` Access *string `json:"access,omitempty"` OrgID *int `json:"orgId,omitempty"` URL *string `json:"url,omitempty"` BasicAuth *bool `json:"basicAuth,omitempty"` JSONData map[string]interface{} `json:"jsonData"` Version *int `json:"version,omitempty"` Editable *bool `json:"editable,omitempty"` }
Datasource contains a single datasource nolint: maligned
type Datasources ¶
type Datasources struct { APIVersion int `json:"apiVersion"` Datasources []Datasource `json:"datasources"` }
Datasources contains a set of datasources
func NewCloudWatch ¶
func NewCloudWatch(region string) *Datasources
NewCloudWatch returns an initialised CloudWatch datasource consumable by Grafana
func NewLoki ¶
func NewLoki() *Datasources
NewLoki returns an initialised Loki datasource consumable by Grafana
func NewTempo ¶
func NewTempo() *Datasources
NewTempo returns an initialised tempo datasource consumable by Grafana
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 4 days ago –
Tools for package owners.