Skip to content

Commit

Permalink
Add platform integrations metrics origins (#30590)
Browse files Browse the repository at this point in the history
Co-authored-by: DeForest Richards <56796055+drichards-87@users.noreply.github.com>
  • Loading branch information
sarah-witt and drichards-87 authored Nov 18, 2024
1 parent f3526c9 commit fa7d613
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/metrics/metricsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const (
MetricSourceSonarr
MetricSourceSnmpwalk
MetricSourceSendmail
MetricSourceScaphandre
MetricSourceScalr
MetricSourceRiakRepl
MetricSourceRedpanda
Expand All @@ -96,6 +97,7 @@ const (
MetricSourcePhpOpcache
MetricSourcePhpApcu
MetricSourceOpenPolicyAgent
MetricSourceOctopusDeploy
MetricSourceOctoprint
MetricSourceNvml
MetricSourceNs1
Expand All @@ -107,6 +109,7 @@ const (
MetricSourceLogstash
MetricSourceLighthouse
MetricSourceKernelcare
MetricSourceKepler
MetricSourceJfrogPlatformSelfHosted
MetricSourceHikaricp
MetricSourceGrpcCheck
Expand All @@ -115,6 +118,7 @@ const (
MetricSourceGnatsd
MetricSourceGitea
MetricSourceGatekeeper
MetricSourceFlyIo
MetricSourceFluentbit
MetricSourceFilemage
MetricSourceFilebeat
Expand Down Expand Up @@ -475,6 +479,8 @@ func (ms MetricSource) String() string {
return "external_dns"
case MetricSourceFluentd:
return "fluentd"
case MetricSourceFlyIo:
return "fly_io"
case MetricSourceFoundationdb:
return "foundationdb"
case MetricSourceGearmand:
Expand Down Expand Up @@ -519,6 +525,8 @@ func (ms MetricSource) String() string {
return "istio"
case MetricSourceKafkaConsumer:
return "kafka_consumer"
case MetricSourceKepler:
return "kepler"
case MetricSourceKong:
return "kong"
case MetricSourceKubeAPIserverMetrics:
Expand Down Expand Up @@ -783,6 +791,8 @@ func (ms MetricSource) String() string {
return "nvml"
case MetricSourceOctoprint:
return "octoprint"
case MetricSourceOctopusDeploy:
return "octopus_deploy"
case MetricSourceOpenPolicyAgent:
return "open_policy_agent"
case MetricSourcePhpApcu:
Expand Down Expand Up @@ -815,6 +825,8 @@ func (ms MetricSource) String() string {
return "riak_repl"
case MetricSourceScalr:
return "scalr"
case MetricSourceScaphandre:
return "scaphandre"
case MetricSourceSendmail:
return "sendmail"
case MetricSourceSnmpwalk:
Expand Down
12 changes: 12 additions & 0 deletions pkg/serializer/internal/metrics/origin_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func metricSourceToOriginCategory(ms metrics.MetricSource) int32 {
metrics.MetricSourceSonarr,
metrics.MetricSourceSnmpwalk,
metrics.MetricSourceSendmail,
metrics.MetricSourceScaphandre,
metrics.MetricSourceScalr,
metrics.MetricSourceRiakRepl,
metrics.MetricSourceRedpanda,
Expand All @@ -99,6 +100,7 @@ func metricSourceToOriginCategory(ms metrics.MetricSource) int32 {
metrics.MetricSourcePhpOpcache,
metrics.MetricSourcePhpApcu,
metrics.MetricSourceOpenPolicyAgent,
metrics.MetricSourceOctopusDeploy,
metrics.MetricSourceOctoprint,
metrics.MetricSourceNvml,
metrics.MetricSourceNs1,
Expand All @@ -110,6 +112,7 @@ func metricSourceToOriginCategory(ms metrics.MetricSource) int32 {
metrics.MetricSourceLogstash,
metrics.MetricSourceLighthouse,
metrics.MetricSourceKernelcare,
metrics.MetricSourceKepler,
metrics.MetricSourceJfrogPlatformSelfHosted,
metrics.MetricSourceHikaricp,
metrics.MetricSourceGrpcCheck,
Expand All @@ -118,6 +121,7 @@ func metricSourceToOriginCategory(ms metrics.MetricSource) int32 {
metrics.MetricSourceGnatsd,
metrics.MetricSourceGitea,
metrics.MetricSourceGatekeeper,
metrics.MetricSourceFlyIo,
metrics.MetricSourceFluentbit,
metrics.MetricSourceFilemage,
metrics.MetricSourceFilebeat,
Expand Down Expand Up @@ -403,6 +407,8 @@ func metricSourceToOriginService(ms metrics.MetricSource) int32 {
return 58
case metrics.MetricSourceFluentd:
return 60
case metrics.MetricSourceFlyIo:
return 430
case metrics.MetricSourceFoundationdb:
return 61
case metrics.MetricSourceGearmand:
Expand Down Expand Up @@ -461,6 +467,8 @@ func metricSourceToOriginService(ms metrics.MetricSource) int32 {
return 89
case metrics.MetricSourceKafka:
return 90
case metrics.MetricSourceKepler:
return 431
case metrics.MetricSourceKong:
return 91
case metrics.MetricSourceKubeAPIserverMetrics:
Expand Down Expand Up @@ -515,6 +523,8 @@ func metricSourceToOriginService(ms metrics.MetricSource) int32 {
return 116
case metrics.MetricSourceNginx:
return 117
case metrics.MetricSourceOctopusDeploy:
return 432
case metrics.MetricSourceOpenldap:
return 118
case metrics.MetricSourceOpenmetrics:
Expand Down Expand Up @@ -559,6 +569,8 @@ func metricSourceToOriginService(ms metrics.MetricSource) int32 {
return 139
case metrics.MetricSourceSapHana:
return 140
case metrics.MetricSourceScaphandre:
return 433
case metrics.MetricSourceScylla:
return 141
case metrics.MetricSourceSilk:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Each section from every release note are combined when the
# CHANGELOG.rst is rendered. So the text needs to be worded so that
# it does not depend on any information only available in another
# section. This may mean repeating some details, but each section
# must be readable independently of the other.
#
# Each section note must be formatted as reStructuredText.
---
other:
- |
Add metric origins for Platform Integrations: Fly.io, Kepler, Octopus Deploy, and Scaphandre.

0 comments on commit fa7d613

Please sign in to comment.