Trying to install this extension on a Directus docker instance running on K8S #3
Unanswered
marcelhorner
asked this question in
Q&A
Replies: 1 comment
-
|
I've designed this package to work when installing into a "managed" directus project, meaning it has to be installed into a package.json that is in the working directory of your directus instance. The way I create my directus project is: Then interact with directus through the CLI If you install the extension this way, it will be automatically detected and loaded. Note that I do NOT use the directus docker base image. I use the node base image instead and build my own image containing all the files and extensions I need. (Which is why I developed a bunch of devops related extensions). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am trying to install this extension on a Directus docker instance running on a K8S cluster.
I've tried to connect to the running pod and execute the install command:
npm install directus-extension-prometheusCommand executed without errors:
added 4 packages, removed 2 packages, and audited 5 packages in 11sBut when accessing "Settings\Extensions", on Directus UI, I can't see any extension.
Hitting /metrics shows this:
{ "errors": [ { "message": "Route /metrics doesn't exist.", "extensions": { "code": "ROUTE_NOT_FOUND", "path": "/metrics" } } ] }My question is, should I be able to get metrics at \metrics right after running the npm install command?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions