Comments (6)
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.
Ah OK, backtick escapes work, thanks! Think we're all set with 0.9.14 now, thanks for all the help.
from collector.
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.
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.
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.
@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)
- Scheduler: Don't schedule runner intervals on fixed cron expressions HOT 5
- Documentation/support for Google Cloud SQL Auth Proxy or Connector HOT 2
- Update collector README to reference pg_monitor role for setup instructions HOT 3
- Handle read-only filesystem gracefully HOT 1
- Make IdentifierMap cache TTL configurable HOT 3
- Could not collect activity for server HOT 8
- Unable to DB_USE_IAM_AUTH with aws RDS instance HOT 4
- Error calling pg_stat_statements_reset() as requested intermittently HOT 2
- Regular collector oom-kill at midnight UTC on Sundays HOT 1
- Publish Docker image to ECR public registry HOT 1
- Error to send snapshots HOT 2
- Upgrade go.uuid module HOT 3
- Missing image for v0.50.1 HOT 2
- Additional security settings for pganalyze collector HOT 3
- Add rudimentary test suite for Helm chart
- Debian build uses EOL version HOT 1
- Error: Failed to reload collector HOT 1
- OTEL connector - can it support Datadog APM traces for PostgreSQL HOT 2
- OTEL connector - can it support Datadog?
- Feature request: Add DB_PASSWORD_FILE or similar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collector.