Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/mysql/enbling mysql connection count #34071

Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
16a2000
new resource process.started_on added
bhogayatakb Sep 8, 2022
6e0aacb
process.cpu.percent
bhogayatakb Sep 6, 2022
4b82ec0
argument mismatch fix
bhogayatakb Sep 8, 2022
90ef8cc
gnew metric process.memory.percent added
bhogayatakb Sep 8, 2022
c50a55e
field mistmatch fix
bhogayatakb Sep 9, 2022
ba94144
new resource container.started_on added
bhogayatakb Sep 9, 2022
fddcee4
new metric container.status added
bhogayatakb Sep 10, 2022
98bc28c
avoid specific error messages
bhogayatakb Nov 2, 2022
bee2c4a
system.network.io.bandwidth metric added
bhogayatakb Nov 24, 2022
b68ff0f
system.disk.io.speed field added
bhogayatakb Nov 25, 2022
11a4fec
k8s.node.uid added in kubeletstats receiver (#19)
bhogayatakb Dec 13, 2022
08e3020
k8s agent installation - log added with k8sevents (#21)
bhogayatakb Dec 15, 2022
e9e5387
changelog entries for middleware fork (#22)
bhogayatakb Dec 17, 2022
1193d67
corrections after rebasing on v0.68.0 (from v0.59.0)
bhogayatakb Dec 21, 2022
c0fb762
make generate triggered
bhogayatakb Dec 29, 2022
c98fd96
changes according to v0.68.0
bhogayatakb Dec 29, 2022
388cf3e
added device info in system.disk.io.speed and system.network.io.bandw…
bhogayatakb Jan 12, 2023
e2427b6
Added Service-list + Enhanced POD-list (#29)
sanjoyment Jun 21, 2023
76a0380
updated mongodb resource attribute key database => mongodb.database.n…
bhogayatakb Jul 3, 2023
71d54a0
co-relate POD <> Service (#32)
sanjoyment Aug 4, 2023
affa9dd
Corrected few things and added Service functionality
sanjoyment Sep 1, 2023
dd61ab8
fixed build issues with mw-agent
bhogayatakb Sep 4, 2023
c1b9337
k8s changes handled after 0.68.0 => 0.84.0 rebase
bhogayatakb Sep 18, 2023
eac1a3a
Resource attribute added in kafka metrics (#34)
meenal-developer Sep 26, 2023
795b3de
enabling k8s.node.uid by default (#36)
bhogayatakb Dec 8, 2023
eca2694
ENG-836: k8s.node.start_time added in all node metrics (#37)
bhogayatakb Dec 14, 2023
90efe32
limitrequest metrics added : for pod + container (#40)
bhogayatakb Jan 6, 2024
d869200
added start_time attributes in k8s workloads (#41)
bhogayatakb Feb 8, 2024
e8a207a
Missing metrics for K8s (#39)
sanjoyment Feb 12, 2024
80a96d3
ENG-947 & ENG-1241: Removed Persistent-Volume from transformObject fl…
sanjoyment Feb 14, 2024
758b55a
Added the missing darwin compatible CPU/Memory percent funcs (#35)
vijayasankar-mw Feb 18, 2024
137a4e6
ENG-947: Added Persistent-Volume-Claim Flow (#44)
sanjoyment Feb 20, 2024
94be3a2
Added Role, RoleBinding, ClusterRole, ClusterRoleBinding and ServiceA…
sanjoyment Feb 21, 2024
192295c
Added Ingress Module (#46)
sanjoyment Feb 23, 2024
dead9a4
Added the flatten function in ottl functions. (#47)
parth-dadhaniya Mar 14, 2024
3ce45c6
Added the custom parsing case. (#48)
parth-dadhaniya Mar 22, 2024
07d4d31
add mw_account_key in datadogreciver
meenal-developer Apr 23, 2024
fc2a802
add mw_account_key in datadogreciver
meenal-developer Apr 25, 2024
8967aef
[chore] Kubernetes receiver improvements (#52)
tejaskokje-mw Apr 23, 2024
e400b8e
datadoglogreceiver
meenal-developer Apr 29, 2024
eabbd66
minor change
meenal-developer Apr 30, 2024
86adfcc
minor change
meenal-developer Apr 30, 2024
1966562
Added missing resource attributes (#51)
arjun-mw Apr 30, 2024
1d0c1f9
minor change (#53)
meenal-developer May 2, 2024
a4aa602
Datadoglogs (#55)
meenal-developer May 6, 2024
37b4d8c
ENG-2410: Added missing metrics (#50)
hc-mw May 6, 2024
9f1ee51
datadogmetricreceiver (#57)
meenal-developer May 14, 2024
1ba8b8b
intake api implemeneted (#58)
naman-jain-15 May 17, 2024
59e0e99
added process and container metrics (#59)
naman-jain-15 May 22, 2024
0483e28
Mysql metrics/query perf (#56)
naman47vyas May 23, 2024
581cb7b
added count-stars metric (#60)
naman47vyas May 24, 2024
4dfc70f
Update receiver.go (#61)
meenal-developer May 25, 2024
0e2b2ac
Metric/postgresql connections (#62)
bhogayatakb May 25, 2024
9b4c125
ENG-2454: AWS Integration (#64)
sanjoyment Jun 4, 2024
ac9db9c
Added tags and bug fixes datadog metric reciever (#67)
naman-jain-15 Jun 4, 2024
49a24b5
ENG-2454: AWS Integration - Minor Changes (#68)
sanjoyment Jun 4, 2024
566246d
Added Attribute to identify datadog metric (#69)
naman-jain-15 Jun 7, 2024
2f80114
Update cloudwatchlogs receiver (#70)
tejaskokje-mw Jun 10, 2024
2c2f04c
v102 changes
meenal-developer Jun 17, 2024
93aec01
v102 changes
meenal-developer Jun 17, 2024
ad4b5a5
Fixes after rebase : related to make generate
bhogayatakb Jun 19, 2024
8f32b49
Fixes after rebase : fix docker stats container.started_on (#77)
arjun-mw Jun 25, 2024
cce088b
fixed host metrics receiver (#78)
hc-mw Jun 26, 2024
f67d5cc
k8sclusterreceiver fixes after v0.84.0 to v0.102.0 rebase (#79)
bhogayatakb Jun 27, 2024
eb12dd1
fixing contextName repetition in ottl (#80)
bhogayatakb Jun 27, 2024
2c1481d
Fix initiated (#81)
bhogayatakb Jun 27, 2024
c0c1973
fixed pkg/stanza failed checks (#82)
bhogayatakb Jul 1, 2024
2b7cf81
Dd k8s metric reciever v102 (#83)
naman-jain-15 Jul 1, 2024
2ed139e
ENG-2747: MongoDB receiver metrics addition (#74)
arjun-mw Jul 3, 2024
f745d61
Mysql/dbm screen metrics v102 (#85)
naman47vyas Jul 3, 2024
afb0585
Postgresql/dbm screen metrics v102 (#86)
naman47vyas Jul 5, 2024
a2fa475
small fix: enabled mysql.connection.count
naman47vyas Jul 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added start_time attributes in k8s workloads (#41)
  • Loading branch information
bhogayatakb committed Jun 12, 2024
commit d869200ac30f48e6d8011913116e58de9f2bc685
2 changes: 2 additions & 0 deletions receiver/k8sclusterreceiver/internal/cronjob/cronjobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func RecordMetrics(mb *metadata.MetricsBuilder, cj *batchv1.CronJob, ts pcommon.
rb.SetK8sNamespaceName(cj.Namespace)
rb.SetK8sCronjobUID(string(cj.UID))
rb.SetK8sCronjobName(cj.Name)
rb.SetK8sCronjobStartTime(cj.GetCreationTimestamp().String())
mb.EmitForResource(metadata.WithResource(rb.Emit()))
mb.EmitForResource(metadata.WithResource(rb.Emit()))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func RecordMetrics(mb *metadata.MetricsBuilder, ds *appsv1.DaemonSet, ts pcommon
rb := mb.NewResourceBuilder()
rb.SetK8sNamespaceName(ds.Namespace)
rb.SetK8sDaemonsetName(ds.Name)
rb.SetK8sDaemonsetStartTime(ds.GetCreationTimestamp().String())
rb.SetK8sDaemonsetUID(string(ds.UID))
mb.EmitForResource(metadata.WithResource(rb.Emit()))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func RecordMetrics(mb *imetadata.MetricsBuilder, dep *appsv1.Deployment, ts pcom
rb.SetK8sDeploymentName(dep.Name)
rb.SetK8sDeploymentUID(string(dep.UID))
rb.SetK8sNamespaceName(dep.Namespace)
rb.SetK8sDeploymentStartTime(dep.GetCreationTimestamp().String())
mb.EmitForResource(metadata.WithResource(rb.Emit()))
}

Expand Down
1 change: 1 addition & 0 deletions receiver/k8sclusterreceiver/internal/jobs/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func RecordMetrics(mb *metadata.MetricsBuilder, j *batchv1.Job, ts pcommon.Times
rb.SetK8sNamespaceName(j.Namespace)
rb.SetK8sJobName(j.Name)
rb.SetK8sJobUID(string(j.UID))
rb.SetK8sJobStartTime(j.GetCreationTimestamp().String())
mb.EmitForResource(metadata.WithResource(rb.Emit()))
}

Expand Down
10 changes: 10 additions & 0 deletions receiver/k8sclusterreceiver/internal/metadata/generated_status.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,20 @@ all_set:
enabled: true
k8s.cronjob.name:
enabled: true
k8s.cronjob.start_time:
enabled: true
k8s.cronjob.uid:
enabled: true
k8s.daemonset.name:
enabled: true
k8s.daemonset.start_time:
enabled: true
k8s.daemonset.uid:
enabled: true
k8s.deployment.name:
enabled: true
k8s.deployment.start_time:
enabled: true
k8s.deployment.uid:
enabled: true
k8s.hpa.name:
Expand All @@ -126,12 +132,16 @@ all_set:
enabled: true
k8s.job.name:
enabled: true
k8s.job.start_time:
enabled: true
k8s.job.uid:
enabled: true
k8s.kubelet.version:
enabled: true
k8s.namespace.name:
enabled: true
k8s.namespace.start_time:
enabled: true
k8s.namespace.uid:
enabled: true
k8s.node.name:
Expand All @@ -144,10 +154,14 @@ all_set:
enabled: true
k8s.pod.qos_class:
enabled: true
k8s.pod.start_time:
enabled: true
k8s.pod.uid:
enabled: true
k8s.replicaset.name:
enabled: true
k8s.replicaset.start_time:
enabled: true
k8s.replicaset.uid:
enabled: true
k8s.replicationcontroller.name:
Expand All @@ -172,6 +186,8 @@ all_set:
enabled: true
k8s.statefulset.name:
enabled: true
k8s.statefulset.start_time:
enabled: true
k8s.statefulset.uid:
enabled: true
openshift.clusterquota.name:
Expand Down Expand Up @@ -293,14 +309,20 @@ none_set:
enabled: false
k8s.cronjob.name:
enabled: false
k8s.cronjob.start_time:
enabled: false
k8s.cronjob.uid:
enabled: false
k8s.daemonset.name:
enabled: false
k8s.daemonset.start_time:
enabled: false
k8s.daemonset.uid:
enabled: false
k8s.deployment.name:
enabled: false
k8s.deployment.start_time:
enabled: false
k8s.deployment.uid:
enabled: false
k8s.hpa.name:
Expand All @@ -309,12 +331,16 @@ none_set:
enabled: false
k8s.job.name:
enabled: false
k8s.job.start_time:
enabled: false
k8s.job.uid:
enabled: false
k8s.kubelet.version:
enabled: false
k8s.namespace.name:
enabled: false
k8s.namespace.start_time:
enabled: false
k8s.namespace.uid:
enabled: false
k8s.node.name:
Expand All @@ -327,10 +353,14 @@ none_set:
enabled: false
k8s.pod.qos_class:
enabled: false
k8s.pod.start_time:
enabled: false
k8s.pod.uid:
enabled: false
k8s.replicaset.name:
enabled: false
k8s.replicaset.start_time:
enabled: false
k8s.replicaset.uid:
enabled: false
k8s.replicationcontroller.name:
Expand All @@ -355,6 +385,8 @@ none_set:
enabled: false
k8s.statefulset.name:
enabled: false
k8s.statefulset.start_time:
enabled: false
k8s.statefulset.uid:
enabled: false
openshift.clusterquota.name:
Expand Down
6 changes: 4 additions & 2 deletions receiver/k8sclusterreceiver/internal/pod/pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ package pod // import "github.com/open-telemetry/opentelemetry-collector-contrib

import (
"context"
"github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig"
"k8s.io/apimachinery/pkg/labels"
"strings"
"time"

"github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig"
"k8s.io/apimachinery/pkg/labels"

"go.opentelemetry.io/collector/pdata/pcommon"
conventions "go.opentelemetry.io/collector/semconv/v1.6.1"
"go.uber.org/zap"
Expand Down Expand Up @@ -84,6 +85,7 @@ func RecordMetrics(logger *zap.Logger, mb *metadata.MetricsBuilder, pod *corev1.
rb.SetK8sPodUID(string(pod.UID))
rb.SetK8sPodQosClass(string(pod.Status.QOSClass))
rb.SetK8sServiceName(getServiceNameForPod(pod))
rb.SetK8sPodStartTime(pod.GetCreationTimestamp().String())
rb.SetK8sServiceAccountName(getServiceAccountNameForPod(pod))
rb.SetK8sClusterName("unknown")
mb.EmitForResource(metadata.WithResource(rb.Emit()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func RecordMetrics(mb *metadata.MetricsBuilder, rs *appsv1.ReplicaSet, ts pcommo
rb.SetK8sNamespaceName(rs.Namespace)
rb.SetK8sReplicasetName(rs.Name)
rb.SetK8sReplicasetUID(string(rs.UID))
rb.SetK8sReplicasetStartTime(rs.GetCreationTimestamp().String())
mb.EmitForResource(metadata.WithResource(rb.Emit()))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func RecordMetrics(mb *imetadata.MetricsBuilder, ss *appsv1.StatefulSet, ts pcom
rb.SetK8sStatefulsetUID(string(ss.UID))
rb.SetK8sStatefulsetName(ss.Name)
rb.SetK8sNamespaceName(ss.Namespace)
rb.SetK8sStatefulsetStartTime(ss.GetCreationTimestamp().String())
mb.EmitForResource(imetadata.WithResource(rb.Emit()))
}

Expand Down
44 changes: 42 additions & 2 deletions receiver/k8sclusterreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,47 @@ resource_attributes:
k8s.container.status.last_terminated_reason:
description: Last terminated reason of a container.
type: string
enabled: false
enabled: true

k8s.daemonset.start_time:
description: "The start time of the Daemonset."
enabled: true
type: string

k8s.deployment.start_time:
description: "The start time of the Deployment."
enabled: true
type: string

k8s.job.start_time:
description: "The start time of the Job."
enabled: true
type: string

k8s.cronjob.start_time:
description: "The start time of the Cronjob."
enabled: true
type: string

k8s.replicaset.start_time:
description: "The start time of the Replicaset."
enabled: true
type: string

k8s.statefulset.start_time:
description: "The start time of the Statefulset."
enabled: true
type: string

k8s.namespace.start_time:
description: "The start time of the Namespace."
enabled: true
type: string

k8s.pod.start_time:
description: "The start time of the Pod."
enabled: true
type: string

attributes:
k8s.namespace.name:
Expand Down Expand Up @@ -561,7 +601,7 @@ metrics:
value_type: int
attributes:
- condition
# k8s.node.condition_* metrics (k8s.node.condition_ready, k8s.node.condition_memory_pressure, etc) are controlled
# k8s.node.condition_* metrics (k8s.node.condition_ready, k8s.node.condition_memory_pressure, etc) are controlled
# by node_conditions_to_report config option. By default, only k8s.node.condition_ready is enabled.

# k8s.node.allocatable_* metrics (k8s.node.allocatable_cpu, k8s.node.allocatable_memory, etc) are controlled
Expand Down