GithubHelp home page GithubHelp logo

hana_exporter's Introduction

hana_exporter

this is initial hana exporter to monitor hana database.

gather all hana info from its system table/views, following the description at

http://sap.optimieren.de/hana/hana/html/sys_statistics_views.html

the exporter itself metrics exposed at /metrics, and the hana database metrics exposed at /hana

Usage

create a configuration hana.yml, which contains the credentials of hana instance.

credentials:
    default:
        user: "user"
        pass: "password"
    192.168.100.237:30015:
        user: "SYSTEM"
        pass: "Password"

then start hana-exporter via

hana_exporter --config.file=hana_exporter.yml

then we can get the metrics via

curl http://<hana-export host>:9460/hana?target=192.168.100.237:30015

NOTE: The usre configured at lest have select permission on schema SYS, all the collector will collect the info from tables/views under this schema.

prometheus job conf

add hana-exporter job conif as following

  - job_name: 'hana-exporter'

    # metrics_path defaults to '/metrics'
    metrics_path: /hana


    # scheme defaults to 'http'.

    static_configs:
    - targets:
       - 192.168.100.237:30015   
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: localhost:9460  ### the address of the hana-exporter address

Build

build the binary is pretty simple

git clone [email protected]:jenningsloy318/hana_exporter.git
cd hana_exporter
make build

or package it as rpm or deb

make package-release

then you package can be found in ./build

Parameter Explanation

  • --collect.sys_m_service_statistics, the metric hana_sys_m_service_statistics_status value and status mapping as following table:

    value status
    0 NO
    1 YES
    2 UNKNOWN
    3 STARTING
    4 STOPPING
  • --collect.sys_m_service_replication, the metric hana_sys_m_service_statistics_status value and status mapping as following table:

    value status
    0 ERROR
    1 ACTIVE
    2 UNKNOWN
    3 INITIALIZING
    4 SYNCING

hana_exporter's People

Contributors

jenningsloy318 avatar

Watchers

 avatar  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.