Skip to content

Instantly share code, notes, and snippets.

@aabmass
Last active March 4, 2022 17:42
Show Gist options
  • Save aabmass/d61350cdffe6f112401d2616eb41f866 to your computer and use it in GitHub Desktop.
Save aabmass/d61350cdffe6f112401d2616eb41f866 to your computer and use it in GitHub Desktop.
[
Metric(
attributes={'path': '/hello'},
description=None,
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='mycounter',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit=None,
point=Sum(start_time_unix_nano=1646415738949420738, time_unix_nano=1646415738950119539, value=440, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'path': '/world'},
description=None,
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='mycounter',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit=None,
point=Sum(start_time_unix_nano=1646415738950119540, time_unix_nano=1646415738950176990, value=0, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu0', 'state': 'user'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950194270, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu0'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950207618, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu1', 'state': 'user'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950220514, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu1'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950232528, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'user', 'cpu': 'cpu2'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950244540, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu2'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950256402, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'user', 'cpu': 'cpu3'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950268607, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu3'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950280893, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu4', 'state': 'user'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950293326, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu4'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950308900, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu5', 'state': 'user'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950321179, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu5', 'state': 'nice'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950334128, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu6', 'state': 'user'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950346324, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu6'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950358108, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'user', 'cpu': 'cpu7'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950370058, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu7'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950382168, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'user', 'cpu': 'cpu8'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950394095, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu8'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950406230, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu9', 'state': 'user'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950418487, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu9'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950430774, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'user', 'cpu': 'cpu10'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950445907, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu10'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950458096, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'user', 'cpu': 'cpu11'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950470578, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu11'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950482347, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu12', 'state': 'user'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950497165, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu12', 'state': 'nice'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950519013, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu13', 'state': 'user'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950531302, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu13'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950543647, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu14', 'state': 'user'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950555467, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu14'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950567388, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'cpu': 'cpu15', 'state': 'user'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950579350, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
),
Metric(
attributes={'state': 'nice', 'cpu': 'cpu15'},
description="System's CPU time",
instrumentation_info=InstrumentationInfo(hellometer, None, None),
name='system.cpu.time',
resource=<opentelemetry.sdk.resources.Resource object at 0x7f42784cd070>,
unit='ms',
point=Sum(start_time_unix_nano=1646415738949773420, time_unix_nano=1646415738950591174, value=323846, aggregation_temporality=<AggregationTemporality.CUMULATIVE: 2>, is_monotonic=True)
)
]
shutdown called
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment