diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml
index 2f8f56d2..2553984c 100644
--- a/.github/workflows/development.yml
+++ b/.github/workflows/development.yml
@@ -21,8 +21,8 @@ jobs:
- name: Set Version
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Install Global Dependencies
@@ -98,26 +98,26 @@ jobs:
- name: Add GOBIN to PATH
run: |
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Set Linux Build Flags
if: matrix.platform == 'linux'
run: |
- echo ::set-env name=BUILD_FLAGS::'-extldflags -static'
- echo ::set-env name=XGO_TAGS::'netgo,osusergo,linux,sqlite_omit_load_extension'
+ echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV
+ echo "XGO_TAGS=netgo osusergo linux sqlite_omit_load_extension" >> $GITHUB_ENV
shell: bash
- name: Set Darwin Build Flags
if: matrix.platform == 'darwin'
- run: echo ::set-env name=XGO_TAGS::'netgo,osusergo,darwin,sqlite_omit_load_extension'
+ run: echo "XGO_TAGS=netgo osusergo darwin sqlite_omit_load_extension" >> $GITHUB_ENV
shell: bash
- name: Set Windows Build Flags
if: matrix.platform == 'windows'
run: |
- echo ::set-env name=BUILD_FLAGS::'-extldflags -static'
- echo ::set-env name=XGO_TAGS::'netgo,osusergo,sqlite_omit_load_extension'
+ echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV
+ echo "XGO_TAGS=netgo osusergo sqlite_omit_load_extension" >> $GITHUB_ENV
shell: bash
- name: Build ${{ matrix.platform }}/${{ matrix.arch }}
@@ -146,7 +146,7 @@ jobs:
chmod +x statping
tar -czvf statping-linux-${{ matrix.arch }}.tar.gz statping
rm -rf statping
- echo ::set-env name=compressed::statping-linux-${{ matrix.arch }}.tar.gz
+ echo "compressed=statping-linux-${{ matrix.arch }}.tar.gz" >> $GITHUB_ENV
- name: Compress Windows Builds
if: matrix.platform == 'windows'
@@ -156,7 +156,7 @@ jobs:
chmod +x statping.exe
zip statping-windows-${{ matrix.arch }}.zip statping.exe
rm -rf statping.exe
- echo ::set-env name=compressed::statping-windows-${{ matrix.arch }}.zip
+ echo "compressed=statping-windows-${{ matrix.arch }}.zip" >> $GITHUB_ENV
- name: Compress Darwin Builds
if: matrix.platform == 'darwin'
@@ -166,7 +166,7 @@ jobs:
chmod +x statping
tar -czvf statping-darwin-${{ matrix.arch }}.tar.gz statping
rm -rf statping
- echo ::set-env name=compressed::statping-darwin-${{ matrix.arch }}.tar.gz
+ echo "compressed=statping-darwin-${{ matrix.arch }}.tar.gz" >> $GITHUB_ENV
- name: Upload Compiled Statping Binary
uses: actions/upload-artifact@v1
@@ -227,9 +227,9 @@ jobs:
- name: Setting ENV's
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Download Compiled Frontend (rice-box.go)
@@ -305,9 +305,9 @@ jobs:
- name: Setting ENV's
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Download Compiled Frontend (rice-box.go)
@@ -359,9 +359,9 @@ jobs:
- name: Setting ENV's
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Download Compiled Frontend (rice-box.go)
@@ -416,9 +416,9 @@ jobs:
- name: Setting ENV's
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Download Compiled Frontend (rice-box.go)
@@ -456,11 +456,17 @@ jobs:
uses: actions/checkout@v2
- name: Setting ENV's
- run: echo ::set-env name=VERSION::$(cat version.txt)
+ run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v1
+
- name: Set up Docker Buildx
- uses: crazy-max/ghaction-docker-buildx@v3
+ uses: docker/setup-buildx-action@v1
+ id: buildx
+ with:
+ install: true
- name: Docker Login
env:
@@ -498,7 +504,7 @@ jobs:
# organization: statping
#
# - name: Setting ENV's
-# run: echo ::set-env name=VERSION::$(cat version.txt)
+# run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
# shell: bash
#
# - name: Sentry Release
diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index b16c68a2..c7ca3ce4 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -21,8 +21,8 @@ jobs:
- name: Set Version
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Install Global Dependencies
@@ -98,26 +98,26 @@ jobs:
- name: Add GOBIN to PATH
run: |
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Set Linux Build Flags
if: matrix.platform == 'linux'
run: |
- echo ::set-env name=BUILD_FLAGS::'-extldflags -static'
- echo ::set-env name=XGO_TAGS::'netgo,osusergo,linux,sqlite_omit_load_extension'
+ echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV
+ echo "XGO_TAGS=netgo osusergo linux sqlite_omit_load_extension" >> $GITHUB_ENV
shell: bash
- name: Set Darwin Build Flags
if: matrix.platform == 'darwin'
- run: echo ::set-env name=XGO_TAGS::'netgo,osusergo,darwin,sqlite_omit_load_extension'
+ run: echo "XGO_TAGS=netgo osusergo darwin sqlite_omit_load_extension" >> $GITHUB_ENV
shell: bash
- name: Set Windows Build Flags
if: matrix.platform == 'windows'
run: |
- echo ::set-env name=BUILD_FLAGS::'-extldflags -static'
- echo ::set-env name=XGO_TAGS::'netgo,osusergo,sqlite_omit_load_extension'
+ echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV
+ echo "XGO_TAGS=netgo osusergo sqlite_omit_load_extension" >> $GITHUB_ENV
shell: bash
- name: Build ${{ matrix.platform }}/${{ matrix.arch }}
@@ -146,7 +146,7 @@ jobs:
chmod +x statping
tar -czvf statping-linux-${{ matrix.arch }}.tar.gz statping
rm -rf statping
- echo ::set-env name=compressed::statping-linux-${{ matrix.arch }}.tar.gz
+ echo "compressed=statping-linux-${{ matrix.arch }}.tar.gz" >> $GITHUB_ENV
- name: Compress Windows Builds
if: matrix.platform == 'windows'
@@ -156,7 +156,7 @@ jobs:
chmod +x statping.exe
zip statping-windows-${{ matrix.arch }}.zip statping.exe
rm -rf statping.exe
- echo ::set-env name=compressed::statping-windows-${{ matrix.arch }}.zip
+ echo "compressed=statping-windows-${{ matrix.arch }}.zip" >> $GITHUB_ENV
- name: Compress Darwin Builds
if: matrix.platform == 'darwin'
@@ -166,7 +166,7 @@ jobs:
chmod +x statping
tar -czvf statping-darwin-${{ matrix.arch }}.tar.gz statping
rm -rf statping
- echo ::set-env name=compressed::statping-darwin-${{ matrix.arch }}.tar.gz
+ echo "compressed=statping-darwin-${{ matrix.arch }}.tar.gz" >> $GITHUB_ENV
- name: Upload Compiled Statping Binary
uses: actions/upload-artifact@v1
@@ -227,9 +227,9 @@ jobs:
- name: Setting ENV's
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Download Compiled Frontend (rice-box.go)
@@ -305,9 +305,9 @@ jobs:
- name: Setting ENV's
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Download Compiled Frontend (rice-box.go)
@@ -359,9 +359,9 @@ jobs:
- name: Setting ENV's
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Download Compiled Frontend (rice-box.go)
@@ -416,9 +416,9 @@ jobs:
- name: Setting ENV's
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Download Compiled Frontend (rice-box.go)
@@ -456,11 +456,17 @@ jobs:
uses: actions/checkout@v2
- name: Setting ENV's
- run: echo ::set-env name=VERSION::$(cat version.txt)
+ run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v1
+
- name: Set up Docker Buildx
- uses: crazy-max/ghaction-docker-buildx@v3
+ uses: docker/setup-buildx-action@v1
+ id: buildx
+ with:
+ install: true
- name: Docker Login
env:
@@ -498,7 +504,7 @@ jobs:
# organization: statping
#
# - name: Setting ENV's
-# run: echo ::set-env name=VERSION::$(cat version.txt)
+# run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
# shell: bash
#
# - name: Sentry Release
@@ -512,7 +518,7 @@ jobs:
uses: actions/checkout@v2
- name: Setting ENV's
- run: echo ::set-env name=VERSION::$(cat version.txt)
+ run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Update Homebrew Package
@@ -529,7 +535,7 @@ jobs:
uses: actions/checkout@v2
- name: Setting ENV's
- run: echo ::set-env name=VERSION::$(cat version.txt)
+ run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Slack Notification
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index a4d46946..02777270 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -28,8 +28,8 @@ jobs:
- name: Add GOBIN to PATH
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Install Global Dependencies
@@ -96,9 +96,9 @@ jobs:
- name: Setting ENV's
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Download Compiled Frontend (rice-box.go)
@@ -135,13 +135,13 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
- go-version: '1.14.2'
+ go-version: 1.15.x
- name: Setting ENV's
run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
+ echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH
+ echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Download Compiled Frontend (rice-box.go)
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 00000000..c23774cd
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,17 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "Launch",
+ "type": "go",
+ "request": "launch",
+ "mode": "auto",
+ "program": "${fileDirname}",
+ "env": {},
+ "args": []
+ }
+ ]
+}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7714e6d3..4f0f1685 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,19 @@
+# 0.90.75 (12-20-2020)
+- Removed favicons and PNG files from assets, now using base64 images
+- Cleaned up some issues with UI
+
+# 0.90.74 (12-18-2020)
+- Fixed issue with favicon/manifest.json throwing 404 errors
+- Modified language go:generate script to slowdown for 429 errors
+- Removed Sentry error logging functionality
+
+# 0.90.73 (12-15-2020)
+- Removed complexity in code for http server
+- Removed internal cache functionality (not useful, needs refactor)
+- Merged PR https://github.com/statping/statping/pull/909
+- Merged PR https://github.com/statping/statping/pull/880
+- Merged PR https://github.com/statping/statping/pull/859
+
# 0.90.72 (10-28-2020)
- Fixed issue with graphs becoming stuck on reload
diff --git a/Makefile b/Makefile
index 571873b9..fbd195f9 100644
--- a/Makefile
+++ b/Makefile
@@ -146,10 +146,7 @@ frontend-build:
cd frontend && yarn && yarn build
@cp -r frontend/dist source/
@cp -r frontend/src/assets/scss source/dist/
- @cp frontend/public/favicon.ico source/dist/
@cp frontend/public/robots.txt source/dist/
- @cp frontend/public/banner.png source/dist/
- @cp -r frontend/public/favicon source/dist/
@echo "Frontend build complete at ./source/dist"
yarn:
@@ -302,8 +299,8 @@ dockerhub:
docker push statping/statping
docker-build-dev:
- docker build --build-arg VERSION=${VERSION} -t hunterlong/statping:latest --no-cache -f Dockerfile .
- docker tag hunterlong/statping:dev hunterlong/statping:dev-v${VERSION}
+ docker build --build-arg VERSION=${VERSION} -t statping/statping:latest --no-cache -f Dockerfile .
+ docker tag statping/statping:latest statping/statping:dev-v${VERSION}
post-release: frontend-build upload_to_s3 publish-homebrew dockerhub
diff --git a/dev/postman.json b/dev/postman.json
index f21fd2b1..4aaf42be 100644
--- a/dev/postman.json
+++ b/dev/postman.json
@@ -343,6 +343,146 @@
}
]
},
+ {
+ "name": "View Configuration",
+ "event": [
+ {
+ "listen": "test",
+ "script": {
+ "id": "557dd7ef-fa5a-4f3d-98b3-4bca5e3ce154",
+ "exec": [
+ "pm.test(\"Response is ok\", function () {",
+ " pm.response.to.have.status(200);",
+ "});"
+ ],
+ "type": "text/javascript"
+ }
+ }
+ ],
+ "request": {
+ "auth": {
+ "type": "bearer",
+ "bearer": [
+ {
+ "key": "token",
+ "value": "{{api_key}}",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{endpoint}}/api/settings/configs",
+ "host": [
+ "{{endpoint}}"
+ ],
+ "path": [
+ "api",
+ "settings",
+ "configs"
+ ]
+ },
+ "description": "This endpoint will return the config.yml configuration without database credentials."
+ },
+ "response": [
+ {
+ "name": "View Configuration",
+ "originalRequest": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{endpoint}}/api/settings/configs",
+ "host": [
+ "{{endpoint}}"
+ ],
+ "path": [
+ "api",
+ "settings",
+ "configs"
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "plain",
+ "header": [
+ {
+ "key": "Date",
+ "value": "Fri, 18 Sep 2020 03:41:34 GMT"
+ },
+ {
+ "key": "Content-Length",
+ "value": "256"
+ },
+ {
+ "key": "Content-Type",
+ "value": "text/plain; charset=utf-8"
+ },
+ {
+ "key": "Connection",
+ "value": "close"
+ }
+ ],
+ "cookie": [],
+ "body": "api_secret: demoapisecret123\nlanguage: en\nallow_reports: true\nlocation: /root/go/src/github.com/statping/statping\ndisable_http: false\ndemo_mode: false\ndisable_logs: false\nuse_assets: false\nsample_data: true\nuse_cdn: false\ndisable_colors: false\n"
+ }
+ ]
+ },
+ {
+ "name": "Update Configuration",
+ "event": [
+ {
+ "listen": "test",
+ "script": {
+ "id": "5074172f-5689-4471-aced-50b0a0b6b2b4",
+ "exec": [
+ "pm.test(\"Response is ok\", function () {",
+ " pm.response.to.have.status(200);",
+ "});"
+ ],
+ "type": "text/javascript"
+ }
+ }
+ ],
+ "protocolProfileBehavior": {
+ "disableBodyPruning": true
+ },
+ "request": {
+ "auth": {
+ "type": "bearer",
+ "bearer": [
+ {
+ "key": "token",
+ "value": "{{api_key}}",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": "api_secret: demoapisecret123\nlanguage: en\nallow_reports: true\nlocation: /root/go/src/github.com/statping/statping\ndisable_http: false\ndemo_mode: false\ndisable_logs: false\nuse_assets: false\nsample_data: true\nuse_cdn: false\ndisable_colors: false\n",
+ "options": {
+ "raw": {}
+ }
+ },
+ "url": {
+ "raw": "{{endpoint}}/api/settings/configs",
+ "host": [
+ "{{endpoint}}"
+ ],
+ "path": [
+ "api",
+ "settings",
+ "configs"
+ ]
+ },
+ "description": "This endpoint will update the config.yml configuration."
+ },
+ "response": []
+ },
{
"name": "Logs Last Line",
"event": [
@@ -567,166 +707,6 @@
}
]
},
- {
- "name": "Clear Cache",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "dbabc164-5030-441d-90f7-b29c7fe794df",
- "exec": [
- "pm.test(\"Response is ok\", function () {",
- " pm.response.to.have.status(200);",
- "});"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "auth": {
- "type": "bearer",
- "bearer": [
- {
- "key": "token",
- "value": "{{api_key}}",
- "type": "string"
- }
- ]
- },
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{endpoint}}/api/clear_cache",
- "host": [
- "{{endpoint}}"
- ],
- "path": [
- "api",
- "clear_cache"
- ]
- },
- "description": "This endpoint will clear all the cache files in your Statping instance. This includes chart data and service views."
- },
- "response": [
- {
- "name": "Clear Cache",
- "originalRequest": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{endpoint}}/api/clear_cache",
- "host": [
- "{{endpoint}}"
- ],
- "path": [
- "api",
- "clear_cache"
- ]
- }
- },
- "status": "OK",
- "code": 200,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Length",
- "value": "21"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Date",
- "value": "Sat, 02 May 2020 01:06:43 GMT"
- }
- ],
- "cookie": [],
- "body": "{\n \"status\": \"success\"\n}"
- }
- ]
- },
- {
- "name": "List Cache",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "992ce59d-3cce-43f1-9c3d-895c55a3e0a1",
- "exec": [
- "pm.test(\"Response is ok\", function () {",
- " pm.response.to.have.status(200);",
- "});"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "auth": {
- "type": "bearer",
- "bearer": [
- {
- "key": "token",
- "value": "{{api_key}}",
- "type": "string"
- }
- ]
- },
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{endpoint}}/api/cache",
- "host": [
- "{{endpoint}}"
- ],
- "path": [
- "api",
- "cache"
- ]
- },
- "description": "This endpoint will return all cached API endpoints."
- },
- "response": [
- {
- "name": "List Cache",
- "originalRequest": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{endpoint}}/api/cache",
- "host": [
- "{{endpoint}}"
- ],
- "path": [
- "api",
- "cache"
- ]
- }
- },
- "status": "OK",
- "code": 200,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Length",
- "value": "1631"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Date",
- "value": "Sat, 02 May 2020 01:06:32 GMT"
- }
- ],
- "cookie": [],
- "body": "[\n {\n \"url\": \"/api/services/1/failure_data?start=1585789587&end=1588381587&group=24h&fill=true\",\n \"expiration\": \"2020-05-02T01:06:57.511702322Z\",\n \"size\": 1541\n },\n {\n \"url\": \"/api/services/1/hits_data?start=1588127787&end=1588381587&group=5m&fill=false\",\n \"expiration\": \"2020-05-02T01:06:57.808458203Z\",\n \"size\": 45223\n },\n {\n \"url\": \"/api/services/2/hits_data?start=1588127787&end=1588381587&group=5m&fill=false\",\n \"expiration\": \"2020-05-02T01:06:57.873815975Z\",\n \"size\": 45224\n },\n {\n \"url\": \"/api/services/3/hits_data?start=1588127787&end=1588381587&group=5m&fill=false\",\n \"expiration\": \"2020-05-02T01:06:57.909984136Z\",\n \"size\": 45088\n },\n {\n \"url\": \"/api/services/2/failure_data?start=1585789587&end=1588381587&group=24h&fill=true\",\n \"expiration\": \"2020-05-02T01:06:57.48592429Z\",\n \"size\": 1538\n },\n {\n \"url\": \"/api/services/4/failure_data?start=1585789587&end=1588381587&group=24h&fill=true\",\n \"expiration\": \"2020-05-02T01:06:57.493425593Z\",\n \"size\": 1538\n },\n {\n \"url\": \"/api/services/3/failure_data?start=1585789587&end=1588381587&group=24h&fill=true\",\n \"expiration\": \"2020-05-02T01:06:57.493554858Z\",\n \"size\": 1538\n },\n {\n \"url\": \"/api/services/5/failure_data?start=1585789587&end=1588381587&group=24h&fill=true\",\n \"expiration\": \"2020-05-02T01:06:57.511424891Z\",\n \"size\": 1538\n },\n {\n \"url\": \"/api/services/5/hits_data?start=1588127788&end=1588381588&group=5m&fill=false\",\n \"expiration\": \"2020-05-02T01:06:58.377413844Z\",\n \"size\": 45193\n },\n {\n \"url\": \"/api/services/4/hits_data?start=1588127788&end=1588381588&group=5m&fill=false\",\n \"expiration\": \"2020-05-02T01:06:58.380229692Z\",\n \"size\": 45198\n }\n]"
- }
- ]
- },
{
"name": "Shields.io Badge",
"event": [
@@ -1801,7 +1781,10 @@
],
"body": {
"mode": "raw",
- "raw": "{\n \"name\": \"New Service\",\n \"domain\": \"https://statping.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 30,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 30,\n \"order_id\": 0\n}"
+ "raw": "{\n \"name\": \"New Service\",\n \"domain\": \"https://statping.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 30,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 30,\n \"order_id\": 0\n}",
+ "options": {
+ "raw": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/services",
@@ -2069,7 +2052,10 @@
"header": [],
"body": {
"mode": "raw",
- "raw": ""
+ "raw": "",
+ "options": {
+ "raw": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/services/{{service_id}}/failures",
@@ -2492,7 +2478,10 @@
],
"body": {
"mode": "raw",
- "raw": "{\n\t\"message\": \"Website is loading very slowly, looking into this.\",\n\t\"type\": \"Investigating\"\n}"
+ "raw": "{\n\t\"message\": \"Website is loading very slowly, looking into this.\",\n\t\"type\": \"Investigating\"\n}",
+ "options": {
+ "raw": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/incidents/2/updates",
@@ -2654,7 +2643,10 @@
],
"body": {
"mode": "raw",
- "raw": "{\n\t\"title\": \"Updated Downtime\",\n\t\"description\": \"This is an update for an incident\"\n}"
+ "raw": "{\n\t\"title\": \"Updated Downtime\",\n\t\"description\": \"This is an update for an incident\"\n}",
+ "options": {
+ "raw": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/incidents/1",
@@ -3105,7 +3097,10 @@
],
"body": {
"mode": "raw",
- "raw": "{\n \"name\": \"New Group\",\n \"public\": true\n}"
+ "raw": "{\n \"name\": \"New Group\",\n \"public\": true\n}",
+ "options": {
+ "raw": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/groups",
@@ -3261,7 +3256,10 @@
"header": [],
"body": {
"mode": "raw",
- "raw": ""
+ "raw": "",
+ "options": {
+ "raw": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/groups/{{group_id}}",
@@ -3541,7 +3539,10 @@
"value": "{{token}}",
"type": "text"
}
- ]
+ ],
+ "options": {
+ "urlencoded": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/users/token",
@@ -3787,7 +3788,10 @@
],
"body": {
"mode": "raw",
- "raw": "{\n \"username\": \"adminuser2\",\n \"email\": \"info@adminemail.com\",\n \"password\": \"passsword123\",\n \"admin\": true\n}"
+ "raw": "{\n \"username\": \"adminuser2\",\n \"email\": \"info@adminemail.com\",\n \"password\": \"passsword123\",\n \"admin\": true\n}",
+ "options": {
+ "raw": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/users",
@@ -3990,7 +3994,10 @@
],
"body": {
"mode": "raw",
- "raw": "{\n \"username\": \"adminupdated\",\n \"email\": \"info@email.com\",\n \"password\": \"password12345\",\n \"admin\": true\n}"
+ "raw": "{\n \"username\": \"adminupdated\",\n \"email\": \"info@email.com\",\n \"password\": \"password12345\",\n \"admin\": true\n}",
+ "options": {
+ "raw": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/users/{{user_id}}",
@@ -4514,7 +4521,7 @@
],
"body": {
"mode": "raw",
- "raw": "{\n \"method\": \"success\",\n \"notifier\": {\n \"enabled\": false,\n \"limits\": 60,\n \"method\": \"slack\",\n \"host\": \"https://webhooksurl.slack.com/***\",\n \"success_data\": \"{\\n \\\"blocks\\\": [{\\n \\\"type\\\": \\\"section\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"The service {{.Service.Name}} is back online.\\\"\\n }\\n }, {\\n \\\"type\\\": \\\"actions\\\",\\n \\\"elements\\\": [{\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"View Service\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"style\\\": \\\"primary\\\",\\n \\\"url\\\": \\\"{{.Core.Domain}}/service/{{.Service.Id}}\\\"\\n }, {\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"Go to Statping\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"url\\\": \\\"{{.Core.Domain}}\\\"\\n }]\\n }]\\n}\",\n \"failure_data\": \"{\\n \\\"blocks\\\": [{\\n \\\"type\\\": \\\"section\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\":warning: The service {{.Service.Name}} is currently offline! :warning:\\\"\\n }\\n }, {\\n \\\"type\\\": \\\"divider\\\"\\n }, {\\n \\\"type\\\": \\\"section\\\",\\n \\\"fields\\\": [{\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Service:*\\\\n{{.Service.Name}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*URL:*\\\\n{{.Service.Domain}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Status Code:*\\\\n{{.Service.LastStatusCode}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*When:*\\\\n{{.Failure.CreatedAt}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Downtime:*\\\\n{{.Service.Downtime.Human}}\\\"\\n }, {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"*Error:*\\\\n{{.Failure.Issue}}\\\"\\n }]\\n }, {\\n \\\"type\\\": \\\"divider\\\"\\n }, {\\n \\\"type\\\": \\\"actions\\\",\\n \\\"elements\\\": [{\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"View Offline Service\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"style\\\": \\\"danger\\\",\\n \\\"url\\\": \\\"{{.Core.Domain}}/service/{{.Service.Id}}\\\"\\n }, {\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"Go to Statping\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"url\\\": \\\"{{.Core.Domain}}\\\"\\n }]\\n }]\\n}\"\n }\n}",
+ "raw": "{\n \"method\": \"success\",\n \"notifier\": {\n \"enabled\": false,\n \"limits\": 60,\n \"method\": \"slack\",\n \"host\": \"https://hooks.slack.com/services/TTJ1B49DP/XBNU09O9M/9uI2123SUnYBuGcxLopZomz9H\",\n \"success_data\": \"{\\n \\\"blocks\\\": [{\\n \\\"type\\\": \\\"section\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"The service {{.Service.Name}} is back online.\\\"\\n }\\n }, {\\n \\\"type\\\": \\\"actions\\\",\\n \\\"elements\\\": [{\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"View Service\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"style\\\": \\\"primary\\\",\\n \\\"url\\\": \\\"{{.Core.Domain}}/service/{{.Service.Id}}\\\"\\n }, {\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"Go to Statping\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"url\\\": \\\"{{.Core.Domain}}\\\"\\n }]\\n }]\\n}\",\n \"failure_data\": \"{\\n \\\"blocks\\\": [{\\n \\\"type\\\": \\\"section\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\":warning: The service {{.Service.Name}} is currently offline! :warning:\\\"\\n }\\n }, {\\n \\\"type\\\": \\\"divider\\\"\\n }, {\\n \\\"type\\\": \\\"section\\\",\\n \\\"fields\\\": [{\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Service:*\\\\n{{.Service.Name}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*URL:*\\\\n{{.Service.Domain}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Status Code:*\\\\n{{.Service.LastStatusCode}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*When:*\\\\n{{.Failure.CreatedAt}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Downtime:*\\\\n{{.Service.Downtime.Human}}\\\"\\n }, {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"*Error:*\\\\n{{.Failure.Issue}}\\\"\\n }]\\n }, {\\n \\\"type\\\": \\\"divider\\\"\\n }, {\\n \\\"type\\\": \\\"actions\\\",\\n \\\"elements\\\": [{\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"View Offline Service\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"style\\\": \\\"danger\\\",\\n \\\"url\\\": \\\"{{.Core.Domain}}/service/{{.Service.Id}}\\\"\\n }, {\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"Go to Statping\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"url\\\": \\\"{{.Core.Domain}}\\\"\\n }]\\n }]\\n}\"\n }\n}",
"options": {
"raw": {}
}
@@ -4798,7 +4805,10 @@
],
"body": {
"mode": "raw",
- "raw": "{\n \"title\": \"API Message\",\n \"description\": \"This is an example a upcoming message for a service!\",\n \"start_on\": \"2022-11-17T03:28:16.323797-08:00\",\n \"end_on\": \"2022-11-17T05:13:16.323798-08:00\",\n \"service\": 1,\n \"notify_users\": true,\n \"notify_method\": \"email\",\n \"notify_before\": 6,\n \"notify_before_scale\": \"hour\"\n}"
+ "raw": "{\n \"title\": \"API Message\",\n \"description\": \"This is an example a upcoming message for a service!\",\n \"start_on\": \"2022-11-17T03:28:16.323797-08:00\",\n \"end_on\": \"2022-11-17T05:13:16.323798-08:00\",\n \"service\": 1,\n \"notify_users\": true,\n \"notify_method\": \"email\",\n \"notify_before\": 6,\n \"notify_before_scale\": \"hour\"\n}",
+ "options": {
+ "raw": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/messages",
@@ -5077,7 +5087,10 @@
"header": [],
"body": {
"mode": "raw",
- "raw": ""
+ "raw": "",
+ "options": {
+ "raw": {}
+ }
},
"url": {
"raw": "{{endpoint}}/api/messages/{{message_id}}",
@@ -6114,7 +6127,10 @@
"value": "0",
"type": "text"
}
- ]
+ ],
+ "options": {
+ "formdata": {}
+ }
},
"url": {
"raw": "{{endpoint}}/oauth/slack",
diff --git a/docker-compose.yml b/docker-compose.yml
index 7f49c6fa..a276180a 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -3,7 +3,7 @@ version: '2.3'
services:
statping:
container_name: statping
- image: statping/statping:latest
+ image: statping/statping:dev
restart: always
volumes:
- statping_data:/app
diff --git a/frontend/config/sentry.properties b/frontend/config/sentry.properties
index f3cd274e..20eefd4d 100644
--- a/frontend/config/sentry.properties
+++ b/frontend/config/sentry.properties
@@ -1,6 +1,6 @@
[defaults]
org=Statping
-project=statping_frontend
+project=frontend
url=https://sentry.statping.com
[auth]
diff --git a/frontend/package.json b/frontend/package.json
index 46b06aac..760c5140 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -19,9 +19,7 @@
"@fortawesome/free-brands-svg-icons": "^5.12.1",
"@fortawesome/free-solid-svg-icons": "^5.12.0",
"@fortawesome/vue-fontawesome": "^0.1.9",
- "@sentry/browser": "^5.20.1",
- "@sentry/integrations": "^5.20.1",
- "apexcharts": "^3.6.6",
+ "apexcharts": "^3.23.0",
"axios": "^0.19.1",
"codemirror-colorpicker": "^1.9.66",
"core-js": "^3.6.5",
diff --git a/frontend/public/banner.png b/frontend/public/banner.png
deleted file mode 100644
index 0378161b..00000000
Binary files a/frontend/public/banner.png and /dev/null differ
diff --git a/frontend/public/base.gohtml b/frontend/public/base.gohtml
index 45ecbe3c..696d733f 100644
--- a/frontend/public/base.gohtml
+++ b/frontend/public/base.gohtml
@@ -10,37 +10,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
-
-
{{if USE_CDN}}
diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico
deleted file mode 100644
index 470003b4..00000000
Binary files a/frontend/public/favicon.ico and /dev/null differ
diff --git a/frontend/public/favicon/android-icon-144x144.png b/frontend/public/favicon/android-icon-144x144.png
deleted file mode 100644
index f55ea661..00000000
Binary files a/frontend/public/favicon/android-icon-144x144.png and /dev/null differ
diff --git a/frontend/public/favicon/android-icon-192x192.png b/frontend/public/favicon/android-icon-192x192.png
deleted file mode 100644
index 21a5596f..00000000
Binary files a/frontend/public/favicon/android-icon-192x192.png and /dev/null differ
diff --git a/frontend/public/favicon/android-icon-36x36.png b/frontend/public/favicon/android-icon-36x36.png
deleted file mode 100644
index 778e9de8..00000000
Binary files a/frontend/public/favicon/android-icon-36x36.png and /dev/null differ
diff --git a/frontend/public/favicon/android-icon-48x48.png b/frontend/public/favicon/android-icon-48x48.png
deleted file mode 100644
index 28e73a57..00000000
Binary files a/frontend/public/favicon/android-icon-48x48.png and /dev/null differ
diff --git a/frontend/public/favicon/android-icon-72x72.png b/frontend/public/favicon/android-icon-72x72.png
deleted file mode 100644
index 7af7307d..00000000
Binary files a/frontend/public/favicon/android-icon-72x72.png and /dev/null differ
diff --git a/frontend/public/favicon/android-icon-96x96.png b/frontend/public/favicon/android-icon-96x96.png
deleted file mode 100644
index ef0750b9..00000000
Binary files a/frontend/public/favicon/android-icon-96x96.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon-114x114.png b/frontend/public/favicon/apple-icon-114x114.png
deleted file mode 100644
index 6471883c..00000000
Binary files a/frontend/public/favicon/apple-icon-114x114.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon-120x120.png b/frontend/public/favicon/apple-icon-120x120.png
deleted file mode 100644
index 81c84a57..00000000
Binary files a/frontend/public/favicon/apple-icon-120x120.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon-144x144.png b/frontend/public/favicon/apple-icon-144x144.png
deleted file mode 100644
index f55ea661..00000000
Binary files a/frontend/public/favicon/apple-icon-144x144.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon-152x152.png b/frontend/public/favicon/apple-icon-152x152.png
deleted file mode 100644
index 9581c51d..00000000
Binary files a/frontend/public/favicon/apple-icon-152x152.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon-180x180.png b/frontend/public/favicon/apple-icon-180x180.png
deleted file mode 100644
index de8ea8c1..00000000
Binary files a/frontend/public/favicon/apple-icon-180x180.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon-57x57.png b/frontend/public/favicon/apple-icon-57x57.png
deleted file mode 100644
index b0c659ac..00000000
Binary files a/frontend/public/favicon/apple-icon-57x57.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon-60x60.png b/frontend/public/favicon/apple-icon-60x60.png
deleted file mode 100644
index 64360eff..00000000
Binary files a/frontend/public/favicon/apple-icon-60x60.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon-72x72.png b/frontend/public/favicon/apple-icon-72x72.png
deleted file mode 100644
index 7af7307d..00000000
Binary files a/frontend/public/favicon/apple-icon-72x72.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon-76x76.png b/frontend/public/favicon/apple-icon-76x76.png
deleted file mode 100644
index aeb5e674..00000000
Binary files a/frontend/public/favicon/apple-icon-76x76.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon-precomposed.png b/frontend/public/favicon/apple-icon-precomposed.png
deleted file mode 100644
index 5b5d510a..00000000
Binary files a/frontend/public/favicon/apple-icon-precomposed.png and /dev/null differ
diff --git a/frontend/public/favicon/apple-icon.png b/frontend/public/favicon/apple-icon.png
deleted file mode 100644
index 5b5d510a..00000000
Binary files a/frontend/public/favicon/apple-icon.png and /dev/null differ
diff --git a/frontend/public/favicon/browserconfig.xml b/frontend/public/favicon/browserconfig.xml
deleted file mode 100644
index c5541482..00000000
--- a/frontend/public/favicon/browserconfig.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
URL | -Size | -Expiration | -
---|---|---|
{{cache.url}} | -{{cache.size}} | -{{ago(cache.expiration)}} | -
If you have issues with your Statping instance, this page will help you solve them. Before doing anything, I recommend updating to the latest version of Statping.
+ +Updating Statping is very simple, you can choose one of the options below:
+- Run command: statping update
(you may need to run sudo depending on your server)
+- or Run command: curl -o- -L https://statping.com/install.sh | bash
+- or download tar.gz file from Latest Releases and extract for statping
.
If your Statping instance is only showing a blank white page, this means there’s an issue with CSS or JS assets.
+- Update to the latest version of Statping
+- Delete the assets
folder if you have one
+- Restart Statping instance
If you notice a database error during migration, you can reset your Statping instance while keeping previous data so you won’t have to re-input.
+- In your Statping directory (contains config.yml) run command: statping export
. This will export all elements into a timestamped JSON file. This file will not include previous hits or failures.
+- Delete assets
folder if you have one.
+- Delete and Recreate MySQL, Postgres database, or delete statping.db
.
+- Import previous data by running: statping import backup.json
(replace backup.json with your exported filename)
DELETE FROM hits WHERE created_at < '2020-02-21 00:00:00';
// Delete hits older thanDELETE FROM failures WHERE created_at < '2020-02-21 00:00:00';
// Delete failures older thanDB_PASS
- Database passwordDB_PORT
- Database port (5432, 3306, …)DB_DATABASE
- Database connection’s database nameDB_DSN
- Database DSN string (postgres, mysql, sqlite)READ_ONLY
- Run in a read only mode, this will not create, update, or delete records (false)POSTGRES_SSLMODE
- Enable Postgres SSL Mode ‘ssl_mode=VALUE’ (enable/disable/verify-full/verify-ca)MAX_OPEN_CONN
- Set Maximum Open Connections for database server (default: 25)MAX_IDLE_CONN
- Set Maximum Idle Connections for database server (default: 25)MAX_LIFE_CONN
- Set Maximum Life Connections for database server (default: 25)MAX_LIFE_CONN
- Set Maximum Life Connections for database server (default: 5 minutes)PREFIX
- Add a prefix string to each Prometheus metric (default is empty)LOGS_MAX_SIZE
- Maximum size for log files (defaults to 16 MB)
LANGUAGE
- Language to use (en, fr, ru, more to come…)
LANGUAGE
- Language to use (en, fr, it, ru, zh, de, ko, ja)
USE_ASSETS
- Automatically use assets from ‘assets folder’ (true/false)
++If you have issues with Statping not loading frontend files, delete the assets folder and reboot.
+