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
returnhaystack.EmptyGrid(), fmt.Errorf("id is not a Ref")
321
+
}
322
+
tz, tzIsStr:=point.Get("tz").(haystack.Str)
323
+
if!tzIsStr {
324
+
returnhaystack.EmptyGrid(), fmt.Errorf("tz is not a Str: %v", id)
325
+
}
326
+
327
+
// Must convert input date range to the point's timezone.
328
+
// See https://github.com/skyfoundry/haystack-java/blob/30380dbbe4b5d9be8eb3f400195b0cdcdcc67b95/src/main/java/org/projecthaystack/server/HServer.java#L328
- The username and password. It is best practice to create a dedicated user for the Grafana integration.
29
29
30
30
Once complete, select `Save & Test`. If you get a green check mark, the connection was successful!
@@ -77,6 +77,18 @@ are combined with commas, (`red,blue`), but this may be customized using the
77
77
78
78
[Standard grafana alerting](https://grafana.com/docs/grafana/latest/alerting/) is supported by this data source.
79
79
80
+
## Haystack Server Configuration
81
+
82
+
### NHaystack
83
+
84
+
Follow the setup instructions in the [`nhaystack` README](https://github.com/ci-richard-mcelhinney/nhaystack#usage).
85
+
86
+
Currently only `Basic Auth` connectivity to `nhaystack` is supported. Basic auth should only be enabled when Niagara web traffic is encrypted using HTTPS.
87
+
88
+
To add basic auth support, click and drag `baja/AuthenticationSchemes/WebServicesSchemes/HTTPBasicScheme` from the Palette to `Config/AuthenticationService/AuthenticationSchemes/` in the Nav pane. Then go to `Config/UserService/` in the Nav pane, create a user, and set the `Authentication Scheme Name` slot to `HTTPBasicScheme`. The user must also have an `Admin` role in order to access nhaystack endpoints.
89
+
90
+
The root Haystack API URL is dependent on the name given to the nhaystack service: `http://<host>/<name_of_nhaystack_service>/`. This service name defaults to `haystack`, so unless renamed the URL is `http://<host>/haystack/`.
91
+
80
92
## Support
81
93
82
94
You can view the code, contribute, or request support on this project's
0 commit comments