Skip to content

Commit

Permalink
Drop hostname formatter completely -- the default jobmetricformatter …
Browse files Browse the repository at this point in the history
…is fine here and does the same thing
  • Loading branch information
dannon committed Feb 21, 2024
1 parent 8bab510 commit a210a6f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/galaxy/job_metrics/instrumenters/hostname.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,14 @@
from typing import Any

from . import InstrumentPlugin
from .. import formatting

log = logging.getLogger(__name__)


class HostnameFormatter(formatting.JobMetricFormatter):
def format(self, key: str, value: Any):
return formatting.FormattedMetric(key, value)


class HostnamePlugin(InstrumentPlugin):
"""Gather hostname"""

plugin_type = "hostname"
formatter = HostnameFormatter()

def __init__(self, **kwargs):
pass
Expand Down

0 comments on commit a210a6f

Please sign in to comment.