featurebase/lattice
pokeeffe-molecula a1fc6d04a1 introduce performance counters and system table fanout, plus refactor metrics (#2363)
* performance counters

* first cut of perf counters and system table fanout and a wire protocol
* significantly refactored prometheus support; removed statsd and exprvar

* removed node_id

* put dax subquery test back

* Change Translator.TranslateFieldIDs method to take a dax.TableKeyer

There are a bunch of other calls to the Translator interface methods
with currently take an `index string`, and those need to be converted to
dax.TableKeyer as well. But I need to review each call, because in at
least one place I noticed one being called with `result.Index` instead
of with the qtbl available. And I don't yet know how those could be
different.

Co-authored-by: Travis Turner <travis@molecula.com>
(cherry picked from commit 7f6ea0e6e5)
2023-01-19 21:35:02 +00:00
..
public merge: featurebase merge updates for 2022-10-28 (#2188) 2022-10-28 13:08:23 -04:00
src fixes FB-1873 (#2400) 2023-01-12 00:49:58 +00:00
.gitignore Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
Caddyfile Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
Dockerfile Updated Dockerfiles for lattice to use a publicly available container in the GitHub container registry 2022-09-08 11:05:43 -07:00
Makefile Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
package.json FB-1339 - UI - updated lodash version to fix gitlab vulnerability 2022-09-30 11:24:43 -07:00
README.md introduce performance counters and system table fanout, plus refactor metrics (#2363) 2023-01-19 21:35:02 +00:00
tsconfig.json Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
tslint.json Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
yarn.lock merge: featurebase merge updates for 2022-10-28 (#2188) 2022-10-28 13:08:23 -04:00

Connecting to a standalone Pilosa instance

Lattice can run independently (with e.g. yarn start; see below), connecting to any Pilosa instance. Pilosa must be started with the allowed-origins configuration parameter set to communicate with the UI.

CLI: pilosa server --handler.allowed-origins http://localhost:3000

You will need to update the lattice.config.js file and set the hostname and port of your pilosa server, otherwise it will use the browser url. The default pilosa server is localhost:10101

If you will be consistently working in the repo, it may be useful to locally ignore changes to this file to prevent accidental commits by using: git update-index --assume-unchanged src/lattice.config.js

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

Embedding Lattice within Pilosa

Lattice can be embedded within the Pilosa binary, so the UI is fully accessible directly from the server, reducing operational complexity.

If additional build dependencies yarn (brew install yarn and brew upgrade yarn perhaps) and statik (make install-statik) are available on your system, running make generate-statik before make install should produce a Pilosa binary with Lattice embedded. For up to date instructions, check the Featurebase README.