Giter VIP home page Giter VIP logo

vertica-prometheus-exporter's People

Contributors

mzwennes avatar zwennesm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vertica-prometheus-exporter's Issues

problem with query on query_requests.go

I found an error when execute the query inside the query_requests.go . If the result on the query is null, the container drops an error and crash the application. For resolve it i changed the query on the file and i added on the select clause the COALESCE for, when the result is null, the value it's converted on 0 and not drop the error.
SELECT
user_name,
SUM(COALESCE(request_duration_ms,0))::INT request_duration_ms,
SUM(COALESCE(memory_acquired_mb,0))::INT memory_acquired_mb
I tested on my environment and works fine.
For information and if like to correct.

parse error

I am getting this error while using the vertica_exporter v0.5:
strconv.ParseFloat: parsing "0.00PB": invalid syntax
strconv.ParseFloat: parsing "976.56PB": invalid syntax

docker image pull error

Hello.
Looks like something is wrong with docker image distribution:
# docker pull docker.pkg.github.com/zwennesm/vertica-prometheus-exporter/vertica-prometheus-exporter
Using default tag: latest
Pulling repository docker.pkg.github.com/zwennesm/vertica-prometheus-exporter/vertica-prometheus-exporter
Error: image zwennesm/vertica-prometheus-exporter/vertica-prometheus-exporter:latest not found
๐Ÿ™‚

ParameterStatus warnings for each query run each iteration

Hi,
I'm running 0.4 against Vertica 9.3 and 10.0 on same host as the exporter and different host than the exporter. I've tried the binary and doing a build but see the issue below in both. I've tried with and without Prometheus running and see it either way.

I start the exporter and I get the INFO line and it sits quietly. Then I go into my http://host:8080/metrics page. As soon as I open the page the exporter output the WARNings below, 3 warnings for each of the 5 queries. If I do a refresh on the http page I will get them again. If Prometheus is running then I see them each time the interval is reached.

[dbadmin@localhost ~]$ ./vertica-prometheus-exporter -db_name VMart -db_user dbadmin -db_password vert1caBdp -db_host 172.16.116.21
INFO[0000] starting serving metrics at 0.0.0.0:8080/metrics
Aug 12 12:17:14.732163 WARN connection: unhandled message: ParameterStatus: standard_conforming_strings='on'
Aug 12 12:17:14.732233 WARN connection: unhandled message: ParameterStatus: MARS='off'
Aug 12 12:17:14.732252 WARN connection: unhandled message: ParameterStatus: client_locale='en_US@collation=binary'
Aug 12 12:17:21.298004 WARN connection: unhandled message: ParameterStatus: standard_conforming_strings='on'
Aug 12 12:17:21.298051 WARN connection: unhandled message: ParameterStatus: MARS='off'
Aug 12 12:17:21.298070 WARN connection: unhandled message: ParameterStatus: client_locale='en_US@collation=binary'
Aug 12 12:17:21.399071 WARN connection: unhandled message: ParameterStatus: standard_conforming_strings='on'
Aug 12 12:17:21.399103 WARN connection: unhandled message: ParameterStatus: MARS='off'
Aug 12 12:17:21.399122 WARN connection: unhandled message: ParameterStatus: client_locale='en_US@collation=binary'

here I refreshed the http page

Aug 12 12:18:51.199639 WARN connection: unhandled message: ParameterStatus: standard_conforming_strings='on'
Aug 12 12:18:51.199683 WARN connection: unhandled message: ParameterStatus: MARS='off'
Aug 12 12:18:51.199704 WARN connection: unhandled message: ParameterStatus: client_locale='en_US@collation=binary'
Aug 12 12:18:57.459825 WARN connection: unhandled message: ParameterStatus: standard_conforming_strings='on'
Aug 12 12:18:57.459873 WARN connection: unhandled message: ParameterStatus: MARS='off'
Aug 12 12:18:57.459892 WARN connection: unhandled message: ParameterStatus: client_locale='en_US@collation=binary'
Aug 12 12:18:57.564423 WARN connection: unhandled message: ParameterStatus: standard_conforming_strings='on'
Aug 12 12:18:57.564458 WARN connection: unhandled message: ParameterStatus: MARS='off'
Aug 12 12:18:57.564477 WARN connection: unhandled message: ParameterStatus: client_locale='en_US@collation=binary'

So far I haven't been able to debug why these appear. The client_locale and standard_conforming_strings are both normal configuration parameters set in the database. The MARS one is supposed to only be valid for JDBC and doesn't show up in traces of the connection. I do not see these with any other client apps using other Vertica drivers (e.g. ODBC, JDBC, Python).

If I run the exporter in background using & these still show up in the console. If I run it in the background with nohup and & then they do not appear but some others leak through to the console, e.g.
[dbadmin@localhost ~]$ level=info ts=2020-08-12T21:00:33.589Z caller=compact.go:495 component=tsdb msg="write block" mint=1597255200000 maxt=1597262400000 ulid=01EFJ7JYVPBD1R7M475VF27Z5D duration=62.384483ms
level=info ts=2020-08-12T21:00:33.598Z caller=head.go:792 component=tsdb msg="Head GC completed" duration=2.366218ms
level=info ts=2020-08-12T21:00:33.648Z caller=compact.go:441 component=tsdb msg="compact blocks" count=3 mint=1597233600000 maxt=1597255200000 ulid=01EFJ7JYY6DAAG0H965P1X0FXZ sources="[01EFHK0PWXR8332HRP0T4FPFM9 01EFHVSKVNP2PXK5QTVB5TFN0K 01EFJ0Q7ATTWSFRZFPPNBFEWPH]" duration=42.259516ms

Stumped. Can provide whatever details you might need.

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.