finops-prometheus-scraper-generic

command module
v0.0.0-...-794f780 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

README

FinOps Prometheus Scraper Generic

This repository is part of the wider exporting architecture for the Krateo Composable FinOps and scrapes Prometheus exporters to then upload the data to CrateDB through the finops-database-handler.

For an in-depth look at the architecture and how to configure all the components, download the summary document here.

Summary

  1. Overview
  2. Architecture
  3. Configuration

Overview

This component is tasked with scraping a given Prometheus endpoint. The configuration is obtained from a file mounted inside the container in "/config/config.yaml". The scraper uploads all the data to a CrateDB instance, through the finops-database-handler, as reported in the database-config field.

Architecture

Krateo Composable FinOps Prometheus Scraper Generic

Configuration

This container is automatically started by the FinOps Operator Scraper and you do not need to install it manually.

To build the executable:

make build REPO=<your-registry-here>

To build and push the Docker images:

make container REPO=<your-registry-here>
Dependencies

There is the need to have an active CrateDB database, with the Krateo Database Service installed. Its login details must be placed in the database-config CR:

apiVersion: finops.krateo.io/v1
kind: DatabaseConfig
metadata:
  name: # DatabaseConfig name
  namespace: # DatabaseConfig namespace
spec:
  username: # username string
  passwordSecretRef: # object reference to secret with password
    name: # secret name
    namespace: # secret namespace
    key: # secret key

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL