Skip to content

Commit

Permalink
Merge pull request #715 from systemli/deprecate-munin
Browse files Browse the repository at this point in the history
Deprecate Munin
  • Loading branch information
y3n4 authored Feb 11, 2025
2 parents f5c43ce + 7ca7827 commit 5dd8bed
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Command/MuninAccountCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @deprecated Use Prometheus exporter instead.
*
* Class MuninAccountCommand.
*/
#[AsCommand(name: 'app:munin:account')]
Expand Down Expand Up @@ -45,6 +47,8 @@ protected function configure(): void
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
trigger_error("MuninAccountCommand is deprecated. Use Prometheus exporter instead.", E_USER_DEPRECATED);

if ($input->getOption('autoconf')) {
$output->writeln('yes');

Expand Down
4 changes: 4 additions & 0 deletions src/Command/MuninAliasCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @deprecated Use Prometheus exporter instead.
*
* Class MuninAliasCommand.
*/
#[AsCommand(name: 'app:munin:alias')]
Expand Down Expand Up @@ -41,6 +43,8 @@ protected function configure(): void
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
trigger_error("MuninAliasCommand is deprecated. Use Prometheus exporter instead.", E_USER_DEPRECATED);

if ($input->getOption('autoconf')) {
$output->writeln('yes');

Expand Down
4 changes: 4 additions & 0 deletions src/Command/MuninVoucherCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @deprecated Use Prometheus exporter instead.
*
* Class MuninVoucherCommand.
*/
#[AsCommand(name: 'app:munin:voucher')]
Expand Down Expand Up @@ -41,6 +43,8 @@ protected function configure(): void
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
trigger_error("MuninVoucherCommand is deprecated. Use Prometheus exporter instead.", E_USER_DEPRECATED);

if ($input->getOption('autoconf')) {
$output->writeln('yes');

Expand Down

0 comments on commit 5dd8bed

Please sign in to comment.