# Install mktxp with Homebrew, Nix

Prometheus Exporter for Mikrotik RouterOS devices. Version 1.2.19 via Homebrew; verified 2026-07-12. Also installable with nix: nix profile install nixpkgs#mktxp.

## Install

```sh
sudo av install brew:mktxp
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mktxp
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mktxp
```

  Evidence: nixpkgs package indexes: pkgs/by-name/mk/mktxp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:mktxp
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mktxp>
- **Version:** 1.2.19
- **Source summary:** Prometheus Exporter for Mikrotik RouterOS devices
- **Homepage:** <https://github.com/akpw/mktxp>
- **Repository:** <https://github.com/akpw/mktxp>
- **Upstream docs:** <https://github.com/akpw/mktxp>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://files.pythonhosted.org/packages/d2/a7/65696f79c7a7d275c7d08d82155b26460ce34d5a08d3014e9666876f4027/mktxp-1.2.19.tar.gz>
- **Last updated:** 2026-07-12T14:35:14Z
- **Generated:** 2026-07-26T07:20:29+00:00

## Executables

- mktxp (cli)
- mktxp (alias)

## Dependencies

- libyaml
- python@3.14

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-26
- Package-manager version: 1.2.19
- Package-manager updated: 2026-07-12
- Local data: ok
- Upstream repository: https://github.com/akpw/mktxp
- info: No cached GitHub release or tag data was available.
## Project history and usage

MKTXP is a Python command-line Prometheus exporter for MikroTik RouterOS devices. It exports RouterOS metrics for Prometheus, can print selected metrics directly on the command line, and is commonly paired with Grafana dashboards or the companion mktxp-stack deployment.

### Project history

The upstream project is maintained at akpw/mktxp on GitHub and describes itself as a Prometheus exporter for MikroTik RouterOS devices. Its README documents local installs, Docker images, Kubernetes examples, CLI commands, RouterOS user setup, and a system configuration file for exporter runtime settings.

The package became a PyPI-distributed Python application early in 2021, with PyPI release history beginning at 0.14 on January 4, 2021. The project reached 1.0 on January 4, 2023 and has continued through the 1.2 series, with GitHub marking v1.2.19 as the latest release on July 10, 2026.

### Adoption history

Package-manager adoption reflects the tool's role in home-lab and network-monitoring workflows: the input records Homebrew and Nix package names, while the upstream README documents installation from PyPI, GitHub source, GitHub Container Registry, and deployment through Kubernetes or the mktxp-stack project.

Later 1.2 releases expanded operational use cases with custom labels, multi-router/concurrent scrape support, multi-target exporter support, Docker path improvements, and richer RouterOS collectors. These are packaging-relevant because users often run MKTXP as a service or containerized exporter rather than as an occasional CLI.

### How it is used

Typical use starts by editing mktxp.conf with RouterOS addresses and API credentials, then running mktxp export to serve Prometheus metrics on the configured HTTP listener. The README also documents mktxp print for command-line inspection and mktxp edit or mktxp edit -i for editing main and system configuration.

Configuration is centered on mktxp.conf for router entries and _mktxp.conf for system options. The README documents XDG-style local configuration under ~/.config/mktxp, legacy local configuration under ~/mktxp, and container-oriented configuration under /etc/mktxp via --cfg-dir or bind mounts.

### Why package nerds care

MKTXP is notable to package maintainers because it sits at the intersection of Python packaging, observability tooling, and appliance monitoring. It ships as a CLI, a PyPI package, a Homebrew formula, a Nix package, and a GitHub container image, so packaging quality affects both interactive local use and long-running service deployments.

The 2026 move to pyproject.toml and improved Docker/XDG configuration paths matters for downstream packaging: it reduces friction around build metadata, non-root containers, bind-mounted config directories, and service-manager integration.

### Timeline

- 2021-01-04: PyPI release history begins with version 0.14.
- 2023-01-04: Version 1.0 released on PyPI.
- 2025-09-15: v1.2.14 release notes include injectable device-level custom labels and dedicated config sections for new parameters.
- 2025-12-22: v1.2.16 release notes describe Dockerfile improvements and support for /etc/mktxp or XDG standard paths.
- 2026-07-10: v1.2.19 marked latest on GitHub and published on PyPI.

### Related projects

- mktxp-stack is the upstream companion project for a ready-to-go MKTXP monitoring stack.
- Prometheus and Grafana are the primary monitoring and visualization tools documented by the project.
- MikroTik RouterOS is the monitored network-device platform.

### Sources

- <https://github.com/akpw/mktxp>
- <https://github.com/akpw/mktxp#readme>
- <https://github.com/akpw/mktxp/releases>
- <https://pypi.org/project/mktxp/>
- source_facts.package-manager


## Security Notes

No matching local secret-handling manifest was found for mktxp. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/mktxp/mktxp.conf, ~/.config/mktxp/_mktxp.conf, ~/mktxp/mktxp.conf, ~/mktxp/_mktxp.conf, /etc/mktxp/mktxp.conf, /etc/mktxp/_mktxp.conf
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mktxp
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - mktxp: normalized package name match | nixpkgs package indexes: pkgs/by-name/mk/mktxp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [onionprobe](https://www.automicvault.com/pkg/brew/onionprobe/) - Shares av.db curated category or tags: cli, grafana, monitoring, networking.
- [cloudprober](https://www.automicvault.com/pkg/brew/cloudprober/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [darkstat](https://www.automicvault.com/pkg/brew/darkstat/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [dish](https://www.automicvault.com/pkg/brew/dish/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [easeprobe](https://www.automicvault.com/pkg/brew/easeprobe/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [mrtg](https://www.automicvault.com/pkg/brew/mrtg/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [netshow](https://www.automicvault.com/pkg/brew/netshow/) - Shares av.db curated category or tags: cli, monitoring, networking, python.
- [liboping](https://www.automicvault.com/pkg/brew/liboping/) - Shares av.db curated category or tags: cli, monitoring, networking.
- [archgw](https://www.automicvault.com/pkg/brew/archgw/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, libyaml, networking, python, python-3-14.
- [gdown](https://www.automicvault.com/pkg/brew/gdown/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, networking, python, python-3-14.

## Combined YAML source

View the package source record on GitHub. [combined/mktxp.yml](https://github.com/automic-vault/db/blob/main/combined/mktxp.yml)


## Sources

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
