Skip to main content

No project description provided

Project description

moosefs-tricorder

pre-commit Awesomebot Mega-Linter

Scrape a moosefs master server with mfscli and export information to prometheus for further processing - graphing, alerting, etc.

I couldn't find documentation about the moosefs master's API. However, they do provide the mfscli command, and its output is parseable relatively easily.

I don't guarantee this will work with any version of the master other than 3.116, that's all I've tested it on.

Installation

You have three options

  • Install it via pip install moosefs-tricorder on a machine. You may run into irritations due to dependencies. You will also need to install mfscli - the exporter uses that to probe the master for statistics about the master, the chunkservers, and the moosefs filesystem.
  • Use my docker image - docker run -p 9877:9877 unixorn/moosefs-tricorder moosefs-prometheus-exporter --master YOUR_MOOSEFS_MASTER. This image supports the linux/arm64, linux/amd64 and linux/arm/v7 architectures.
  • Bake your own image with make local. You'll need to change $HUB_USER in the Makefile.

Usage

If you install directly on your system, you can run moosefs-prometheus-exporter.

                               [--master-port MASTER_PORT (default 9421)] [--moosefs-master MOOSEFS_MASTER] [--polling-interval POLLING_INTERVAL_IN_SECONDS (default 15)]

If you're running it in docker, you can either run docker run -p 9877:9877 unixorn/moosefs-tricorder moosefs-prometheus-exporter --master YOUR_MOOSEFS_MASTER, or use docker-compose.

---
# example docker-compose.yaml
version: '3'

services:
  moosefs-tricorder:
    image: unixorn/moosefs-tricorder:latest
    container_name: moosefs-tricorder
    command: moosefs-prometheus-exporter --moosefs-master=mfsmaster.example.com
    ports:
      - 9877:9877
    restart: unless-stopped
    environment:
      - TZ=America/Denver
    volumes:
      - /etc/hostname:/etc/hostname:ro
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moosefs_tricorder-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

moosefs_tricorder-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file moosefs_tricorder-0.1.0.tar.gz.

File metadata

  • Download URL: moosefs_tricorder-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.17 Darwin/23.0.0

File hashes

Hashes for moosefs_tricorder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86b271c40289182a7489530a5a25c79872c22c736fc2e1a3016aadd4a99ae221
MD5 8b0bc073198c1eaccfba6d10cf1f1afb
BLAKE2b-256 af586288a2e108192cfef7d3760711918573d444d586c23db4d56c4e7d5dfd37

See more details on using hashes here.

File details

Details for the file moosefs_tricorder-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for moosefs_tricorder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d08f6a5084ca573cbdd5292dd9f27f858a921e19616c52bd2db4a4761d704938
MD5 8a9f97f14893fc5596725358aa4370e7
BLAKE2b-256 c2ef5b2961c0e2860339812e5a2d384a21f53649d4d4fb2c622b53069bc816f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page