-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ignore SSL option ChangeLog: - Allows for a config option to ignore invalid SSL certificates. - Allows for graceful failover when Orgs cannot be obtained. Fixes #37 and #35 * Restructuring documentation
- Loading branch information
1 parent
c03561b
commit 64e3804
Showing
12 changed files
with
132 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,4 @@ contexts: | |
|
||
global: | ||
debug: true | ||
ignore_ssl_errors: false ##when set to true will ignore invalid SSL errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: "Configuration" | ||
weight: 14 | ||
--- | ||
## Getting started | ||
|
||
This project requires Go to be installed. On OS X with Homebrew you can just run `brew install go`. | ||
|
||
|
||
|
||
|
||
|
||
make a copy of [conf/importer-example.yml](https://github.com/netsage-project/grafana-dashboard-manager/blob/master/conf/importer-example.yml) and name it `conf/importer.yml` You'll need GRAFANA ADMINISTRATIVE privileges to proceed. | ||
|
||
|
||
### Authentication | ||
|
||
|
||
You can use either an Auth Token or username/password credentials. If you configure both then the Token is given priority. | ||
|
||
Watched folders under grafana is a white list of folders that are being managed by the tool. By default only "General" is managed. | ||
|
||
env.output defines where the files will be saved and imported from. | ||
|
||
### Global Flags | ||
|
||
`globals.debug` when set will print a more verbose output (Development In Progress) | ||
`globals.ignore_ssl_errors` when set will disregard any SSL errors and proceed as expected | ||
|
||
|
||
### Building/Running the app | ||
|
||
Running it then should be as simple as: | ||
|
||
```bash | ||
$ make build | ||
$ ./bin/grafana-dashboard-manager | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: "Developer Guide" | ||
weight: 14 | ||
--- | ||
## Making a release | ||
|
||
Install goreleaser. | ||
|
||
```sh | ||
brew install goreleaser/tap/goreleaser | ||
brew reinstall goreleaser` | ||
``` | ||
|
||
export your GITHUB_TOKEN. | ||
|
||
```sh | ||
export GITHUB_TOKEN="secret" | ||
``` | ||
|
||
git tag v0.1.0 | ||
goreleaser release | ||
|
||
|
||
NOTE: CI/CD pipeline should do all this automatically. `make release-snapshot` is used to test the release build process. Once a build is tagged all artifacts should be built automatically and attached to the github release page. | ||
|
||
NOTE: mac binary are not signed so will likely complain. | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,8 @@ | |
title: "Usage Guide" | ||
weight: 14 | ||
--- | ||
## Getting started | ||
|
||
This project requires Go to be installed. On OS X with Homebrew you can just run `brew install go`. | ||
|
||
### Configuring Auth | ||
|
||
make a copy of `conf/importer-example.yml` and name it `conf/importer.yml` You'll need administrative privileges to proceed. | ||
|
||
You can use either an Auth Token or username/password credentials. If you configure both then the Token is given priority. | ||
|
||
Watched folders under grafana is a white list of folders that are being managed by the tool. By default only "General" is managed. | ||
|
||
env.output defines where the files will be saved and imported from. | ||
Every namespace supporting CRUD operations has the functions: list, import, export, clear operating on only the monitored folders. | ||
|
||
### Contexts | ||
|
||
|
@@ -28,30 +17,9 @@ ctx is shorthand for context | |
./bin/grafana-dashboard-manager ctx set -c production -- updates the active config and sets it to the request value. | ||
``` | ||
|
||
### Users | ||
|
||
Only supported with basic auth. Users is the only one where basic auth is given priority. API Auth is not supported, so will try to use basic auth if configured otherwise will warn the user and exit. | ||
|
||
```sh | ||
./bin/grafana-dashboard-manager users list -- Lists all known users | ||
./bin/grafana-dashboard-manager users promote -u [email protected] -- promotes the user to a grafana admin | ||
``` | ||
|
||
|
||
### Running the app | ||
|
||
Running it then should be as simple as: | ||
|
||
```bash | ||
$ make build | ||
$ ./bin/grafana-dashboard-manager | ||
``` | ||
|
||
Every namespace has three functions: list, import, export, clear operating on only the monitored folders. | ||
|
||
#### Dashboards | ||
|
||
Dashboards are imported or exported from _organization_ specified in configuration file otherwise current organitazione user is used. | ||
Dashboards are imported or exported from _organization_ specified in configuration file otherwise current organization user is used. | ||
|
||
All commands can use `dashboards` or `dash` to manage dashboards | ||
|
||
|
@@ -64,8 +32,8 @@ All commands can use `dashboards` or `dash` to manage dashboards | |
|
||
#### DataSources | ||
|
||
DataSources credentials are keyed by the name of the DataSource. See see [config example](https://github.com/netsage-project/grafana-dashboard-manager/blob/master/conf/importer-example.yml). If the datasource JSON doesn't have auth enabled, the credentials are igored. If Credentials are missing, we'll fall back on default credentials if any exist. The password is set as a value for basicAuthPassword in the API payload. | ||
Datasources are imported or exported from _organization_ specified in configuration file otherwise current organitazione user is used. | ||
DataSources credentials are keyed by the name of the DataSource. See see [config example](https://github.com/netsage-project/grafana-dashboard-manager/blob/master/conf/importer-example.yml). If the datasource JSON doesn't have auth enabled, the credentials are ignored. If Credentials are missing, we'll fall back on default credentials if any exist. The password is set as a value for basicAuthPassword in the API payload. | ||
Datasources are imported or exported from _organization_ specified in configuration file otherwise current organization user is used. | ||
|
||
|
||
All commands can use `datasources` or `ds` to manage datasources | ||
|
@@ -84,24 +52,12 @@ Command can use `organizations` or `org` to manage organizations. | |
./bin/grafana-dashboard-manager org list -- Lists all organizations | ||
``` | ||
|
||
## Making a release | ||
|
||
Install goreleaser. | ||
|
||
```sh | ||
brew install goreleaser/tap/goreleaser | ||
brew reinstall goreleaser` | ||
``` | ||
### Users | ||
|
||
export your GITHUB_TOKEN. | ||
Only supported with basic auth. Users is the only one where basic auth is given priority. API Auth is not supported, so will try to use basic auth if configured otherwise will warn the user and exit. | ||
|
||
```sh | ||
export GITHUB_TOKEN="secret" | ||
./bin/grafana-dashboard-manager users list -- Lists all known users | ||
./bin/grafana-dashboard-manager users promote -u [email protected] -- promotes the user to a grafana admin | ||
``` | ||
|
||
git tag v0.1.0 | ||
goreleaser release | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters