Code Monkey home page Code Monkey logo

Comments (3)

floyd871 avatar floyd871 commented on September 13, 2024

There is no limitation of instances, but prometheus has a scrape timeout.
Did you manual do a "curl" on the exporter endpoint and looked at the output?
Can you please provide your configuration.

from prometheus_oracle_exporter.

azet avatar azet commented on September 13, 2024

Hi,

The config has this layout (redacted because its a productive system):

connections:
 - connection: user/pwd@instance/SERVICE
   database: xxx
   instance: xxx
   alertlog:
    - file: oracle.conf
#   queries:
#    - sql: "select 1 from dual"
#      name: sample1
#    - sql: "select 2 from dual"
#      name: sample2

 - connection: user/pwd@instance/SERVICE
   database: xzx
   instance: xzx
   alertlog:
    - file: oracle.conf
#   queries:
#    - sql: "select 1 from dual"
#      name: sample1
#    - sql: "select 2 from dual"
#      name: sample2

 - connection: user/pwd@instance/SERVICE
   database: xzy
   instance: xzy
   alertlog:
    - file: oracle.conf
#   queries:
#    - sql: "select 1 from dual"
#      name: sample1
#    - sql: "select 2 from dual"
#      name: sample2

...

I include oracle conf as alert log because I dont have the alertlogs on this host (for how) and the exporter fails if this is missing in the YAML.

Even though there are 8 different host/service entries in my config file only the first two are used for scraping. I added some debug lines during SQL connection establishment and I can see that the exporter connects to all 8 (one of which is down so successfully connects to 7). But only "xxx" and "xyx" in this example are exported.

I did a curl above in the original report.

from prometheus_oracle_exporter.

floyd871 avatar floyd871 commented on September 13, 2024

I've found the solution for this problem. The database and instance names in the config gets overwritten from the instance during scrape. So when they are the same the metrics are overwritten.

From now database and instance gets overwritten when they are empty.
Test 1.1.3

from prometheus_oracle_exporter.

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.