blob: f2370233c59ec1c337ddfd19ab96de94102755c1 [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Metrics common to all tasks and devices."""
from infra_libs.ts_mon.common import metrics
up = metrics.BooleanMetric(
'presence/up',
'Set to True when the program is running, missing otherwise.',
None)
def init():
# TODO(dsansome): Add more metrics for git revision, cipd package version,
# uptime, etc.
up.set(True)