Comments (7)
from the stacktrace, the issue seems to be here. let me raise a PR
func mapFromVMScaleSetVM(vm armcompute.VirtualMachineScaleSetVM, scaleSetName string) virtualMachine {
- osType := string(*vm.Properties.StorageProfile.OSDisk.OSType)
+ osType := getOSTypeFromVirtualMachineScaleSetVM(vm)
tags := map[string]*string{}
networkInterfaces := []string{}
var computerName string
@@ -702,3 +702,23 @@ func (d *Discovery) getFromCache(nicID string) (*armnetwork.Interface, bool) {
net, found := d.cache.Get(nicID)
return net, found
}
+
+func getOSTypeFromVirtualMachineScaleSetVM(vm armcompute.VirtualMachineScaleSetVM) string {
+ if vm.Properties == nil {
+ return ""
+ }
+
+ if vm.Properties.StorageProfile == nil {
+ return ""
+ }
+
+ if vm.Properties.StorageProfile.OSDisk == nil {
+ return ""
+ }
+
+ if vm.Properties.StorageProfile.OSDisk.OSType == nil {
+ return ""
+ }
+
+ return string(*vm.Properties.StorageProfile.OSDisk.OSType)
+}
from prometheus.
If the azure service discovery finds a VM scale set then we get this error. If the service discovery is for a subscription without one it still works
from prometheus.
Closed by #13578
from prometheus.
Hello I just updated to v2.50.1 from v2.49.1 and started seeing an error that looked similar:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x123e50a]
goroutine 1605 [running]:
github.com/prometheus/prometheus/discovery/azure.(*Discovery).refresh.func1({{0xc180dc21e0, 0x92}, {0xc180db2de0, 0xe}, {0xc180db3362, 0xe}, {0xc179d65620, 0x21}, {0xc180db2df0, 0xd}, ...})
github.com/prometheus/prometheus/discovery/azure/azure.go:438 +0xb4a
created by github.com/prometheus/prometheus/discovery/azure.(*Discovery).refresh in goroutine 1174
github.com/prometheus/prometheus/discovery/azure/azure.go:375 +0xa55
Is it possibly related? Has anyone else thats updated seen this?
from prometheus.
I think it's more like #13643, which was a bad merge, fixed by #13702.
There is a release candidate for 2.51.0 out now which has this fix.
from prometheus.
I think it's more like #13643, which was a bad merge, fixed by #13702.
There is a release candidate for 2.51.0 out now which has this fix.
Great! Will there be an official release for 2.51.0 today/tomorrow? Thank you for the quick response by the way!
from prometheus.
We need to wait longer than 1 day for feedback to come in on the release candidate.
Please try it out! If nobody has any feedback this then will become 2.51.0, you just get it faster.
from prometheus.
Related Issues (20)
- Add relabeling action that drops sample if any label matches pattern HOT 1
- Questions about custom labels for alerts HOT 1
- problem with reading data from iot-device by prometheus-endpoint
- Case insensitive FastRegexMatcher doesn't check all folds HOT 8
- PromQL, binary operators for range vectors HOT 4
- Report the use of components with vulnerabilities in prometheus HOT 1
- Histogram reuse bug in query evaluation HOT 4
- allow to specify label sets for which `keep_firing_for` applies
- an alternative to `keep_firing_for` that takes the `up`ness of metrics/targets into account HOT 3
- remote write lose sample when target is unavailable HOT 3
- Prometheus v2.52.0 raises "Error on ingesting samples with different value but same timestamp" for kube-state-metrics HOT 26
- Export a metric for WAL size on disk HOT 2
- Request to validate the Hashmod config HOT 1
- metric with empty label value will add a new metric record HOT 4
- CVE-2023-31484 and CVE-2023-50387 HOT 1
- PromQL(histograms): Make more use of Kahan summation for native histograms HOT 1
- Visualizing tarjets "not happy" if you have more than 20 jobs defined HOT 2
- Emit a warning when `sort` is used for range queries HOT 1
- Gitpod: Missing Packages in `GOROOT` during Build HOT 2
- remote write: all samples lost when server returns 500 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus.