Skip to content

Commit

Permalink
Fix topology for self-scraping (#566)
Browse files Browse the repository at this point in the history
* Fix topology for self-scraping

* Update tox.ini
  • Loading branch information
simskij authored Jan 25, 2024
1 parent c03298b commit 2f4a6e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def _default_config(self):
"juju_model": self._topology.model,
"juju_model_uuid": self._topology.model_uuid,
"juju_application": self._topology.application,
"juju_unit": self._topology.charm_name,
"juju_unit": self._topology.unit,
"juju_charm": self._topology.charm_name,
"host": "localhost",
},
}
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ deps =
cosl
ops >= 2.5.0
pytest
ops-scenario >= 5.1
ops-scenario >=5.1,<6.0
-r{toxinidir}/requirements.txt
opentelemetry-exporter-otlp-proto-grpc==1.17.0 # PYDEPS for tracing
importlib-metadata==6.0.0 # PYDEPS for tracing
Expand Down

0 comments on commit 2f4a6e3

Please sign in to comment.