You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,23 @@ The reason behind admin rights is that the plugins endpoint returns all plugins
31
31
Then, create a service account token for the newly created service account and set it to the `GRAFANA_TOKEN` env var.
32
32
33
33
## Usage
34
+
The detect-angular-dashboards binary supports two modes of operation. A CLI mode which can be used on demand, as well as a server mode which periodically quries Grafana for the current set of dashboards and generates a JSON response on the `/detections` endpoint with a list of dashboards that were detected to be using Angular. This endpoint can be linked directly with Grafana by leveraging the [Infinity Datasource](https://grafana.com/grafana/plugins/yesoreyeram-infinity-datasource/).
34
35
35
-
### Readable output
36
+
### Server Mode
37
+
> Pass flag `-server` to run the program in server mode. Value must be a valid listen address ex. "0.0.0.0:8080".
38
+
> Pass optional flag `-max-concurrency` to the program to limit the max concurrency when downloading dashboards from Grafana, otherwise default value is used.
39
+
> Pass optional flag `-interval` to the program to set the detection refresh interval when running in server mode, otherwise default value is used.
0 commit comments