blob: bc42da894ce5cfe76cab168b9011ad622591c75b [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',
description="Set to True when the program is running, missing otherwise.")
def init():
# TODO(dsansome): Add more metrics for git revision, cipd package version,
# uptime, etc.
up.set(True)