Giter Site home page Giter Site logo

dashpub's Introduction

Dashboard Publisher

EXPERIMENTAL tool that creates a Next.js project for a given list of Splunk dashboards, optionally making the dashboards accessible to anyone using Vercel. Search results are proxied through serverless functions, which handle authentication and efficient CDN caching.

Prerequisites

  • Node.js 12+, NPM, Yarn
  • Vercel CLI if you want to publish on Vercel

Get started

  1. Install dashpub CLI globally
$ npm i -g @splunk/dashpub
  1. Initialize a new project
$ dashpub init

Follow the instructions to create your dashboard project.


Copyright 2020 Splunk Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

dashpub's People

Contributors

dependabot[bot] avatar ryanwoconnor avatar ziegfried avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dashpub's Issues

npm dependencies missing?

Hi, currently when installing this specific dependencies are not anymore available in the npm registry?

npm ERR! 404 Not Found - GET https://registry.npmjs.org/@splunk/visualization-editors/-/visualization-editors-18.2.1.tgz npm ERR! 404 npm ERR! 404 '@splunk/[email protected]' is not in the npm registry.

same with yarn
error An unexpected error occurred: "https://registry.yarnpkg.com/@splunk%2fvisualization-editors: Not found".

Instructions and dependencies for running the app on a kubernetes cluster

Hi,

We have tested dashpub from the oct23 branch (should it be merged to master?) on a classic Linux VM. Would it also be possible running it on a kubernetes cluster? We have a cluster available and can use argoCD to point to a app manifest. Would be great if someone can make instructions on this approach.

Thanks for a great project.

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined in oct-23 branch when doing dashpub update

Hi,

First of all, just to clarify what our goal is:
We want to set in package.json which app, title and app the dashpub app should load. This is a first step to containerizing it and set these parameters through environment variables.

When doing dashpub update in the oct-23 branch we see that the generateDashboards/generate function is broken.

We did the following:

  1. Installed from branch oct-23.
  2. Built a working dashboard using dashpub init. Tested with yarn dev.
  3. Cloned project directory and edited package.json to change to a different dashboard.
  4. dashpub update. Resulted in the following errors:
TypeError: generateDashboards is not a function
    at main (/home/user/node_modules/@splunk/dashpub/cli/cli.js:40:15)
  1. We work around this by uncommenting this line:
    //generateDashboards,
  2. The next error is:
Generating undefined dashboards...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (node:internal/validators:162:11)
    at Object.join (node:path:1175:7)
    at generate (/home/user/node_modules/@splunk/dashpub/cli/builddash.js:93:23)
    at generateDashboards (/home/user/node_modules/@splunk/dashpub/cli/init.js:50:11)
    at main (/home/user/node_modules/@splunk/dashpub/cli/cli.js:40:15) {
  code: 'ERR_INVALID_ARG_TYPE'
}
  1. Which is worked around by hardcoding the app name here:
    await generateDashboards(project.dashboards, splunkdInfo, process.cwd());
  2. We changed this to the following, which resulted in dashpub update working again:
        await generateDashboards('ourappname', project.dashboards, splunkdInfo, process.cwd());

Empty Queries Causing Delays

When working in the source editor, if you define a query as "" it will run a very lengthy search. Example:

"annotation": { "type": "ds.search", "options": { "query": "" } },

Should probably filter out empty queries.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.