You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an attribute expects a capsule("prometheus.Receiver"), you can only assign a capsule("prometheus.Receiver") type. The specific type of capsule expected is explicitly documented for any component that uses or exports them.
In the following example, the prometheus.remote_write component exports a receiver, which is a capsule("prometheus.Receiver") type. You can use this capsule in the forward_to attribute of prometheus.scrape, which expects an array of capsule("prometheus.Receiver").
However, elsewhere in the documentation it says that these components consume and export prometheus.MetricsReceiver.
Therefore, I think you should change prometheus.Receiver -> prometheus.MetricsReceiver
The text was updated successfully, but these errors were encountered:
URL
https://grafana.com/docs/alloy/latest/get-started/configuration-syntax/expressions/types_and_values/#capsules
Feedback
At the URL above it says:
However, elsewhere in the documentation it says that these components consume and export
prometheus.MetricsReceiver
.Therefore, I think you should change
prometheus.Receiver
->prometheus.MetricsReceiver
The text was updated successfully, but these errors were encountered: