GithubHelp home page GithubHelp logo

timjwhite / prometheus-informix-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anmartsan/prometheus-informix-exporter

0.0 0.0 0.0 10.25 MB

informix exporter prometheus

License: GNU General Public License v3.0

Go 96.00% Dockerfile 4.00%

prometheus-informix-exporter's Introduction

Informix Exporter for Prometheus

Prometheus exporter for various Informix metrics, written in Go.

Prerequisites ๐Ÿ“‹

Docker and docker-compose are required.

Installation ๐Ÿ”ง

The installation will be carried out using Docker and a series of configuration files.

In the ./exporter/sqlhosts file, add the Informix instances that you want to monitor in the same way as you would in the Informix sqlhosts file.

File: ./export/sqlhosts

#Server         Protocol         Host           Port

prueba        onsoctcp    192.168.1.50    1527
prueba2       onsoctcp    192.168.1.50    1530


In the ./exporter/odbc.ini file, configure the ODBC.

[ODBC]
UNICODE=UCS-2
[prueba]
Driver=/opt/IDS12/lib/cli/libifcli.so
Server=prueba
Database=sysmaster
TRANSLATIONDLL=/opt/IDS12/lib/esql/igo4a304.so
LogonID=informix
pwd=informix
[prueba2]
Driver=/opt/IDS12/lib/cli/libifcli.so
Server=prueba2
Database=sysmaster
TRANSLATIONDLL=/opt/IDS12/lib/esql/igo4a304.so
LogonID=informix
pwd=informix

The ./exporter/config.yaml file will be used by the exporter to read the configuration data. Example:

---
servers:
- name: pruebaids
  informixserver: prueba
  user: informix
  password: informix
- name: pruebaids2
  informixserver: prueba2
  user: informix
  password: informix
custom: 
- query: select tabid from systables where tabid=99 
  response: tabid


The Prometheus configuration is located in ./prometheus.

You can change the port where you want the exporter to listen.

- job_name: 'informix'

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
    - targets: ['ids_exporter:8080']
      #  - job_name: 'node'

System Startup โš™๏ธ

docker-compose up -d

Authors โœ’๏ธ

prometheus-informix-exporter's People

Contributors

anmartsan avatar timjwhite avatar

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.