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)
- Request to support ASLR in Prometheus HOT 2
- OTLP write receiver: Out of order sample from remote write (timestamp=0)
- enable querying of old data with new UTF-8 names HOT 4
- Add a function `fill()` to fill missing intervals HOT 2
- Prometheus skipping scrapes every 2 hours HOT 3
- promtool test with `/dev/stdin` fails for multiple test cases HOT 2
- Remove `init()` from discovery/metrics.go HOT 1
- Proposal: Add support `Nacos` SD config HOT 1
- promql: `label_join` destination label is not validated (v2.51.0+)
- Prom stops updating subset of metrics after dovecot server is restarted HOT 4
- Filter not working HOT 5
- Prometheus Target Down, when using it as Docker conatiner HOT 1
- Use metric_relabel_configs to drop metrics but still get a high prometheus memory usage HOT 2
- Queries return same series twice with non-stringlabels build HOT 2
- Generate wrong alerts when upgrading Prometheus from 2.33.5 to 2.50.0 HOT 2
- Prometheus's remote_write closes the impact of metadata sending
- Move required OpenTelemetry packages to prometheus/prometheus HOT 6
- How can I get a week's worth of alert history for Prometheus, Alertmanager via python script? HOT 1
- Configurabe scrape interval / scrape timeout via relabeling still marked as experimental HOT 1
- url parameter configuration via annotations not working for kubernetes service discovery based scrape job
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.