📈 A Prometheus exporter for SerenityOS

Overview

serenity_exporter

A Prometheus exporter for SerenityOS.

Installation

Copy the cloned repository, or at minimum, src/exporter.js, src/metrics.js, and run.js into the SerenityOS disk image.

NOTE: In the future a port script will be provided upstream.

Usage

The exporter simply can be run standalone using the js(1) REPL, as a module:

js -m src/exporter.js

For convenience, a SerenityOS Shell script is provided to start WebServer in the current working directory and export to metrics.txt every 10 seconds.

It can either be invoked manually, or run by SystemServer after boot by adding a service like this:

[serenity_exporter]
Executable=/bin/Shell
Arguments=run.sh
WorkingDirectory=/path/to/serenity_exporter
KeepAlive=true

Lastly, add a new scrape configuration to prometheus.yml:

scrape_configs:
  - job_name: "serenity"
    metrics_path: "/metrics.txt"
    static_configs:
      - targets: ["localhost:8000"]
You might also like...

A visual overview of Kubernetes architecture and Prometheus metrics

A visual overview of Kubernetes architecture and Prometheus metrics

A visual overview of Kubernetes architecture and Prometheus metrics. Structure Navigate through the structures page to easily see your control planes

Oct 11, 2022

Chart.js plugin for Prometheus data loading

Chart.js plugin for Prometheus data loading

Welcome to chartjs-plugin-datasource-prometheus 👋 A Prometheus datasource for ChartJS. Dependencies: requires chart.js 2.7 or later. requires moment.

Dec 6, 2022

A simple Prometheus (aggregated) push gateway allowing stateless/serverless workloads, ephemeral and batch jobs to easily expose their metrics.

A simple Prometheus (aggregated) push gateway allowing stateless/serverless workloads, ephemeral and batch jobs to easily expose their metrics.

Serverless Prometheus (aggregated) Push Gateway A simple Prometheus (aggregated) push gateway allowing stateless/serverless workloads, ephemeral and b

Dec 4, 2022

A simple web server exposing Hetzner cloud instances for consumption by the Prometheus HTTP service discovery.

Prometheus: Hetzner Service Discovery A server to provide automatic node discovery for Hetzner Cloud to Prometheus via HTTP service discovery. In cont

Oct 10, 2022
Owner
Linus Groh
Making JavaScript work on @SerenityOS :^)
Linus Groh
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
A visual overview of Kubernetes architecture and Prometheus metrics

A visual overview of Kubernetes architecture and Prometheus metrics. Structure Navigate through the structures page to easily see your control planes

OSLabs Beta 213 Oct 11, 2022
A simple Prometheus (aggregated) push gateway allowing stateless/serverless workloads, ephemeral and batch jobs to easily expose their metrics.

Serverless Prometheus (aggregated) Push Gateway A simple Prometheus (aggregated) push gateway allowing stateless/serverless workloads, ephemeral and b

Adam Janiš 17 Dec 4, 2022
A simple web server exposing Hetzner cloud instances for consumption by the Prometheus HTTP service discovery.

Prometheus: Hetzner Service Discovery A server to provide automatic node discovery for Hetzner Cloud to Prometheus via HTTP service discovery. In cont

Matchory GmbH 1 Oct 10, 2022
Honkai: Star Rail Warp History Exporter

星穹铁道跃迁记录导出工具 中文 | English 这个项目由genshin-wish-export修改而来,功能基本一致。 一个使用 Electron 制作的小工具,需要在 Windows 64位操作系统上运行。 通过读取游戏日志或者代理模式获取访问游戏跃迁记录 API 所需的 authKey,然

null 1.1k Aug 13, 2023
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023