Skip to content

Commit

Permalink
PMM-10036 move the setup script to dashboards (#1367)
Browse files Browse the repository at this point in the history
* PMM-10036 move the setup script to dashboards

* PMM-10036 build the assets

* PMM-10036 persist build assets to the repo

* PMM-10036 cleaner entrypoint

* PMM-10036 bump up version
  • Loading branch information
Alex Tymchuk authored Jul 29, 2022
1 parent 4f85f1b commit ce42828
Show file tree
Hide file tree
Showing 34 changed files with 27,997 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,19 @@ These dashboards are part of [Percona Monitoring and Management](https://www.per

See a live demonstration at <https://pmmdemo.percona.com>.

## Reusing dashboards outside of PMM

Dashboards can be converted to be used on a dedicated prometheus instance.

Example:
misc/convert-dash-from-PMM.py dashboards/Disk_Details.json

- misc/convert-dash-from-PMM.py dashboards/Disk_Details.json

## AWS Setup page

Plase see the relevant [README.md](./setup-page/README.md).

## Contributing

We welcome contributions to this repository! Detailed information in [CONTRIBUTING.md](CONTRIBUTING.md)

Expand Down
21 changes: 21 additions & 0 deletions setup-page/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"jsx-a11y"
],
"overrides": [
{
"files": ["*.jsx", "*.js"],
"rules": {
"import/prefer-default-export": "off",
"react/prop-types": "off"
}
}
]
}
23 changes: 23 additions & 0 deletions setup-page/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
7 changes: 7 additions & 0 deletions setup-page/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 100
}
2 changes: 2 additions & 0 deletions setup-page/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
setup-build:
docker run --rm --name aws-setup-build --entrypoint /app/entrypoint.sh -w /app -v $(PWD):/app centos:7
22 changes: 22 additions & 0 deletions setup-page/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# AWS Setup Page

This app is a setup page which runs when you launch a PMM Server instance on AWS. Please open a https://pmm-server/setup
in the browser to test the page. We whip build artifacts in the `./build` folder, to rebuild please run `make build-setup`
in this directory.

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

### `npm test`

Launches the test runner in the interactive watch mode.

### `npm run build`

Builds the app for production to the `build` folder.
14 changes: 14 additions & 0 deletions setup-page/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"files": {
"main.css": "/setup/static/css/main.fc23d837.css",
"main.js": "/setup/static/js/main.bd875d74.js",
"static/media/pmm-logo.png": "/setup/static/media/pmm-logo.74da77ed1cf4dde3cf0e.png",
"index.html": "/setup/index.html",
"main.fc23d837.css.map": "/setup/static/css/main.fc23d837.css.map",
"main.bd875d74.js.map": "/setup/static/js/main.bd875d74.js.map"
},
"entrypoints": [
"static/css/main.fc23d837.css",
"static/js/main.bd875d74.js"
]
}
Binary file added setup-page/build/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions setup-page/build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/setup/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="PMM Server Installation Wizard"/><link rel="manifest" href="/setup/manifest.json"/><title>PMM Server Installation</title><script defer="defer" src="/setup/static/js/main.bd875d74.js"></script><link href="/setup/static/css/main.fc23d837.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
15 changes: 15 additions & 0 deletions setup-page/build/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
2 changes: 2 additions & 0 deletions setup-page/build/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
2 changes: 2 additions & 0 deletions setup-page/build/static/css/main.fc23d837.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions setup-page/build/static/css/main.fc23d837.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions setup-page/build/static/js/main.bd875d74.js

Large diffs are not rendered by default.

Loading

0 comments on commit ce42828

Please sign in to comment.