Skip to content

Commit

Permalink
fix: prefix Prometheus metrics with swingset_
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Feb 9, 2021
1 parent 78160fe commit 73238dc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/cosmic-swingset/lib/kernel-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,42 @@
const KERNEL_STATS_SUM_METRICS = [
{
key: 'syscalls',
name: 'syscall_total',
name: 'swingset_syscall_total',
description: 'Total number of SwingSet kernel calls',
},
{
key: 'syscallSend',
name: 'syscall_send_total',
name: 'swingset_syscall_send_total',
description: 'Total number of SwingSet message send kernel calls',
},
{
key: 'syscallCallNow',
name: 'syscall_call_now_total',
name: 'swingset_syscall_call_now_total',
description: 'Total number of SwingSet synchronous device kernel calls',
},
{
key: 'syscallSubscribe',
name: 'syscall_subscribe_total',
name: 'swingset_syscall_subscribe_total',
description: 'Total number of SwingSet promise subscription kernel calls',
},
{
key: 'syscallResolve',
name: 'syscall_resolve_total',
name: 'swingset_syscall_resolve_total',
description: 'Total number of SwingSet promise resolution kernel calls',
},
{
key: 'dispatches',
name: 'dispatch_total',
name: 'swingset_dispatch_total',
description: 'Total number of SwingSet vat calls',
},
{
key: 'dispatchDeliver',
name: 'dispatch_deliver_total',
name: 'swingset_dispatch_deliver_total',
description: 'Total number of SwingSet vat message deliveries',
},
{
key: 'dispatchNotify',
name: 'dispatch_notify_total',
name: 'swingset_dispatch_notify_total',
description: 'Total number of SwingSet vat promise notifications',
},
];
Expand Down Expand Up @@ -85,7 +85,7 @@ const KERNEL_STATS_UPDOWN_METRICS = [
},
{
key: 'clistEntries',
name: 'clist_entries',
name: 'swingset_clist_entries',
description: 'Number of entries in the kernel c-list',
},
];
Expand Down

0 comments on commit 73238dc

Please sign in to comment.