Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

prometheus_scraping flag is set to false by default in the osm-config configmap #3062

Closed
rashmichandrashekar opened this issue Apr 1, 2021 · 3 comments
Labels
kind/bug Something isn't working

Comments

@rashmichandrashekar
Copy link

Bug description:
The flag prometheus_scraping is set to false by default in the osm-config configmap. Because of this Azmon agent is unable to scrape the endpoints unless it is set to true and the deployments are recreated.

Affected area (please mark with X where applicable):

  • Install [ ]
  • SMI Traffic Access Policy [ ]
  • SMI Traffic Specs Policy [ ]
  • SMI Traffic Split Policy [ ]
  • Permissive Traffic Policy [ ]
  • Ingress [ ]
  • Egress [ ]
  • Envoy Control Plane [ ]
  • CLI Tool [ ]
  • Metrics [ ]
  • Certificate Management [ ]
  • Sidecar Injection [ ]
  • Logging [ ]
  • Debugging [ ]
  • Tests [ ]
  • Demo [ ]
  • CI System [ ]

Expected behavior:
prometheus_scraping should be set to true (https://github.com/openservicemesh/osm/blob/main/docs/content/docs/tasks_usage/metrics.md#list-of-prerequisites-for-byo-prometheus)

Steps to reproduce the bug (as precisely as possible):

How was OSM installed?:
AKS Addon

Environment:

  • OSM version (use osm version): 0.8.2
  • Kubernetes version (use kubectl version):1.18.14
  • Size of cluster (number of worker nodes in the cluster):5 , 3-linux and 2 windows
@rashmichandrashekar rashmichandrashekar added the kind/bug Something isn't working label Apr 1, 2021
@shashankram
Copy link
Member

Hey @rashmichandrashekar , I see prometheus_scraping set to true by default:

# -- Enable Prometheus metrics scraping on sidecar proxies
enablePrometheusScraping: true

prometheus_scraping: {{ .Values.OpenServiceMesh.enablePrometheusScraping | quote }}

It's likely this has been set to false in your environment.

@shashankram
Copy link
Member

Discussed with @rashmichandrashekar , the scraping option was set to false by default in their environment, but this is not a bug. Refer to #3062 (comment) for more details.

We have figured out the cause for this - the scraping was disabled by default in the Azmon test environment.

@rashmichandrashekar
Copy link
Author

rashmichandrashekar commented Apr 1, 2021

This is a bug with the AKS OSM addon. I will follow up with an internal tracking bug. Thanks Shashank.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants