Code Monkey home page Code Monkey logo

Comments (6)

schmiddy avatar schmiddy commented on May 25, 2024 1

Thanks for reaching out, I somehow got 0.9.14 working although I'm not 100% certain what I was doing. Possibly talking to the wrong server somehow, but at any rate 0.9.14 works now.

Only other little hiccup is that the config .ini parsing is a little different with 0.9.14 -- I can't get a db_password: value with a "#" literal in it to work, I have to work around by setting PGPASSWORD env. variable instead. Any tip for that?

from collector.

schmiddy avatar schmiddy commented on May 25, 2024 1

Ah OK, backtick escapes work, thanks! Think we're all set with 0.9.14 now, thanks for all the help.

from collector.

lfittl avatar lfittl commented on May 25, 2024

Hi @schmiddy, thanks for reaching out about this!

The collector version 0.8.0 and 0.9.14 work very differently, so I first want to check which the two versions you are using? (0.9.X is recommended)

In addition, could you send over the output of β€œSELECT * FROM pg_stat_statements LIMIT 1” from that server? (feel free to mask the data, mostly interested whether queryid is there)

Also make sure to run this on the same database (not just server) you have the collector configured with - sometimes the view the extension sets up will be out of date only in one database.

from collector.

schmiddy avatar schmiddy commented on May 25, 2024

We had been using 0.8.0, and that's where I got the ERROR shown about pg_toast, and for which I pulled the large query from.

I tried 0.9.14 as well, which is what gave the complaint about "Could not process database: pq: column "queryid" does not exist".

Here is output from pg_stat_statements:

mydb=> select * FROM pg_stat_statements LIMIT 1;
-[ RECORD 1 ]-------+-------------------------------------------------
userid              | 16386
dbid                | 16416
queryid             | 1067067071
query               | SET application_name='app - 192.168.x.y:60548';
calls               | 1141
total_time          | 81.9250000000004
rows                | 0
shared_blks_hit     | 0
shared_blks_read    | 0
shared_blks_dirtied | 0
shared_blks_written | 0
local_blks_hit      | 0
local_blks_read     | 0
local_blks_dirtied  | 0
local_blks_written  | 0
temp_blks_read      | 0
temp_blks_written   | 0
blk_read_time       | 0
blk_write_time      | 0

(And I am checking all this info in the same "mydb" database where pganalyze's conf. file is pointing at.)

from collector.

lfittl avatar lfittl commented on May 25, 2024

Very interesting - that doesn't really make sense, since it shouldn't be complaining about that column missing, since its obviously there.

I'll reach out by email to you, maybe we can dig through this in a bit more detail there.

from collector.

lfittl avatar lfittl commented on May 25, 2024

@schmiddy Can you try putting backticks around the value like this:

db_host: `local#host`

(the way this escaping works unfortunately is an oddity of the go-ini library we are using)

from collector.

Related Issues (20)

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.