Skip to main content
Version: 2.7.0

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.

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