Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

stat activity (not realtime) : ID still present in json file (not importable) #741

@jcarnu

Description

@jcarnu

Hello,

In pgwatch2_1.11.0 debian package, the stat activity dashboad file still contains "id": 1697 which leads to error when loading with curl.

I had to sed it to get rid of the error:

curl --user admin:<redacted> -X POST -H "Content-Type: application/json;charset=UTF-8"   \
       --data-binary "{\"dashboard\": $(cat /etc/pgwatch2/grafana-dashboards/postgres/v8/stat-activity/dashboard.json|\
                                       sed -e 's/1697/null/g')}"   \
http://localhost:3000/api/dashboards/import

There may be other way to do, but I do think this id should be removed from the json file.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions