Skip to content
This repository has been 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

Closed
jcarnu opened this issue Feb 20, 2024 · 1 comment · Fixed by jcarnu/pgwatch2#1 or #742
Closed
Assignees

Comments

@jcarnu
Copy link
Contributor

jcarnu commented Feb 20, 2024

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.

@pashagolub
Copy link
Collaborator

Thanks for pointing this out! PRs are welcome!

@pashagolub pashagolub self-assigned this Feb 20, 2024
@github-project-automation github-project-automation bot moved this to Todo in pgwatch2 Feb 20, 2024
jcarnu added a commit to jcarnu/pgwatch2 that referenced this issue Feb 20, 2024
Previous value was a numeric leading to import 
failure. This changes this value to null in order this 
dashboard to be importable

/closes cybertec-postgresql#741
@github-project-automation github-project-automation bot moved this from Todo to Done in pgwatch2 Feb 20, 2024
pashagolub pushed a commit that referenced this issue Feb 20, 2024
…#741 (#742)

Previous value was a numeric leading to import 
failure. This changes this value to null in order this 
dashboard to be importable

/closes #741
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
2 participants