Skip to Main Content
Cloud Management and AIOps


This is an IBM Automation portal for Cloud Management and AIOps products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).

Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.

Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Under review
Workspace Instana
Categories Sensor
Created by Guest
Created on Oct 24, 2023

Scraping of Prometheus endpoint metrics from C-Components

Affects Instana sensor and UI-backend
As a customer having to monitor custom metrics in a complex platform with heterogenous stack we need to monitor prometheus endpoint custom metrics provided be C-components, too.
Please consider scraping Prometheus endpoint metrics from C-components
(or please advise/provide other way of integration of C-components monitoring)

Idea priority Medium
  • Guest
    Reply
    |
    Dec 1, 2023

    Hello, if I understand your requirement correctly, then you would like to ingest Prometheus metrics from any app, e.g. written in C, Go, Java into Instana. I have good news for you, this can be achieved fairly easily.

    1. Edit the Instana agent configuration.yaml: sudo vim /opt/instana/agent/etc/instana/configuration.yaml

    2. Enable the section com.instana.plugin.prometheus

    3. Add the Prometheus metrics endpoint URL

    Example static configuration, works for plain Linux processes, this does not work for Kubernetes pods:


    # Prometheus
    com.instana.plugin.prometheus:
    customMetricSources: # list metric sources
    # Kubernetes configuration(s) <-- USE THIS if your app runs inside Kubernetes
    # - url: '/prometheus/endpoints/metrics' # metrics endpoint, the IP and port are auto-discovered
    # Static configuration(s) <-- USE THIS if your app runs outside of Kubernetes, e.g. normal Linux process (C, Java, Go ...)
    - url: 'http://localhost:8000/metrics'

    In our example (plain Linux process, written in C) the app runs on port 8000 and the metrics will be displayed on the HOST -> Prometheus App screen (see screenshot).

    • I took this C example app, which required some tweaking to get it up and running, but the procedure is the same for any kind of technology which provides a Prometheus metrics endpoint

    For detailed Instana Prometheus documentation, please see: https://www.ibm.com/docs/en/instana-observability/current?topic=apis-prometheus

    For some technologies (e.g. Java) Instana can automatically detect Prometheus metrics and will display the scraped metrics in the JVM screen (see screenshot), see documentation prometheus-java-client-library


    The metrics can be charted on a dashboard if your Instana tenant unit runs in SaaS or you have BeeInstana enabled, see also INSTANA-I-1984


    Does this solve your problem?


    Greetings

    JL